Home
Version 3
Users API

Users API

Retrieve a Particular User

GET /v2/users/:guid

Request

Route

GET /v2/users/uaa-id-428

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyOSIsImVtYWlsIjoiZW1haWwtMzIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NTV9.6WQhVQb2mQutYe0Y8tvlXbsry7YygSNI0owZmfnnMm8
Host: example.org
Cookie: 

cURL

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

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-428",
    "url": "/v2/users/uaa-id-428",
    "created_at": "2016-03-14T22:30:55Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "c8a130c0-9158-49cf-a7a6-7898ecaf715f",
    "default_space_url": "/v2/spaces/c8a130c0-9158-49cf-a7a6-7898ecaf715f",
    "spaces_url": "/v2/users/uaa-id-428/spaces",
    "organizations_url": "/v2/users/uaa-id-428/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-428/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-428/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-428/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-428/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-428/audited_spaces"
  }
}

Headers

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