Unify and manage your data

Get Customer Role Permissions by Role Name

The Get Permissions by Role Name API request returns all the permissions configured for the specified role, under the particular customer.

Table 1. Customer Role Name Permissions Details
Request Type GET
URL {oauth_uri}/customers/{customerId}/roles/permissions/{roleName}
Parameters

customerID - Use your unique, valid Customer ID

roleName - Use a valid role name

Access -

Response

JSON Object of that particular roles permission.

Getting Permissions by Role Name

Request

GET {oauth_uri}/customers/TestCustomer/roles/permissions/ROLE_RIQ_DEV
Headers: Authorization: Bearer <Access-Token>
Note: While making the API call, use your unique Customer ID and specify the name of the role for which you would like to check the existing permissions.

Response

{
       "roleName": "ROLE_RIQ_DEV",
       "servicePermissions": [
           {
               "id": "Auth",
               "resourcePermissions": [
                   {
                       "id": "globalRoles",
                       "allowedPrivileges": [
                           "READ"
                       ]
                   },
                   {
                       "id": "reltioServices",
                       "allowedPrivileges": [
                           "READ"
                       ]
                   },
                   {
                       "id": "monitoring",
                       "allowedPrivileges": [
                           "READ"
                       ]
                   },
                   {
                       "id": "customer",
                       "allowedPrivileges": [
                           "READ",
                           "DELETE",
                           "CREATE",
                           "UPDATE"
                       ]
                   }
               ]
           }
       ]
}