Engineering guide · ICAM
Universal Directory User Types And Security Classifications
On this page
User Type ModelClassification ModelRequest-Time EnforcementAuthority And StorageREST APICreate A User TypeCreate And Assign A ClassificationFailure ContractDocker VerificationAtlas Universal Directory separates two identity-governance dimensions that are often confused:
-
an assigned user type selects the schema that validates the user’s profile;
-
a security classification constrains how the user may exercise authority.
The profile attribute named userType remains a descriptive business label.
It does not select a schema and it does not grant authority.
This follows the distinction in the
Okta User Types API
while preventing a writable profile string from becoming a security control.
Atlas supports the Okta-compatible user-type lifecycle and maximum of ten
types per tenant.
It extends the model with independently assignable, enforceable
classifications rather than treating STANDARD or LITE as response-only
metadata.
User Type Model
Every user type contains:
-
an immutable API
name; -
a mutable display name and description;
-
a complete versioned
profileSchema; -
a default marker;
-
an optimistic revision;
-
actor, timestamp, HMAC, and key-identifier evidence.
The schema uses the same governed Universal Directory attribute definitions as profile mapping, mastering, imports, group rules, and Atlas Vector Language. It declares base, mission, and custom attributes; value types; required, unique, and multi-valued behavior; sensitivity; aliases; source authority; and secret-field rejection.
Atlas creates one immutable-identity default type for each tenant on first authoritative use. Unassigned users inherit that type. The default type cannot be deleted.
When a type is assigned, Atlas validates the user’s current profile against the target schema before committing the assignment. When a type’s schema is replaced, Atlas locks and revalidates every user that inherits or is explicitly assigned to that type. One incompatible user rejects the complete transaction. The system never commits a schema that silently invalidates part of the directory.
Classification Model
A security classification contains:
minimumAal-
Minimum authenticator assurance level for the classified actor.
minimumIal-
Minimum identity assurance level for the classified actor.
maximumSessionMinutes-
Maximum age of the bearer session accepted for an authorized request. The allowed range is 5 through 1,440 minutes.
administratorCapabilitiesAllowed-
Whether the actor may exercise role-gated administrator capabilities. Setting this to
falsedoes not remove RBAC assignments; it adds a request-time deny boundary above them.
The tenant default is STANDARD, AAL1, IAL1, a 720-minute maximum session
age, and administrator capabilities allowed.
That default is equivalent to Atlas’s normal authenticated API floor.
Custom names use upper-case letters, digits, and underscore. Atlas permits up to 64 classification policies per tenant.
Classification policy can be tightened in place:
-
minimumAalandminimumIalmay increase; -
maximumSessionMinutesmay decrease; -
administrator capabilities may change from allowed to prohibited.
It cannot be relaxed in place. To relax policy, create a new named classification and explicitly reassign users. This preserves reviewable intent and prevents a routine metadata edit from silently weakening every existing assignment.
Request-Time Enforcement
The gateway’s authorization sequence is:
-
validate the bearer token and tenant;
-
evaluate signed Atlas RBAC/ABAC authority;
-
load the actor’s materialized directory-governance assignment;
-
verify the assignment and classification HMACs;
-
enforce classification AAL, IAL, session-age, and administrator restrictions;
-
audit the final allow or deny decision.
A classification can only further restrict the authorization policy. It cannot grant a capability or reduce an endpoint’s existing assurance floor.
The enforcement lookup uses the authenticated actor, not the target user in
the URL.
For example, a properly authorized security administrator can reclassify a
LITE user, while the LITE user cannot use prohibited administrator
capabilities merely because the target is itself.
If current assignment state disappears after a committed assignment event,
Atlas detects the missing materialization and returns 503.
It does not fall back to STANDARD.
Changed assignment or policy state also fails HMAC verification and denies the
request.
Authority And Storage
The identity service and identity PostgreSQL database own four authorities:
directory_user_types-
Tenant-qualified type definitions and complete JSON profile schemas.
directory_security_classifications-
Tenant-qualified assurance and operator-authority restrictions.
directory_user_governance_assignments-
One current type and classification pair per materialized user. Composite foreign keys require the user, type, and classification to belong to the same tenant.
directory_governance_events-
Append-only mutation evidence for definitions and user assignments. Each resource has its own previous-hash chain.
Current rows and events use HMAC-SHA256 over domain-separated canonical state. The assignment evidence binds the tenant, user, type ID, classification ID, and revision. Definition evidence binds every policy field and, for user types, a canonical schema digest.
The authority requires the same 32-byte-or-longer directory HMAC key as linked objects:
ATLAS_MEMBERSHIP_MAC_KEY_B64=<base64-encoded-key>
ATLAS_MEMBERSHIP_MAC_KEY_PATH=/run/secrets/atlas-directory-mac-key
A missing or mismatched key never causes an unkeyed downgrade.
REST API
The complete OpenAPI 3.1 contract is available at /openapi.json, with
Swagger UI at /docs/.
| Method | Route | Capability and assurance | Purpose |
|---|---|---|---|
|
|
|
List or create Okta-compatible user types. |
|
|
Read at AAL1; mutation at fresh AAL2 with |
Read, fully replace, or delete an unused non-default type. |
|
|
|
Read the complete profile schema selected by a type. |
|
|
|
List or create Atlas security classification policies. |
|
|
Read at AAL1; mutation at fresh AAL2 with |
Read, tighten, or delete an unused non-default classification. |
|
|
|
Read the effective type, classification, and assignment. |
|
|
|
Validate the current profile and assign a schema-selecting type. |
|
|
|
Assign enforceable classification policy. |
Assignment uses purpose-built routes instead of requiring clients to replace
an entire user document.
This is safer than coupling a schema or classification transition to unrelated
profile and credential fields.
If-Match is optional for the first materialization and exact replay, but
required when changing either dimension of an existing assignment.
Create A User Type
curl --fail-with-body \
-H "Authorization: Bearer ${AAL2_SCHEMA_ADMIN_TOKEN}" \
-H "Idempotency-Key: contractor-type-20260725-0001" \
-H "Content-Type: application/json" \
-X POST \
"https://id.atlas.example/api/v1/meta/types/user" \
--data '{
"name": "Contractor",
"displayName": "Contractor",
"description": "Externally sponsored workforce identity",
"profileSchema": {
"schemaId": "atlas-contractor-v1",
"version": "v1",
"displayName": "Contractor Profile",
"attributes": [
{
"name": "id",
"label": "ID",
"helpText": "Atlas user identifier.",
"kind": "base",
"type": "string",
"sensitivity": "internal"
},
{
"name": "sponsorId",
"label": "Sponsor",
"helpText": "Authoritative sponsor user identifier.",
"kind": "custom",
"type": "reference",
"required": true,
"sensitivity": "controlled"
}
],
"rejectUnknownAttributes": true
}
}'
Creation returns 201, a strong ETag such as "v1", and
X-Atlas-Evidence-Hash.
An exact retry returns 200 with Idempotent-Replayed: true.
Reusing the immutable name with different content returns 409.
The response retains the Okta-compatible fields and HAL links:
{
"id": "f17b9969-776e-4e37-92c7-04030ef77918",
"name": "Contractor",
"displayName": "Contractor",
"description": "Externally sponsored workforce identity",
"default": false,
"profileSchema": {
"schemaId": "atlas-contractor-v1",
"version": "v1"
},
"revision": 1,
"evidenceHash": "2db140...",
"integrityMode": "HMAC-SHA256",
"_links": {
"self": {
"href": "/api/v1/meta/types/user/f17b9969-776e-4e37-92c7-04030ef77918"
},
"schema": {
"href": "/api/v1/meta/schemas/user/f17b9969-776e-4e37-92c7-04030ef77918"
}
}
}
Create And Assign A Classification
curl --fail-with-body \
-H "Authorization: Bearer ${AAL2_SCHEMA_ADMIN_TOKEN}" \
-H "Idempotency-Key: lite-classification-20260725-0001" \
-H "Content-Type: application/json" \
-X POST \
"https://id.atlas.example/api/v1/identity/security-classifications" \
--data '{
"name": "LITE",
"displayName": "Lite workforce identity",
"description": "Self-service only; no administrator capabilities.",
"minimumAal": 2,
"minimumIal": 2,
"maximumSessionMinutes": 30,
"administratorCapabilitiesAllowed": false
}'
Assign the schema type:
curl --fail-with-body \
-H "Authorization: Bearer ${AAL2_ASSIGNMENT_ADMIN_TOKEN}" \
-H "Idempotency-Key: type-assignment-alice-20260725-0001" \
-X PUT \
"https://id.atlas.example/api/v1/users/${ALICE_ID}/type/${CONTRACTOR_TYPE_ID}"
Capture the assignment ETag. Use it when assigning the classification:
curl --fail-with-body \
-H "Authorization: Bearer ${AAL2_ASSIGNMENT_ADMIN_TOKEN}" \
-H "Idempotency-Key: classification-alice-20260725-0001" \
-H 'If-Match: "v1"' \
-X PUT \
"https://id.atlas.example/api/v1/users/${ALICE_ID}/classification/${LITE_CLASSIFICATION_ID}"
The response contains the complete effective type and classification and
revision 2 of the signed combined assignment.
A concurrent request using "v1" returns 409.
Failure Contract
| Status | Meaning |
|---|---|
|
Invalid JSON, name, description, schema, assurance bound, session bound, or idempotency key. |
|
The actor lacks the required capability, fresh assurance, classification AAL or IAL, allowable session age, or administrator permission. |
|
The tenant-qualified user, type, or classification does not exist. |
|
A name is reserved, a limit was reached, an assigned user violates a target schema, a default or assigned definition cannot be deleted, policy relaxation was attempted, or an ETag is stale. |
|
Replacement or deletion requires |
|
The identity database, HMAC key, current-state evidence, or materialized assignment is unavailable or untrusted. Atlas denies the request instead of using unverified policy. |
Terminated users cannot receive a new type or classification. Leaver workflows should preserve or explicitly remediate the final governance state as part of evidence-complete deprovisioning.
Docker Verification
Run focused tests:
Internal implementation checks are omitted from this public guide.
Run isolated PostgreSQL acceptance:
scripts/test/run-user-types-docker-validation.sh
The Docker test creates two tenants and a real user, materializes and verifies the default authorities, creates and replays a custom user type, rejects a type whose required schema is not satisfied, assigns a valid type and restrictive classification, rejects stale replacement and policy relaxation, prevents deletion of assigned authority, proves cross-tenant denial, reconnects to PostgreSQL, verifies durable state, proves event mutation is rejected, directly tampers with the current assignment, and proves the next read fails closed.
The runner applies a memory guard and writes logs plus a SHA-256 manifest under
artifacts/user-types-docker-validation/.