identity.organization.query ​
List organizations the authenticated user is a member of
List organizations the authenticated user is a member of.
Inputs:
- actor: caller's cognito_sub or uuid (required)
- organization_uuid: filter to a single org (optional)
- limit: page size (optional)
- offset: page offset (optional)
Outputs (terminal state_data):
- organizations: list of org dicts (uuid, name, domain, region, role)
- count: number of orgs returned (page count)
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
actor | string | Yes | — | Caller cognito_sub or uuid |
organization_uuid | uuid | No | — | Filter to a single organization by public UUID |
limit | integer | No | — | Maximum number of results to return |
offset | integer | No | — | Number of results to skip |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organizations | list | Yes | — | — |
count | integer | Yes | — | — |
actor | string | No | — | — |
organization_uuid | uuid | No | — | — |
limit | integer | No | — | — |
offset | integer | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "identity.organization.query",
"initial_data": {
"actor": "value"
}
}