Available Since: V1
Get or set the roles assigned to a user.
GET api/1/user/roles/
| Parameter | Description |
|---|---|
| uid | The ID of the user to get the roles for. |
[
"store_mgr",
"content_editor"
]
[ ]
POST api/1/user/roles/
| Parameter | Description |
|---|---|
| uid | The ID of the user to set the roles for. |
| roles | The JSON encoded array of roles to assign to the user. |
A list of roles assigned to the user are returned, if the server does not know a role being set then that roles is ignored and not returned in this list.
[
"store_mgr",
"content_editor"
]
{
"result":false
}