GET /user-management/local/users/{userId}/roles
This resource lists all the user roles.
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.
Object Name: Roles
Property Name | Type | Description | Method |
---|---|---|---|
Roles | Array<Role> | This object is an array of Role object. It will contain all the user's role. During a POST/PUT request, to edit user's roles or create a new user, you have to send an array of string : Example : ["Admin", "BleRoomDevices_Admin"] |
POST GET PUT |
URL Example: https://0.0.0.0/api/rest/v1/user-management/local/users/9/roles
[
{
"href": "/api/rest/v1/user-management/local/users/9/roles/1",
"name": "1"
}
]
URL Example: https://0.0.0.0/api/rest/v1/user-management/local/users/9/roles
<?xml version="1.0" encoding="utf-8"?>
<Roles>
<Role>
<Href>/api/rest/v1/user-management/local/users/9/roles/1</Href>
<Name>1</Name>
</Role>
</Roles>