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).

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:

GET https://<nsx-mgr>/api/v1/aaa/user-info

Successful Response:

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

Example Response:

{ "user_name": "admin", "roles": [ { "role": "enterprise_admin" } ] }

Required Permissions:

none

Feature:

users_configuration

Additional Errors: