Engineering guide · ICAM

Realms And Delegated Administration

Status: currentReviewed: 2026-07-23Audience: identity developers, authorization developers, realm administrators
On this pageAPIDelegated PermissionsPersistence And Evidence

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

GET, POST

/api/v1/icam/realms

List visible realms or create a realm.

GET, PUT

/api/v1/icam/realms/{realmId}

Read or optimistically update one realm.

GET, POST

/api/v1/icam/realms/{realmId}/delegations

List or grant delegated permissions.

GET, POST

/api/v1/icam/realms/{realmId}/assignments

List or assign a user or group.

GET

/api/v1/icam/realms/{realmId}/events

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.read and realm.manage

  • realm.users.read and realm.users.manage

  • realm.groups.read and realm.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.