Skip to content

ulams identity

Generated from front/cli (ulams schema)

Identity audit trail, newest first.

Kind: read (idempotent). Stability: stable. MCP tool: identity_audit_list. Scopes: learner:read.

Endpoints: GET /api/admin/identity/audit.

Flag Type Required Description
--action string
--provider-id string
--before-id integer Page: entries older than this id
--limit integer
Terminal window
# Identity audit trail, newest first
ulams identity audit-list --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"action": {
"type": "string"
},
"provider_id": {
"type": "string"
},
"before_id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Page: entries older than this id"
},
"limit": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"additionalProperties": {}
}

Recompute the hash chain of the identity audit trail.

Kind: read (idempotent). Stability: stable. MCP tool: identity_audit_verify. Scopes: learner:read.

Endpoints: GET /api/admin/identity/audit/verify.

Terminal window
# Recompute the hash chain of the identity audit trail
ulams identity audit-verify --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": {}
}

Add an OpenID Connect or SAML identity provider (secrets and keys are stored encrypted and never shown again).

Kind: write. Stability: stable. MCP tool: identity_providers_create. Scopes: learner:write.

Endpoints: POST /api/admin/identity/providers.

Flag Type Required Description
--client-secret string Write-only; stored encrypted
--default-role string
--email-domains array
--enabled boolean
--jit-enabled boolean
--name string
--oidc object
--protocol string Fixed at creation (default oidc); ignored on update
--saml object SAML providers: give metadata_url or metadata_xml (entity id, endpoints and certificates are read from it), or the fields by hand
--scim object
--slug string Lowercase letters, digits and hyphens; required on create, ignored on update
--trust-email boolean
Terminal window
# Add an OpenID Connect or SAML identity provider (secrets and keys are stored encrypted and never shown again)
ulams identity providers-create --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"client_secret": {
"type": "string",
"description": "Write-only; stored encrypted"
},
"default_role": {
"type": "string",
"enum": [
"student",
"tutor"
]
},
"email_domains": {
"type": "array",
"items": {
"type": "string"
}
},
"enabled": {
"type": "boolean"
},
"jit_enabled": {
"type": "boolean"
},
"name": {
"type": "string"
},
"oidc": {
"type": "object",
"properties": {
"client_id": {
"type": "string"
},
"issuer": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
},
"token_auth": {
"type": "string",
"enum": [
"client_secret_basic",
"client_secret_post"
]
},
"userinfo": {
"type": "boolean"
}
},
"additionalProperties": {}
},
"protocol": {
"type": "string",
"enum": [
"oidc",
"saml"
],
"description": "Fixed at creation (default oidc); ignored on update"
},
"saml": {
"type": "object",
"properties": {
"allow_sha1": {
"type": "boolean"
},
"attribute_map": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"first_name": {
"type": "string"
},
"last_name": {
"type": "string"
},
"name": {
"type": "string"
},
"subject": {
"type": "string"
}
},
"additionalProperties": {}
},
"entity_id": {
"type": "string"
},
"idp_certificates": {
"type": "array",
"items": {
"type": "string"
},
"description": "Replaces the trusted signing certificates (PEM or base64)"
},
"metadata_url": {
"type": "string"
},
"metadata_xml": {
"type": "string",
"description": "Uploaded IdP metadata (at most 2 MB)"
},
"name_id_format": {
"type": "string"
},
"slo_url": {
"type": "string"
},
"sso_url": {
"type": "string"
},
"want_encrypted_assertions": {
"type": "boolean"
}
},
"additionalProperties": {},
"description": "SAML providers: give metadata_url or metadata_xml (entity id, endpoints and certificates are read from it), or the fields by hand"
},
"scim": {
"type": "object",
"properties": {
"group_roles": {
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
],
"description": "Display name of a SCIM group to student or tutor: members of such a group get the role while they are members (replaces the whole mapping; admin cannot be mapped)"
}
},
"additionalProperties": {}
},
"slug": {
"type": "string",
"description": "Lowercase letters, digits and hyphens; required on create, ignored on update"
},
"trust_email": {
"type": "boolean"
}
},
"additionalProperties": {}
}

Delete an identity provider and its account links (accounts stay).

Kind: destructive (idempotent). Stability: stable. MCP tool: identity_providers_delete. Scopes: learner:write.

Endpoints: DELETE /api/admin/identity/providers/{provider}.

Flag Type Required Description
--provider (positional) string yes
Terminal window
# Delete an identity provider and its account links (accounts stay)
ulams identity providers-delete text --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"provider": {
"type": "string"
}
},
"required": [
"provider"
],
"additionalProperties": {}
}

One identity provider.

Kind: read (idempotent). Stability: stable. MCP tool: identity_providers_get. Scopes: learner:read.

Endpoints: GET /api/admin/identity/providers/{provider}.

Flag Type Required Description
--provider (positional) string yes
Terminal window
# One identity provider
ulams identity providers-get text --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"provider": {
"type": "string"
}
},
"required": [
"provider"
],
"additionalProperties": {}
}

Identity providers of this academy.

Kind: read (idempotent). Stability: stable. MCP tool: identity_providers_list. Scopes: learner:read.

Endpoints: GET /api/admin/identity/providers.

Terminal window
# Identity providers of this academy
ulams identity providers-list --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": {}
}

The identity providers a learner can sign in with (slug and name only).

Kind: read (idempotent). Stability: stable. MCP tool: identity_providers_public. Scopes: none.

Endpoints: GET /api/identity/providers.

Terminal window
# The identity providers a learner can sign in with (slug and name only)
ulams identity providers-public --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": {}
}

Fetch the SAML identity provider metadata again (accept_changes applies a new entity id and certificate set).

Kind: write. Stability: stable. MCP tool: identity_providers_refresh_metadata. Scopes: learner:write.

Endpoints: POST /api/admin/identity/providers/{provider}/metadata/refresh.

Flag Type Required Description
--provider (positional) string yes
--accept-changes boolean Apply a changed entity id and replace the trusted certificates with the ones in the metadata (an administrator’s decision)
Terminal window
# Fetch the SAML identity provider metadata again (accept_changes applies a new entity id and certificate set)
ulams identity providers-refresh-metadata text --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"provider": {
"type": "string"
},
"accept_changes": {
"type": "boolean",
"description": "Apply a changed entity id and replace the trusted certificates with the ones in the metadata (an administrator's decision)"
}
},
"required": [
"provider"
],
"additionalProperties": {}
}

Prepare or activate the next SAML service provider key pair (step prepare or promote).

Kind: write. Stability: stable. MCP tool: identity_providers_rotate_sp_keys. Scopes: learner:write.

Endpoints: POST /api/admin/identity/providers/{provider}/sp-keys/rotate.

Flag Type Required Description
--provider (positional) string yes
--step string yes prepare: generate the next pair and publish it in the SP metadata; promote: make it the current pair once the identity provider has imported it
Terminal window
# Prepare or activate the next SAML service provider key pair (step prepare or promote)
ulams identity providers-rotate-sp-keys text --step text --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"provider": {
"type": "string"
},
"step": {
"type": "string",
"enum": [
"prepare",
"promote"
],
"description": "prepare: generate the next pair and publish it in the SP metadata; promote: make it the current pair once the identity provider has imported it"
}
},
"required": [
"provider",
"step"
],
"additionalProperties": {}
}

Change an identity provider (leave client_secret out to keep the stored one).

Kind: write (idempotent). Stability: stable. MCP tool: identity_providers_update. Scopes: learner:write.

Endpoints: PUT /api/admin/identity/providers/{provider}.

Flag Type Required Description
--provider (positional) string yes
--client-secret string Write-only; stored encrypted
--default-role string
--email-domains array
--enabled boolean
--jit-enabled boolean
--name string
--oidc object
--protocol string Fixed at creation (default oidc); ignored on update
--saml object SAML providers: give metadata_url or metadata_xml (entity id, endpoints and certificates are read from it), or the fields by hand
--scim object
--slug string Lowercase letters, digits and hyphens; required on create, ignored on update
--trust-email boolean
Terminal window
# Change an identity provider (leave client_secret out to keep the stored one)
ulams identity providers-update text --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"provider": {
"type": "string"
},
"client_secret": {
"type": "string",
"description": "Write-only; stored encrypted"
},
"default_role": {
"type": "string",
"enum": [
"student",
"tutor"
]
},
"email_domains": {
"type": "array",
"items": {
"type": "string"
}
},
"enabled": {
"type": "boolean"
},
"jit_enabled": {
"type": "boolean"
},
"name": {
"type": "string"
},
"oidc": {
"type": "object",
"properties": {
"client_id": {
"type": "string"
},
"issuer": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
},
"token_auth": {
"type": "string",
"enum": [
"client_secret_basic",
"client_secret_post"
]
},
"userinfo": {
"type": "boolean"
}
},
"additionalProperties": {}
},
"protocol": {
"type": "string",
"enum": [
"oidc",
"saml"
],
"description": "Fixed at creation (default oidc); ignored on update"
},
"saml": {
"type": "object",
"properties": {
"allow_sha1": {
"type": "boolean"
},
"attribute_map": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"first_name": {
"type": "string"
},
"last_name": {
"type": "string"
},
"name": {
"type": "string"
},
"subject": {
"type": "string"
}
},
"additionalProperties": {}
},
"entity_id": {
"type": "string"
},
"idp_certificates": {
"type": "array",
"items": {
"type": "string"
},
"description": "Replaces the trusted signing certificates (PEM or base64)"
},
"metadata_url": {
"type": "string"
},
"metadata_xml": {
"type": "string",
"description": "Uploaded IdP metadata (at most 2 MB)"
},
"name_id_format": {
"type": "string"
},
"slo_url": {
"type": "string"
},
"sso_url": {
"type": "string"
},
"want_encrypted_assertions": {
"type": "boolean"
}
},
"additionalProperties": {},
"description": "SAML providers: give metadata_url or metadata_xml (entity id, endpoints and certificates are read from it), or the fields by hand"
},
"scim": {
"type": "object",
"properties": {
"group_roles": {
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
],
"description": "Display name of a SCIM group to student or tutor: members of such a group get the role while they are members (replaces the whole mapping; admin cannot be mapped)"
}
},
"additionalProperties": {}
},
"slug": {
"type": "string",
"description": "Lowercase letters, digits and hyphens; required on create, ignored on update"
},
"trust_email": {
"type": "boolean"
}
},
"required": [
"provider"
],
"additionalProperties": {}
}

Create a SCIM token for an identity provider; the token is shown once and at most two are active (rotation: create the new one, switch the client, revoke the old one).

Kind: write. Stability: stable. MCP tool: identity_scim_tokens_create. Scopes: learner:write.

Endpoints: POST /api/admin/identity/providers/{provider}/scim-tokens.

Flag Type Required Description
--provider (positional) string yes
--expires-in-days integer Default 365
--name string yes
Terminal window
# Create a SCIM token for an identity provider; the token is shown once and at most two are active (rotation: create the new one, switch the client, revoke the old one)
ulams identity scim-tokens-create text --name Example --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"provider": {
"type": "string"
},
"expires_in_days": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Default 365"
},
"name": {
"type": "string"
}
},
"required": [
"provider",
"name"
],
"additionalProperties": {}
}

SCIM tokens of an identity provider, active and revoked (the secret is never listed).

Kind: read (idempotent). Stability: stable. MCP tool: identity_scim_tokens_list. Scopes: learner:read.

Endpoints: GET /api/admin/identity/providers/{provider}/scim-tokens.

Flag Type Required Description
--provider (positional) string yes
Terminal window
# SCIM tokens of an identity provider, active and revoked (the secret is never listed)
ulams identity scim-tokens-list text --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"provider": {
"type": "string"
}
},
"required": [
"provider"
],
"additionalProperties": {}
}

Revoke a SCIM token.

Kind: destructive (idempotent). Stability: stable. MCP tool: identity_scim_tokens_revoke. Scopes: learner:write.

Endpoints: DELETE /api/admin/identity/providers/{provider}/scim-tokens/{token}.

Flag Type Required Description
--provider (positional) string yes
--token (positional) string yes Id of the token
Terminal window
# Revoke a SCIM token
ulams identity scim-tokens-revoke text text --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"provider": {
"type": "string"
},
"token": {
"type": "string",
"description": "Id of the token"
}
},
"required": [
"provider",
"token"
],
"additionalProperties": {}
}