Home
Version 3
Users API

Users API

Retrieve a Particular User

GET /v2/users/:guid

Request

Route

GET /v2/users/uaa-id-46

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3IiwiZW1haWwiOiJlbWFpbC0yMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5NjY0MTMzfQ.ol64sdh0zg298BKVT9wR4Nb28nVG_vGYeBFpPfq_JCA
Host: example.org
Cookie: 

cURL

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

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-46",
    "url": "/v2/users/uaa-id-46",
    "created_at": "2015-04-15T00:55:33Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "fab9519c-49df-4caf-9b64-f404179ed4b8",
    "default_space_url": "/v2/spaces/fab9519c-49df-4caf-9b64-f404179ed4b8",
    "spaces_url": "/v2/users/uaa-id-46/spaces",
    "organizations_url": "/v2/users/uaa-id-46/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-46/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-46/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-46/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-46/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-46/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4a389862-be87-4e91-bfb1-eea84b0864b0
Content-Length: 836
X-Content-Type-Options: nosniff