identity.app.set-org-owned ​
Toggle an identity app's org-owned appdata authorization flag
Toggle the org-owned appdata authorization flag for an identity app (ADR-IDENTITY-006).
Inputs:
- actor, organization_uuid (required)
- identity_app_uuid: the app to update (required)
- org_owned_enabled: desired flag value (required)
Effect: loads the caller's-org-owned IdentityApp and sets org_owned_enabled to the input value. Fails closed if the app does not belong to the caller's organization.
Outputs: updated (bool), org_owned_enabled, identity_app_uuid
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 | — | — |
org_owned_enabled | boolean | Yes | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
updated | boolean | Yes | — | — |
org_owned_enabled | boolean | No | — | — |
identity_app_uuid | uuid | 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.app.set-org-owned",
"initial_data": {
"actor": "value",
"organization_uuid": "value",
"identity_app_uuid": "value",
"org_owned_enabled": true
}
}