identity.end-user.organization.get ​
Get details for one workspace the current end-user belongs to
Get details for one workspace the CURRENT end-user belongs to.
Principal is the injected end-user token (never input). Input: app_organization_uuid. Fails closed if the end-user is not a member (does not leak workspace details). Outputs: app_organization_ref, role, capabilities, membership_status, kind.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
app_organization_uuid | uuid | Yes | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
app_organization_ref | dict | No | — | — |
role | string | No | — | — |
capabilities | list | No | — | — |
membership_status | string | No | — | — |
kind | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
reason | 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.end-user.organization.get",
"initial_data": {
"app_organization_uuid": "value"
}
}