Engineering guide · ICAM
Realms And Delegated Administration
An identity realm groups users and groups under a delegated policy boundary inside one Atlas tenant. Realm identifiers are tenant scoped. Normalized domains are unique within the tenant, and at most one realm is the default.
API
| Method | Path | Purpose |
|---|---|---|
|
|
List visible realms or create a realm. |
|
|
Read or optimistically update one realm. |
|
|
List or grant delegated permissions. |
|
|
List or assign a user or group. |
|
|
Read the append-only evidence chain. |
Mutations require fresh AAL2.
Creating a realm and granting delegation require icam.realms.admin.
Realm-scoped management requires icam.realms.manage plus a non-expired persisted delegation unless the actor is a global ICAM administrator.
Delegated Permissions
The permission vocabulary is bounded:
-
realm.readandrealm.manage -
realm.users.readandrealm.users.manage -
realm.groups.readandrealm.groups.manage
Delegations have optimistic versions and may have a bounded expiry. An administrator cannot grant a delegation to itself. Principal assignments are unique per tenant and principal type, preventing a user or group from being silently assigned to two realms.
Persistence And Evidence
icam_realms, icam_realm_domains, icam_realm_delegations, and icam_realm_principals hold tenant-keyed state.
Each mutation appends an icam_realm_events record whose previousHash links to the preceding event.
PostgreSQL rejects updates and deletes against the event ledger.
Use the returned version on updates:
{
"expectedVersion": 3,
"realm": {
"name": "Mission Alpha",
"domains": ["alpha.example"],
"status": "active",
"default": false
}
}
Stale versions return 409 Conflict.
Cross-tenant identifiers return no realm data.