Primitive
permission.assertOrgRole
BETAShort name: assertOrgRole
Version: 1.0.0
Assert that the current user has the required effective role for an organization.
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| orgAtomId | objectId | true | Organization atom id to authorize against. |
| requiredRole | string | true | Minimum role required for the operation. |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| ok | boolean | false | Always true on success; otherwise this primitive throws. |
| requiredRole | string | false | Role that was required for authorization. |
| roles | array | false | Resolved effective roles for the caller in the org. |