Accelerate the Value of Data

Get Customer Role Permissions

This API returns all the roles and permissions configured for a particular customer.

The Get All Roles Permissions API request returns all the roles and permissions configured for a particular customer.

Table 1. Customer Role Permissions Details
Request Type GET
URL {oauth_uri}/customers/{customerId}/roles/permissions
Parameters customerID - Use your unique, valid Customer ID
Access -

Response

JSON Array containing all the roles-permissions object under the customer.

Getting Customer Role Permissions

Request

GET {oauth_uri}/customers/TestCustomer/roles/permissions
Headers: Authorization: Bearer <Access-Token>
Note: Use your unique Customer ID to make the API call.

Response

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