Skip to content
Proud to collaborate with Microsoft for Startups

identity.membership.query-by-user ​

Return organizations a specific user belongs to with their role

Get organizations a specific user belongs to, with their role in each.

Inputs:

  • user_uuid: User UUID (required)
  • organization_uuid: Scope to a single org (optional)
  • actor: Caller cognito_sub or uuid (required)

Outputs (terminal state_data):

  • organizations: list of org dicts
  • user_uuid: UUID
  • count: number of orgs returned (page count)

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-identity
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
user_uuiduuidYes—User UUID
organization_uuiduuidNo—Scope to a specific organization by public UUID (returns at most one result)
actorstringYes—Caller cognito_sub or uuid

Output Schema ​

FieldTypeRequiredDefaultDescription
organizationslistYes——
countintegerYes——
user_uuiduuidNo——
organization_uuiduuidNo——
actorstringNo——
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.query-by-user",
  "initial_data": {
    "user_uuid": "value",
    "actor": "value"
  }
}