Home
Version 3
Users API

Users API

Retrieve a Particular User

GET /v2/users/:guid

Request

Route

GET /v2/users/uaa-id-50

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUxIiwiZW1haWwiOiJlbWFpbC0yNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM2ODI5Nzc1fQ.BeFw7N8dB6rXmQqyzlts1fEtCtHma5DR7pMCla-qwLo
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-50" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUxIiwiZW1haWwiOiJlbWFpbC0yNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM2ODI5Nzc1fQ.BeFw7N8dB6rXmQqyzlts1fEtCtHma5DR7pMCla-qwLo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-50",
    "url": "/v2/users/uaa-id-50",
    "created_at": "2015-07-06T23:22:55Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "53402006-6259-45dc-a258-aea943a2da37",
    "default_space_url": "/v2/spaces/53402006-6259-45dc-a258-aea943a2da37",
    "spaces_url": "/v2/users/uaa-id-50/spaces",
    "organizations_url": "/v2/users/uaa-id-50/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-50/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-50/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-50/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-50/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-50/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d5a7b8dc-7169-416f-9fda-25eca418df1b
Content-Length: 836
X-Content-Type-Options: nosniff