GET /user-management/local/users/{userId}/roles/{roleId}/
This resource returns the role details.
Used when you are operating a browser without access to the header parameter. This allows you to choose which encoding you want to use for the response:
All these resources can be used according what the resource allows.
If this parameter is not in the request, the Application/Json will be chosen by default.
There are multiple possible values (according the resource):
The first two are the most often used.
This is the user's ID.
This is the role Id.
Object Name: Role
Property Name | Type | Description | Method |
---|---|---|---|
Id | Integer | This is the role's ID. | GET |
Name | String | This is the role's name. It can be :
|
GET POST |
URL Example: https://0.0.0.0/api/rest/v1/user-management/local/users/9/roles/1
{
"id": 1,
"name": "Admin"
}
URL Example: https://0.0.0.0/api/rest/v1/user-management/local/users/9/roles/1
<?xml version="1.0" encoding="utf-8"?>
<Role>
<Id>1</Id>
<Name>Admin</Name>
</Role>