Home
Version 3
Users API

Users API

Retrieve a Particular User

GET /v2/users/:guid

Request

Route

GET /v2/users/uaa-id-164

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NSIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTJ9._uW9OXZHlQieILk-LnJHuEAIYQFTT8qe5YtMYk1ZFTQ
Host: example.org
Cookie: 

cURL

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

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-164",
    "url": "/v2/users/uaa-id-164",
    "created_at": "2015-06-16T23:40:52Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "f9ce86bd-25c2-46dc-b5bb-4e172f60e2b9",
    "default_space_url": "/v2/spaces/f9ce86bd-25c2-46dc-b5bb-4e172f60e2b9",
    "spaces_url": "/v2/users/uaa-id-164/spaces",
    "organizations_url": "/v2/users/uaa-id-164/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-164/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-164/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-164/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-164/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-164/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 27246971-4e54-424f-bf21-04175b472542
Content-Length: 845
X-Content-Type-Options: nosniff