Skip to content
Proud to collaborate with Microsoft for Startups

identity.membership.remove ​

Remove a member from an organization

Remove a member from an organization.

Inputs:

  • membership_uuid: Membership UUID to remove (required)
  • organization_uuid: Organization ID for tenant check (required)
  • actor: Actor Cognito sub or user UUID (required)
  • force: Allow removing the last owner (optional, default False)

Outputs (terminal state_data):

  • membership_uuid
  • removed: bool
  • was_last_owner: bool

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-identity
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
membership_uuiduuidYes——
organization_uuiduuidYes——
actorstringYes——
forcebooleanNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
membership_uuidstringYes——
removedbooleanYes——
was_last_ownerbooleanYes——
member_seats_suspendedlistNo——
reasonstringNo——
organization_uuiduuidNo——
actorstringNo——
forcebooleanNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

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.membership.remove",
  "initial_data": {
    "membership_uuid": "value",
    "organization_uuid": "value",
    "actor": "value"
  }
}