POST /user-management/local/users/{userId}/roles
This resource lists all the user roles.
This resource is used to add a new role to the selected user.
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.
There are multiple possible values according the resource:
If this parameter is not present during the request, and error 415 Unsupported Media Type will be thrown.
This is the user's ID.
The Content-Length entity-header field indicates the size of the entity-body.
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/4/roles
{
"name": "admin"
}
URL Example: https://0.0.0.0/api/rest/v1/user-management/local/users/4/roles
<?xml version="1.0" encoding="utf-8"?>
<Role>
<Name>admin</Name>
</Role>