Role Object
A role defines a set of permissions that can be assigned to users.
Fields
#
isAdmin
If true, this role is an admin role. Admin roles automatically receive permissions for new protected entities.
isCloudshelfInternalRole
If true, this is a Cloudshelf internal role (for staff). Internal roles have organisation set to null.
isCustomRole
If true, this is a custom role created by the organisation. Default/system roles have this set to false and cannot be edited or deleted.
organisation
The organisation this role belongs to. Null for Cloudshelf internal staff roles.
sortOrder
Sort order for display purposes. Lower numbers appear first. Custom roles have null and sort after system roles.
templateType
Identifies which template this role was created from. System roles have a specific type, custom roles use CUSTOM.
Usages
#
References
#
- Field cloudshelfStaffRole from CloudshelfStaffUser
- Field cloudshelfStaffRoles from Query
- Field role from Query
Query
RoleDeleteInput