Home
Version 3
Users API

Users API

Retrieve a Particular User

GET /v2/users/:guid

Request

Route

GET /v2/users/uaa-id-353

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NCIsImVtYWlsIjoiZW1haWwtMjQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MjV9.byex2Zj6L-Y20Ia773nCfNXcXZpCGckxY3nOKaoUb-U
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-353" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NCIsImVtYWlsIjoiZW1haWwtMjQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MjV9.byex2Zj6L-Y20Ia773nCfNXcXZpCGckxY3nOKaoUb-U" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-353",
    "url": "/v2/users/uaa-id-353",
    "created_at": "2016-05-12T00:45:25Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "c8d63b1c-b0fb-483a-961c-f453c7182673",
    "default_space_url": "/v2/spaces/c8d63b1c-b0fb-483a-961c-f453c7182673",
    "spaces_url": "/v2/users/uaa-id-353/spaces",
    "organizations_url": "/v2/users/uaa-id-353/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-353/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-353/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-353/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-353/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-353/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 79e7cfda-3412-475d-a797-7a8838eb0aec
Content-Length: 845
X-Content-Type-Options: nosniff