identity.end-user.group.seed-defaults ​
Seed the default end-user access groups for an app
Seed the four default access groups (owner/admin/member/support) for an app.
Inputs:
- actor: Cognito sub or user UUID (required)
- organization_uuid: owning organization — tenant check (required)
- identity_app_uuid: the app to seed (required)
Outputs (terminal state_data):
- identity_app_uuid, created_groups, default_groups
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
actor | string | Yes | — | — |
organization_uuid | uuid | Yes | — | — |
identity_app_uuid | uuid | Yes | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
identity_app_uuid | uuid | No | — | — |
created_groups | list | No | — | — |
default_groups | list | 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.group.seed-defaults",
"initial_data": {
"actor": "value",
"organization_uuid": "value",
"identity_app_uuid": "value"
}
}