Primitive
permission.revokeOrgRole
BETAShort name: revokeOrgRole
Version: 1.0.0
Revoke an active org role grant for a user in an organization.
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| orgAtomId | objectId | true | Organization atom id containing the grant. |
| role | string | true | Role to revoke (org_admin, org_member). |
| userId | objectId | true | User id whose active role grant should be revoked. |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| grantAtomId | string | false | Grant atom id that was revoked when revoked=true. |
| ok | boolean | false | True when revoke operation completes. |
| revoked | boolean | false | True when an active grant was found and revoked; false when no active grant existed. |
| role | string | false | Role requested for revocation. |
| userId | string | false | Target user id. |