Home
Version 3
Users API

Users API

Retrieve a Particular User

GET /v2/users/:guid

Request

Route

GET /v2/users/uaa-id-17

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4IiwiZW1haWwiOiJlbWFpbC0xNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU4ODU1NjY0fQ.HE7Yw_aOGNgALd6N4RRvC89HKfcyhlhrvTkNy0HzIUQ
Host: example.org
Cookie: 

cURL

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

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-17",
    "url": "/v2/users/uaa-id-17",
    "created_at": "2016-03-17T21:41:04Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "5755ffa2-00ab-4082-b4e3-6d0d43393400",
    "default_space_url": "/v2/spaces/5755ffa2-00ab-4082-b4e3-6d0d43393400",
    "spaces_url": "/v2/users/uaa-id-17/spaces",
    "organizations_url": "/v2/users/uaa-id-17/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-17/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-17/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-17/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-17/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-17/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 836
X-Content-Type-Options: nosniff