Get Current User Info
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.
Whether the output provides flat listing of all roles at each level or not
Prefix path of the context
OK
{
"roles": [
{
"permissions": [
"string"
],
"role": "string"
}
],
"roles_for_paths": [
{
"delete_path": false,
"path": "string",
"roles": [
{
"role": "string",
"role_display_name": "string"
}
]
}
],
"user_name": "string"
}
Permissions
The roles that are associated with the user, limiting them to a path. In case the path is null, the roles apply everywhere i.e. it is same as the deprecated property roles.
User Name
curl -H 'Authorization: <value>' https://{api_host}/api/v1/aaa/user-info