Get User Token Info
Get information from user
Get information from user token and organization
Request
URI
GET
https://api.app-catalog.vmware.com/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
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit.",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}
500
An internal server error object
Returns
Error500
of type(s)
application/problem+json
This response body class contains all of the following:
InlineError5000
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit.",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}
503
The server is temporarily unavailable
Returns
Error503
of type(s)
application/problem+json
This response body class contains all of the following:
InlineError5030
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit.",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}
Code Samples
COPY
curl -H 'Authorization: <value>' https://{api_host}/v1/users/me
Users Operations
GET
Get User Token Info