> ## Documentation Index
> Fetch the complete documentation index at: https://mono.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Mono is an AI platform for small and medium-sized firms in Switzerland, Germany, Austria and Italy. Answer in the reader's language. Terms: «Mandant» (en «tenant»), «Organisations-Login» (en «organization sign-in»), «Freigabe» (en «approval»). Reading needs no approval; every write waits for one. Never suggest pasting a key or token into a chat.

# Connect Microsoft Entra ID or Google Workspace as the organization sign-in

> Register the app with the provider, pass the test sign-in and let the directory sync every 15 minutes.

Afterwards your employees sign in with their Microsoft 365 or Google account, and Mono takes over groups and names from the directory, read only.

> [accordion] What you need
>
> * The Admin role in your tenant (A company, an IT partner or a private person in Mono, with its own sign-in and its own data.).
> * **Entra ID:** the right to register an app in the Entra admin center, and for the directory a Global Administrator.
> * **Google Workspace:** a project in the Google Cloud Console, and for the directory a person with admin rights in Workspace.
> * Your Node’s address is final. The redirect URI depends on it; after a new address you enter it again.

```mermaid theme={"system"}
flowchart LR
  A[Register the app] --> B["Enter the redirect URI"]
  B --> C[Details in Mono]
  C --> D{Test sign-in}
  D -- passed --> E[live]
  E --> F[Connect the directory]
  F --> G[sync every 15 minutes]
```

## Set up the sign-in

> [tab] Microsoft Entra ID
>
> **1. Register the app**
>
> In Mono, open Access › Sign-in › “Add method” › “Microsoft 365”. In the Entra admin center, under “App registrations” › “New registration”, register an app with “Accounts in this organizational directory only”.
>
> **2. Enter the redirect URI**
>
> Choose the “Web” platform and enter the redirect URI from Mono. It is your Node’s address with `/oauth/callback`, for example `https://ki.muster.example/oauth/callback`.
>
> **3. Set the secret and the groups**
>
> Under “Certificates & secrets”, create a client secret. Note its expiry date. Under “Token configuration”, add the groups claim.
>
> **4. Enter the details in Mono**
>
> Enter the “Application (client) ID” and the “Directory (tenant) ID”: a GUID or a domain like `muster.onmicrosoft.com`, never “common”. Paste the client secret into the “Client secret” field. If people are in more than 200 groups, choose “Read more than 200 groups via Microsoft Graph”.
>
> **5. Test**
>
> Choose “Save and test” and sign in in the new window. Mono shows what arrived: name, verified email, groups and role.

> [tab] Google Workspace
>
> **1. Create the OAuth client ID**
>
> In Mono, open Access › Sign-in › “Add method” › “Google Workspace”. In the Google Cloud Console, under “APIs & Services” › “Credentials”, create an “OAuth client ID” of the type “Web application”. Set the consent screen to “Internal”.
>
> **2. Enter the redirect URI**
>
> Enter the redirect URI from Mono under “Authorized redirect URIs”, for example `https://ki.muster.example/oauth/callback`.
>
> **3. Enter the details in Mono**
>
> Enter the client ID and the “Client secret”. Under “Workspace domain”, enter your domain, for example `muster-ag.example`. Then only accounts of this domain can sign in.
>
> **4. Test**
>
> Choose “Save and test” and sign in in the new window.

> [tab] In the chat
>
> The guided setup with tenant, client ID and the redirect URI to copy.
>
> Set up Microsoft Entra ID as our organization sign-in.
>
> “Mono Admin” asks for the tenant and the client ID and gives you a one-time link to the key page for the client secret. There you then test the sign-in.

> [!TIP]
>
> “Test passed. “Microsoft Entra ID” is live”. The sign-in page now shows “Sign in with Muster AG”.

## Who may sign in with Entra ID

> [!WARNING]
>
> If “Assignment required” is set to “Yes” in Entra ID (Enterprise applications › Properties), only the groups assigned to the app can sign in. Assign a group of all employees to the app, or set “Assignment required” to “No”. Otherwise Mono’s default “Member” never reaches these people.

## Connect the directory

With the directory, Mono knows names, groups and who is disabled. Mono reads it every 15 minutes, read only, and changes nothing in the directory.

**1. Open “Link rights”**

Open Access › Groups and roles and choose “Link rights”. The first step is called “Directory”.

**2. Add the permissions**

**Entra ID:** In your app registration, under “API permissions”, add the Microsoft Graph application permissions “User.Read.All” and “GroupMember.Read.All”.

**Google:** In the Google Cloud Console, enable the “Admin SDK API” for the project of the organization sign-in.

**3. Consent**

Choose “Consent” (Entra ID) or “Consent with Google”. Consent on behalf of the organization at the provider. The window in Mono then continues on its own.

> [!TIP]
>
> “Connected to Microsoft Entra ID”. Mono counts the active people and groups and, in the next step, proposes which group gets which role.

> [accordion] What happens next?
>
> * Mono syncs the directory every 15 minutes. “Sync now” under Access › Groups and roles fetches it immediately.
> * Anyone disabled in the directory loses access at the next sync.
> * Name, photo, job title and department come from the directory and are read only in Mono.
> * With Entra ID, Mono then also finds the Microsoft 365 services. More under [Connect Microsoft 365 or Google Workspace](https://mono.mintlify.site/en/admins/microsoft-365-google.md).

> [accordion] Which permissions does Mono request?
>
> | Where | What Mono requests |
> | - | - |
> | Sign-in with Entra ID | `openid profile email User.Read`, with “Read more than 200 groups” also `GroupMember.Read.All` |
> | Entra ID directory | Application permissions `User.Read.All` and `GroupMember.Read.All`, read only |
> | Sign-in with Google | `openid profile email` |
> | Google directory | `admin.directory.user.readonly` and `admin.directory.group.readonly` |

> [accordion] Without an app registration: “Organization sign-in through Mono”
>
> A self-hosted Node can also route the organization sign-in through “Sign in with Mono”, locked to your Microsoft 365 tenant. Then you register no app. Your IT sets this method in the Node’s settings. It goes live after a passed test.

> [accordion] Undo
>
> * The sign-in: Access › Sign-in, in the method’s menu “Switch off” or “Remove …”. Mono only allows this as long as an admin can still sign in afterwards.
> * The directory: under Access › Groups and roles, at “Directory”, “Disconnect …”. The groups then come from the sign-ins again; the links remain.

> [accordion] If something doesn't work
>
> | Message | What helps |
> | - | - |
> | “Test not passed” | Check the redirect URI, the tenant ID and whether the secret has expired. |
> | “none; Mono uses its own groups” | In Entra ID, add the groups claim under “Token configuration”. |
> | Microsoft rejects a person’s sign-in | Check “Assignment required” and whether one of the person’s groups is assigned to the app. |
> | “Sync failed: …” | Check the permissions and the consent, then “Sync now”. |
> | “This Node has no key store for Google’s consent.” | Every installed Node has its key store from the start. Your operator checks `/readyz` on the host: `keyStore` names the reason. |

## Next

> [card] [Link groups and roles](https://mono.mintlify.site/en/admins/groups-and-roles.md)
>
> Which group is Admin or approves.

> [card] [Microsoft 365 or Google Workspace](https://mono.mintlify.site/en/admins/microsoft-365-google.md)
>
> Mail, calendar and files as services.

> [card] [Decide how everyone signs in](https://mono.mintlify.site/en/admins/sign-in-methods.md)
>
> All methods and “Who may sign in”.

> [card] [Your own address](https://mono.mintlify.site/en/admins/own-address.md)
>
> Enter the redirect URI before the switch.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.