Magidoc

Role
Object

A role defines a set of permissions that can be assigned to users.

Fields

#

createdAt

Non-null

The date and time this entity was created.

description

A description of what this role can do

id

Non-null

A unique internal GlobalId for this entity.

isAdmin

Non-null

If true, this role is an admin role. Admin roles automatically receive permissions for new protected entities.

isCloudshelfInternalRole

Non-null

If true, this is a Cloudshelf internal role (for staff). Internal roles have organisation set to null.

isCustomRole

Non-null

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.

name

Non-null

The display name of the role (e.g., "Super Admin", "Content Manager")

organisation

The organisation this role belongs to. Null for Cloudshelf internal staff roles.

permissions

Non-null

The permissions granted to this role

sortOrder

Sort order for display purposes. Lower numbers appear first. Custom roles have null and sort after system roles.

templateType

Non-null

Identifies which template this role was created from. System roles have a specific type, custom roles use CUSTOM.

updatedAt

Non-null

The date and time this entity was last updated.

Usages

#

References

#

  • Field cloudshelfStaffRoles from Query