SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

permission.grantOrgRole

BETA

Short name: grantOrgRole

Version: 1.0.0

Grant an org role by creating (or reusing) an active org-role-grant atom.

Back to primitive library

Inputs

KeyTypeRequiredDescription
orgAtomIdobjectIdtrueOrganization atom id receiving the grant.
rolestringtrueRole to grant (org_admin, org_member).
userIdobjectIdtrueUser id receiving the role grant.

Outputs

KeyTypeRequiredDescription
createdbooleanfalseTrue when a new grant atom was created; false when an active grant was reused.
grantAtomIdstringfalseGrant atom id that represents the active role grant.
okbooleanfalseTrue when grant operation succeeds.
rolestringfalseGranted role.
userIdstringfalseTarget user id receiving the role.