NSX-T Data Center REST API

Get the name and role information of the user.

This API will return the name and role information of the user
invoking this API request. This API is available for all NSX users
no matter their authentication method (Local account, VIDM, LDAP etc).
The permissions parameter of the NsxRole has been deprecated.
The request parameter root_path has been introduced for multi-tenancy
to get user's role at any path that the user desires. The response will
contain the roles_for_paths to indicate roles at various paths.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/aaa/user-info
/api/v1/aaa/user-info
Request Headers:
n/a
Query Parameters:
UserRequestParameters+
Request Body:
n/a

Example Request:

1. 2.

Successful Response:

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

Example Response:

{ "user_name": "admin", "roles": [ { "role": "enterprise_admin" } ] } 2. { "user_name": "[email protected]", "roles_for_paths": [ { "path": "/orgs/default/projects/project-1", "roles": [ { "role": "security_engineer", "role_display_name": "Security Admin" } ] } ] }

Required Permissions:

none

Feature:

users_configuration

Additional Errors: