Skip to content
Proud to collaborate with Microsoft for Startups

identity.end-user.organization.switch ​

Set the current end-user's active workspace

Set the CURRENT end-user's active workspace.

Principal is the injected end-user token (never input). Input: app_organization_uuid. Validates the end-user is an ACTIVE member of the target workspace and fails closed otherwise, then writes EndUserAppGrant.active_app_organization_id. Outputs: app_organization_ref, active_app_organization_uuid, membership_status.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-identity
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
app_organization_uuiduuidYes——

Output Schema ​

FieldTypeRequiredDefaultDescription
app_organization_refdictNo——
active_app_organization_uuiduuidNo——
membership_statusstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
reasonstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "identity.end-user.organization.switch",
  "initial_data": {
    "app_organization_uuid": "value"
  }
}