SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

permission.revokeOrgRole

BETA

Short name: revokeOrgRole

Version: 1.0.0

Revoke an active org role grant for a user in an organization.

Back to primitive library

Inputs

KeyTypeRequiredDescription
orgAtomIdobjectIdtrueOrganization atom id containing the grant.
rolestringtrueRole to revoke (org_admin, org_member).
userIdobjectIdtrueUser id whose active role grant should be revoked.

Outputs

KeyTypeRequiredDescription
grantAtomIdstringfalseGrant atom id that was revoked when revoked=true.
okbooleanfalseTrue when revoke operation completes.
revokedbooleanfalseTrue when an active grant was found and revoked; false when no active grant existed.
rolestringfalseRole requested for revocation.
userIdstringfalseTarget user id.