Single sign-on and roles
Staff sign in through your OIDC identity provider. Emberseal supports several providers at once (for example Microsoft Entra ID for staff and Google for contractors). Recipients never sign in; they use their link and a one-time code.
Add a provider
Go to OIDC providers → Add provider:
| Field | What to enter |
|---|---|
| Kind | azure (Microsoft Entra ID), google, keycloak or generic for any other standards-compliant provider. |
| Display name, Login button icon | What the sign-in button shows. |
| Slug | A short identifier, part of the redirect URI. |
| Issuer / Tenant ID | The provider's issuer URL, or for Entra ID the directory (tenant) ID. |
| Client ID, Client secret | From the app registration in your provider. |
| Scopes | Usually openid profile email. |
| Group claim | The token claim that lists the user's groups. Empty tries groups, then roles. |
| Identity claim | Which claim identifies the person across providers (for example upn or email). Empty tries upn, preferred_username, email, then sub. Use the same logical value on every provider that should share one account. |
| Allowed groups | Optional: only members of these groups may sign in. |
Register this redirect URI in your provider (the page shows the exact value):
https://<your Emberseal address>/api/auth/oidc/<slug>/callback
[!NOTE] Any enabled provider that can assert an identity value can sign in to the account with that identity. Only enable providers you trust to assert it.
Microsoft Entra ID
- In the Entra admin center, create an app registration (single tenant), add the redirect URI above as a Web platform URI, and create a client secret.
- Under Token configuration, add a groups claim (security groups, emitted as group IDs or names) so Emberseal can map groups to roles.
- In Emberseal choose Kind azure, enter the tenant ID, client ID and secret.
For tenants with many groups, Entra sends a link instead of the group list. Turn on Settings → Directory (Microsoft Graph) so Emberseal looks groups up through Graph (the app needs the Microsoft Graph application permissions Group.Read.All, GroupMember.Read.All and User.Read.All, with admin consent). The same setting lets the role mappings page search your groups by name.
Map groups to roles
Go to Role mappings and map each group to a role:
| Role | Can do |
|---|---|
| user | Send messages and credential requests, use templates, see their own messages. Everyone who signs in gets this role by default. |
| admin | Everything a user can, plus all admin pages: settings, policy, branding, every message's metadata (never its content), the audit log, tokens and the licence. |
| DLP approver | Added on top of the person's role: approve or deny sends held by data loss prevention. Admins can always approve. |
A mapping can be limited to one provider, so a group name asserted by a less-trusted provider can't grant admin. Role changes apply at the person's next sign-in.
The break-glass admin
The admin in BOOTSTRAP_ADMIN_EMAIL signs in with a password (not SSO) and is re-applied on every start. Keep its password (secrets/bootstrap_admin_password) somewhere safe and use it only when single sign-on isn't available.

