System Administration >
Settings
>
User Management
>
Users
Get information about logged-in user. 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
+
UserInfo
(
schema
)
Name
Description
Type
Notes
roles
Permissions
array of
NsxRole
Required
Readonly
user_name
User Name
string
Required
Readonly
Example Response:
{ "user_name": "admin", "roles": [ { "role": "enterprise_admin" } ] }
Required Permissions:
none
Feature:
users_configuration
Additional Errors:
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
500 Internal Server Error
503 Service Unavailable