The OPRole Object

A role is a named set of capabilities for operators. For example, admin, manager etc.

Properties

NameDescriptionTypeRequired
uidThe unique identifier (UID) of the BusinessRolestringYes
created_atDate the BusinessRole was createdstringYes
updated_atDate the BusinessRole was last updatedstringYes
codeA unique readable code for the rolestringYes
nameThe role namestringYes
descriptionThe role descriptionstringYes
capabilitiesA list of permissions that are assigned to the rolearray of stringsYes

Example

JSON

{
  "uid": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "created_at": "2021-07-20T14:00:00.000Z",
  "updated_at": "2021-07-20T14:00:00.000Z",
  "code": "admin",
  "name": "Admin",
  "description": "Admin role. Typically has access to all features in the system",
  "capabilities": [
    "business.read",
    "business.create",
    "business.impersonate",
    "business.impersonate_secure",
    "business.impersonate_in_setup",
    "business.change_plan",
    "business.lock_business",
    "operator.read",
    "operator.create",
    "operator.update",
    "operator.lock_operator",
    "content.manage",
    "content.map_identities_professions",
    "package.manage",
    "package.read"
  ]
}