System Administration > Settings > User Management > Users

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.

Request:

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

Example Request:

GET https://<policy-mgr>/policy/api/v1/aaa/user-info 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: