Permissions

Get role permissions

Retrieves all hosts and folders where a role has permissions defined, organized by asset with full permission matrices. Admin users can view any role. Non-admin users can only view permissions for roles they belong to.

get/api/v1/permissions/role/{roleId}

Path parameters

roleIdstring required

Role identifier

Response

Role permissions retrieved successfully

i18nMessagesMapobject
permissionsstring[]

Example response

{
  "entity": {
    "roleId": "abc-123-def-456",
    "roleName": "CMS Administrator",
    "assets": [
      {
        "id": "abc-123-def-456",
        "type": "HOST",
        "name": "demo.dotcms.com",
        "path": "/demo.dotcms.com/application",
        "hostId": "abc-123-def-456",
        "canEditPermissions": true,
        "permissions": {
          "INDIVIDUAL": [
            "READ",
            "WRITE",
            "PUBLISH"
          ],
          "HOST": [
            "READ"
          ]
        }
      }
    ]
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.