SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

permission.assertOrgRole

BETA

Short name: assertOrgRole

Version: 1.0.0

Assert that the current user has the required effective role for an organization.

Back to primitive library

Inputs

KeyTypeRequiredDescription
orgAtomIdobjectIdtrueOrganization atom id to authorize against.
requiredRolestringtrueMinimum role required for the operation.

Outputs

KeyTypeRequiredDescription
okbooleanfalseAlways true on success; otherwise this primitive throws.
requiredRolestringfalseRole that was required for authorization.
rolesarrayfalseResolved effective roles for the caller in the org.