identity.end-user.member-seat.reconcile ​
Suspend org-member end-user seats whose member left the organization (sweep)
Suspend member end-user seats whose member no longer qualifies: removed from the organization, deleted, or the app is no longer active. Safe to schedule.
Caller: a human org ADMIN/OWNER (scoped to their organization), or a platform system sweep (all organizations unless organization_uuid is given). A failed lookup never suspends anything.
Inputs: organization_uuid (optional for the system sweep), dry_run, limit. Outputs: scanned, suspended_count, eligible_count, unavailable_count, suspensions [{end_user_uuid, member_user_uuid, identity_app_uuid, code, reason}], dry_run.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
actor | string | No | — | — |
organization_uuid | uuid | No | — | — |
dry_run | boolean | No | — | — |
limit | integer | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
scanned | integer | No | — | — |
suspended_count | integer | No | — | — |
eligible_count | integer | No | — | — |
unavailable_count | integer | No | — | — |
suspensions | list | No | — | — |
dry_run | boolean | 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.member-seat.reconcile",
"initial_data": {
"actor": "value",
"organization_uuid": "value",
"dry_run": true,
"limit": 123
}
}