Delegated administration
When you run AUMS on your identity provider for several customers, each customer can get its own AUMS organization that manages only its own users. You (the operator, as an instance admin) bind each organization to one tenant of the directory; the provider itself then does the filtering:
| Provider | Bind to | How the users are limited |
|---|---|---|
| Auth0 | an Auth0 organization | its members; new users join it |
| Keycloak | a Keycloak organization (Keycloak 26+) or a group | its members; new users join it |
| SuperTokens | a tenant | the tenant’s users; new users sign up in it |
| Firebase | an Identity Platform tenant | the tenant’s users; new users are created in it |
| Entra ID | an administrative unit or a group | its members; new users join it |
| Ory | an Ory Network organization, or a tenant value of the identities’ admin metadata (self-hosted Kratos) | its identities; new identities join it |
| Cognito | a group of the user pool | its users; new users join it |
The SCIM provider does not support a binding yet: its organizations see the whole directory, or nothing in strict mode.
Binding an organization
Section titled “Binding an organization”As an instance admin, open the organization’s Settings → Organization → Provider and fill in the binding:
- Auth0 organization ID:
org_…, from the Auth0 dashboard (Organizations). The Management API application also needsread:organizations,read:organization_members,create:organization_membersandread:users. - Keycloak organization ID or Keycloak group ID, one of the two: the id shown in the Keycloak admin console. Organizations need
manage-organizations(to add new users) andview-users; groups needmanage-users. - SuperTokens tenant ID: the tenant must allow email/password sign-ups (
firstFactorsincludingemailpassword). - Identity Platform tenant ID: the tenant id shown in the Google Cloud console (Identity Platform → Tenants). Tenants exist only with Google Cloud Identity Platform (multi-tenancy turned on): a plain Firebase project has none, and its users cannot be bound. The service account needs the
Firebase Authentication Adminrole (firebaseauth.users.*,firebaseauth.configs.getto read the tenants). Users of a tenant are invisible to an organization that has no binding. - Entra administrative unit ID or Entra group ID, one of the two: the object id shown in the Entra admin center. The app registration needs
User.Read.All, plusAdministrativeUnit.ReadWrite.All(units) orGroupMember.ReadWrite.All(groups) to add new users. A group’s nested groups count as members. The members endpoints have no search or filter: AUMS reads up to 2,000 members and searches and filters them itself, and the last sign-in date is shown only when Graph returns it for members. - Ory organization ID (Ory Network, B2B organizations) or Ory tenant (self-hosted Kratos, which has no organizations), one of the two. The organization is filtered by Ory’s admin API. The tenant is the
tenantkey of each identity’smetadata_admin({"tenant": "customer1"}): AUMS sets it on the identities it creates, and finds the existing ones by reading up to 10,000 identities, so prefer organizations on large directories. Setmetadata_admin.tenanton identities you already have with the Kratos admin API. - Cognito group name: a group of the user pool. The IAM user also needs
cognito-idp:ListUsersInGroup,cognito-idp:AdminListGroupsForUserandcognito-idp:AdminAddUserToGroup(see the Cognito setup).ListUsersInGrouphas no search or filter: AUMS reads up to 2,000 members and searches and filters them itself. - User limit (optional): creating more users than this in the tenant is refused, by the form, the CSV import and the API alike.
Only instance admins can change these fields: an organization owner sees them read-only, so a customer can never move its organization to another tenant.
Once bound, everything the organization’s admins do is limited to the tenant: the users list and its search, filters and export, a user’s page and every action on it, the CSV import, the dashboard numbers, approvals and the REST API keys of that organization. A user of another tenant reads as not found. On the Organizations page they see their own IdP organization only (its members and invitations), and cannot create or delete organizations.
Customer admin roles
Section titled “Customer admin roles”Invite a customer’s administrators into their organization (Settings → Members) with one of the tenant roles. They see a console about their own users: Users, Team (the members and invitations of their IdP organization), Approvals when deletions need one, and their organization’s audit trail. The instance settings, provider settings, webhooks, API access, the list of IdP organizations and the provider’s audit logs are hidden, and their server functions refuse these roles. Provider internals (connection names, raw identities, app metadata) are not shown to them.
| Permission | Owner | Admin | Member | Tenant admin | Tenant support | Tenant viewer |
|---|---|---|---|---|---|---|
Read users (user:read) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Create (user:create), edit profiles (user:update) | ✓ | ✓ | ✓ | |||
Block and unblock (user:block) | ✓ | ✓ | ✓ | ✓ | ||
Delete (user:delete) | ✓ | ✓ | ||||
Passwords, MFA, identities (user:credentials) | ✓ | ✓ | ||||
Password reset and verification emails, sign out everywhere (user:support) | ✓ | ✓ | ✓ | ✓ | ||
Roles (user:roles), metadata (user:metadata) | ✓ | ✓ | ✓ | |||
Import (user:import), export (user:export) | ✓ | ✓ | ✓ | |||
Provider internals (user:raw), provider audit logs | ✓ | ✓ | ✓ | |||
Team: read (idp-organization:read) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Team: invite and remove members (tenant:members) | ✓ | ✓ | ✓ | |||
Audit trail (admin-audit:read) | ✓ | ✓ | ✓ | ✓ | ✓ | |
Settings (settings:write) | ✓ |
user:write still exists as the union of the user permissions above (but deletion), for the roles and API tokens that hold it.
A tenant role never acts on someone with more AUMS access in the same organization (matched by email): tenant support cannot block a tenant admin, and no tenant role can act on the operator’s staff or an instance admin.
Members of their own organization
Section titled “Members of their own organization”A tenant admin can invite and remove the AUMS members of their organization (Settings → Members), with tenant roles only. The server refuses, whatever the request says:
- inviting with, or changing someone to,
owner,admin,member, or a tenant role ranked above their own (admin > support > viewer); - changing, removing or cancelling the invitation of anyone who holds a role other than tenant roles, or who is an instance admin: the operator’s staff;
- renaming or deleting the organization, and its teams.
Policies
Section titled “Policies”In Settings → Policies, the operator (instance admins, or the organization’s owner) sets what the organization’s admins may do on top of their role. Instance admins are never limited by these.
- Deleting users: allowed, always needs a second admin’s approval, or not allowed. API tokens delete only where it is allowed.
- Exporting users as CSV: on or off.
- Editable metadata: which metadata buckets they may edit.
- The user limit and the assignable roles are in the provider settings.
Signing in customer admins
Section titled “Signing in customer admins”- Invitation: the operator invites them into the organization with a tenant role (Settings → Members). With email and password sign-in, they set their password from the invitation.
- Through your identity provider (OIDC): customer admins who are users of the same directory sign in with it. Mapping their organization and role from the token’s claims is not available yet; until then, invite them once with their email.
In strict mode, someone who signs in without belonging to any organization sees a No access yet page instead of being offered to create an organization, including when they open /onboarding directly.
Strict mode
Section titled “Strict mode”TENANT_ISOLATION=strictWith strict mode, an organization that is not bound gives its organization roles no access to users at all, reads included: empty lists, users not found, creation refused. Instance admins are never limited. New installs have it on (.env.example); bind every customer organization before you rely on it.
Without strict mode, an organization that is not bound sees the whole directory, as AUMS always did.
Upgrading
Section titled “Upgrading”Upgraded instances keep strict mode off until you set it, so nothing changes on upgrade. When several organizations exist and strict mode is off, AUMS logs a warning at startup. To move to strict mode:
- Bind each customer organization to its tenant (above).
- Set
TENANT_ISOLATION=strictand restart. - Check that the organizations you did not bind are the ones that should see no users.