NSX-T Data Center REST API
Update User or Group's roles
This API is used to update a user/group any role(s) of choice. It isrecommended to use the new property roles_for_paths instead of
roles. When using the roles_for_paths, set the read_roles_for_paths
as true. User has union of all the roles assigned to it on a particular
path and its sub-tree. User name is dealt case-insensitively.
This API will merge the existing roles_for_paths with the newly provided
roles_for_paths excluding roles_for_paths those are marked for deletion.
Request:
Method:
PUT
URI Path(s):
/policy/api/v1/aaa/role-bindings/{binding-id}
/api/v1/aaa/role-bindings/{binding-id}
/api/v1/aaa/role-bindings/{binding-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
RoleBinding+
Example Request:
1. { "name": "[email protected]", "type": "remote_user", "roles":[ { "role": "security_engineer" } ] } 2. { "name": "[email protected]", "type": "remote_user", "read_roles_for_paths": true, "roles_for_paths": [ { "path": "/orgs/default", "roles": [ { "role": "network_engineer" } ] } ] }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
RoleBinding+