identity.end-user.organization.invite-member ​
Invite a person into the current end-user's active workspace
Invite a person into the CURRENT end-user's active workspace.
Principal is the injected end-user token. identity_app_uuid and the target workspace are injected (reject-on-conflict). Input: email (required), group_slug (optional, default member).
Requires workspace capability users:invite or users:invite:<group_slug>. Inviting owner requires users:invite:owner.
Outputs: end_user_uuid, email, group_slug, membership_status, created, end_user_created, invite_dispatched, email_workflow_ref.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
email | Yes | — | — | |
group_slug | string | No | — | — |
identity_app_uuid | uuid | No | — | — |
app_organization_uuid | uuid | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
identity_app_uuid | uuid | No | — | — |
app_organization_uuid | uuid | No | — | — |
end_user_uuid | uuid | No | — | — |
email | No | — | — | |
group_slug | string | No | — | — |
membership_status | string | No | — | — |
created | boolean | No | — | — |
end_user_created | boolean | No | — | — |
invite_dispatched | boolean | No | — | — |
email_workflow_ref | string | No | — | — |
dispatch_error | 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.invite-member",
"initial_data": {
"email": "value"
}
}