Skip to content
Proud to collaborate with Microsoft for Startups

data.identity.membership.update ​

Update role on an OrganizationUser row

Update the role on an existing (non-deleted) OrganizationUser row.

Input: membership_uuid + organization_uuid (required), role (required). Output in state_data: membership_uuid, previous_role, new_role, updated_at.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-identity
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
membership_uuiduuidYes——
organization_uuiduuidYes—Tenant check — must match the membership's organization
rolestringYes——
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
membership_uuiduuidYes——
previous_rolestringNo——
new_rolestringYes——
updated_atstringYes——
actorstringNo——
organization_uuiduuidNo——
rolestringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—completeUpdate membership
completedNoYesYes—Updated
failedNoYesNo—Update failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingcompletecompleted—
pendingfailfailed—

API Usage ​

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

{
  "workflow_type": "data.identity.membership.update",
  "initial_data": {
    "membership_uuid": "value",
    "organization_uuid": "value",
    "role": "value"
  }
}