ulams identity
Generated from front/cli (ulams schema)
ulams identity audit-list
Section titled “ulams identity audit-list”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 |
# Identity audit trail, newest firstulams identity audit-list --jsonInput 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": {}}ulams identity audit-verify
Section titled “ulams identity audit-verify”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.
# Recompute the hash chain of the identity audit trailulams identity audit-verify --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": {}, "additionalProperties": {}}ulams identity providers-create
Section titled “ulams identity providers-create”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 |
# Add an OpenID Connect or SAML identity provider (secrets and keys are stored encrypted and never shown again)ulams identity providers-create --jsonInput 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": {}}ulams identity providers-delete
Section titled “ulams identity providers-delete”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 |
# Delete an identity provider and its account links (accounts stay)ulams identity providers-delete text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "provider": { "type": "string" } }, "required": [ "provider" ], "additionalProperties": {}}ulams identity providers-get
Section titled “ulams identity providers-get”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 |
# One identity providerulams identity providers-get text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "provider": { "type": "string" } }, "required": [ "provider" ], "additionalProperties": {}}ulams identity providers-list
Section titled “ulams identity providers-list”Identity providers of this academy.
Kind: read (idempotent). Stability: stable. MCP tool: identity_providers_list. Scopes: learner:read.
Endpoints: GET /api/admin/identity/providers.
# Identity providers of this academyulams identity providers-list --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": {}, "additionalProperties": {}}ulams identity providers-public
Section titled “ulams identity providers-public”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.
# The identity providers a learner can sign in with (slug and name only)ulams identity providers-public --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": {}, "additionalProperties": {}}ulams identity providers-refresh-metadata
Section titled “ulams identity providers-refresh-metadata”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) |
# Fetch the SAML identity provider metadata again (accept_changes applies a new entity id and certificate set)ulams identity providers-refresh-metadata text --jsonInput 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": {}}ulams identity providers-rotate-sp-keys
Section titled “ulams identity providers-rotate-sp-keys”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 |
# Prepare or activate the next SAML service provider key pair (step prepare or promote)ulams identity providers-rotate-sp-keys text --step text --jsonInput 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": {}}ulams identity providers-update
Section titled “ulams identity providers-update”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 |
# Change an identity provider (leave client_secret out to keep the stored one)ulams identity providers-update text --jsonInput 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": {}}ulams identity scim-tokens-create
Section titled “ulams identity scim-tokens-create”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 |
# 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 --jsonInput 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": {}}ulams identity scim-tokens-list
Section titled “ulams identity scim-tokens-list”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 |
# SCIM tokens of an identity provider, active and revoked (the secret is never listed)ulams identity scim-tokens-list text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "provider": { "type": "string" } }, "required": [ "provider" ], "additionalProperties": {}}ulams identity scim-tokens-revoke
Section titled “ulams identity scim-tokens-revoke”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 |
# Revoke a SCIM tokenulams identity scim-tokens-revoke text text --jsonInput 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": {}}