Home
Version 3
Users API

Users API

Retrieve a Particular User

GET /v2/users/:guid

Request

Route

GET /v2/users/uaa-id-348

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0OSIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTl9.8H1LLCj0uFbzR3CpVfnjQ7cyy7V6lGNb6q04O3FTn64
Host: example.org
Cookie: 

cURL

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

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-348",
    "url": "/v2/users/uaa-id-348",
    "created_at": "2015-05-21T01:03:19Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "c472114e-4a0e-4296-b566-64740fabd9b8",
    "default_space_url": "/v2/spaces/c472114e-4a0e-4296-b566-64740fabd9b8",
    "spaces_url": "/v2/users/uaa-id-348/spaces",
    "organizations_url": "/v2/users/uaa-id-348/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-348/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-348/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-348/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-348/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-348/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8049ef1a-8c12-423f-8112-60f3ff8f9034
Content-Length: 845
X-Content-Type-Options: nosniff