Get User Token Info
Get information from user token and organization
Request
URI
GET
https://{api_host}/v1/users/me
COPY
Responses
200
User info response
Returns UserTokenInfo of type(s) application/json
{
"organization": {
"id": "d16c7f4d-b38a-405b-a1ca-3ac0a79418c1",
"name": "My org"
},
"user": {
"id": "vmware.com:aaa24d36-94a2-63da-9383-8f58c0d12bbb",
"username": "johndoe",
"roles": [
"csp:aa6ce24d-b38a-405b-a1ca-3ac0a79418bb/becs:user"
]
},
"service_id": "aa6ce24d-b38a-405b-a1ca-3ac0a79418bb"
}
object
organization
Required
organization
object
user
Required
Information related with the user in the token
string
service_id
Required
Identifier of the service in CSP
403
The requesting user is not authorized to get user info
Returns Error403 of type(s) application/problem+json
This response body class contains all of the following: InlineError4030
"Error403 Object"
500
An internal server error object
Returns Error500 of type(s) application/problem+json
This response body class contains all of the following: InlineError5000
"Error500 Object"
503
The server is temporarily unavailable
Returns Error503 of type(s) application/problem+json
This response body class contains all of the following: InlineError5030
"Error503 Object"
Code Samples
COPY
curl -H 'Authorization: <value>' https://{api_host}/v1/users/me
Users Operations
GET
Get User Token Info