Skip to content
Proud to collaborate with Microsoft for Startups

identity.app-organization.assign-role ​

Set or change a member's workspace role

Set or change a member's workspace role (group_slug), with audit.

Inputs: actor, organization_uuid, identity_app_uuid, app_organization_uuid, end_user_uuid, group_slug (all required); force (accepted and ignored — kept for callers written against the old last-owner guard). Writes role_updated_by/at on the membership. Mirrors identity.end-user.assign-group. Outputs: app_organization_uuid, end_user_uuid, previous_role, new_role, updated_at.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-identity
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
actorstringYes——
organization_uuiduuidYes——
identity_app_uuiduuidYes——
app_organization_uuiduuidYes——
end_user_uuiduuidYes——
group_slugstringYes——
forcebooleanNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
app_organization_uuiduuidNo——
end_user_uuiduuidNo——
previous_rolestringNo——
new_rolestringNo——
updated_atstringNo——
group_slugstringNo——
identity_app_uuiduuidNo——
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.app-organization.assign-role",
  "initial_data": {
    "actor": "value",
    "organization_uuid": "value",
    "identity_app_uuid": "value",
    "app_organization_uuid": "value"
  }
}