Home
Version 3
Users API

Users API

Retrieve a Particular User

GET /v2/users/:guid

Request

Route

GET /v2/users/uaa-id-207

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOCIsImVtYWlsIjoiZW1haWwtMTQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDV9.fdfChIMEQvhKuimsSZ41oJn00VunV9U4i17wRnOCXPQ
Host: example.org
Cookie: 

cURL

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

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-207",
    "url": "/v2/users/uaa-id-207",
    "created_at": "2015-03-10T23:11:45Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "f8a991f5-32bb-4f9c-bb1a-d39c8f0ec5fd",
    "default_space_url": "/v2/spaces/f8a991f5-32bb-4f9c-bb1a-d39c8f0ec5fd",
    "spaces_url": "/v2/users/uaa-id-207/spaces",
    "organizations_url": "/v2/users/uaa-id-207/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-207/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-207/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-207/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-207/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-207/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 77e78a8e-80ea-4d16-b826-233e10e60a92
Content-Length: 845
X-Content-Type-Options: nosniff