Unify and manage your data

Assign Permissions for an existing Customer-specific Role

The Assign Permissions For Existing Customer Specific Role API request creates permissions for an existing Customer Specific Roles. The request body is an array with one or more Customer specific Roles Permissions object.

Table 1. Assign Customer Role with Permissions
Request Type POST
URL {oauth_uri}/customers/{customerId}/roles/permissions
Parameters

customerID - Use your unique, valid Customer ID

Access -

Response

JSON Array of successfully created roles permission object.

Assigning Permissions by Role Name

Request

POST {oauth_uri}/customers/TestCustomer/roles/permissions
Headers: Authorization: Bearer <Access-Token>
Request Body:
[{
        "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"
                        ]
                    }
                ]
            }
        ]
 }]
            
Note: While making the API call, use your unique Customer ID and specify the name of the role for which you would like to assign the 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"
                       ]
                   }
               ]
           }
       ]
}]