NSX-T Data Center REST API

Get all users and groups with their roles

Get all users and groups with their roles.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/aaa/role-bindings
/api/v1/aaa/role-bindings
Request Headers:
n/a
Query Parameters:
RoleBindingRequestParameters+
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/aaa/role-bindings?page_size=2

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
RoleBindingListResult+

Example Response:

{ "sort_ascending": true, "sort_by": "id", "result_count": 2, "results": [ { "resource_type": "RoleBinding", "description": "", "id": "0395447b-480a-4091-9075-4070138e0cee", "display_name": "rt-group1", "roles": [ { "role": "auditor" } ], "name": "[email protected]", "type": "remote_group", "_create_user": "admin", "_create_time": 1493963048438, "_last_modified_user": "admin", "_last_modified_time": 1493963048438, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }, { "resource_type": "RoleBinding", "description": "", "id": "7e672b0e-f0bd-48bc-b579-9e6f1b2b3969", "display_name": "[email protected]", "tags": [], "roles": [ { "role": "enterprise_admin" } ], "name": "[email protected]", "type": "remote_user", "_create_user": "admin", "_create_time": 1493960803006, "_last_modified_user": "admin", "_last_modified_time": 1493960803006, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 1 } ] }

Required Permissions:

read

Feature:

users_role_assignments

Additional Errors: