Retrieve a specific role and its permissions by roleId

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Retrieves the full details of a specific role identified by its roleId, including its description and the complete product-level module and feature permission map.

Endpoints

Request URL

https://{serverurl}/emsapi/roles/{roleId}

Scope

DesktopCentralCloud.Admin.READCopied!

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Path Parameters

roleIdstringMandatory

Unique role identifier. To get role id click here. Get Role Id

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request GET \
  --url https://appdomains/emsapi/roles/{roleId} \
  --header 'Authorization: Zoho-oauthtoken  d92d4xxxxxxxxxxxxx15f52'

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Hide Sub-Attributes
roleIdstring

Unique role identifier.

roleNamestring

Name of the role as configured in the system.

roleDescriptionstring

Description of the role's purpose and access level.

roleDetailsJSON Object

Product-keyed map of module and feature permissions assigned to this role. Each key represents a product name.

Show Sub-Attributes
uem_safestringJSON Object

Product-specific permission block. Each key is the internal product name (e.g., 'DesktopCentral') containing its module configuration.

Show Sub-Attributes
displayNamestring

Display name of the product (e.g., 'Desktop Central', 'Patch Manager Plus').

modulesJSON Array

List of module permission objects showing which modules and features are accessible under this product for the role.

Show Sub-Attributes
JSON Object
Show Sub-Attributes
0boolean

Permission flag for access level 0.

1boolean

Permission flag for access level 1.

2boolean

Permission flag for access level 2.

displayNamestring

Module name (e.g., 'Configurations', 'Patch Management', 'Inventory').

valuestring

Internal value identifier for the module as returned by the API.

isFeatureRestrictionAllowedJSON Object

Access-level restriction details for modules supporting read/write/fullControl granularity.

Show Sub-Attributes
readinteger

Read access level for the module.

writeinteger

Write access level for the module.

fullControlinteger

Full control access level for the module.

moduleIdstring

Module identifier. The Module ID can be fetched using the following API Get Module ID

-1boolean

Indicates full module access when set to true.

Possible Response Codes

200HTTP code

Sample Response: HTTP 200

Shortened response example for get role by ID, showing product-level modules, optional feature restriction object, and 0/1/2/-1 boolean flags.

Copied!
  {
    "roleId": "97913000000010560",
    "roleName": "Security Auditor",
    "roleDetails": {
      "desktopCentral": {
        "displayName": "Endpoint Control",
        "modules": [
          {
            "0": false,
            "1": false,
            "2": false,
            "-1": false,
            "displayName": "Configurations",
            "isFeatureRestrictionAllowed": {
              "read": 2,
              "fullControl": 0,
              "write": 0
            },
            "moduleId": "97913000000010497",
            "value": "Configurations"
          },
          {
            "0": false,
            "1": false,
            "2": false,
            "-1": true,
            "displayName": "Patch Management",
            "value": "Patch Management"
          }
        ]
      },
      "mdm": {
        "displayName": "MDM",
        "modules": [
          {
            "0": false,
            "1": false,
            "2": false,
            "-1": true,
            "displayName": "Inventory",
            "isFeatureRestrictionAllowed": {
              "fullControl": 0,
              "read": 0,
              "write": 0
            },
            "moduleId": "186245000000000405",
            "value": "MDM Inventory"
          },
          {
            "0": true,
            "1": false,
            "2": false,
            "-1": false,
            "displayName": "Report",
            "value": "MDM Report"
          }
        ]
      }
    },
    "roleDescription": "Read-only access to compliance dashboards, reports, and audit insights."
  }
                
Show full

Duration: 1 minute | Threshold: 30 | Lock period: 5 minutes

Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.