Home
Version 3
Users API

Users API

Retrieve a Particular User

GET /v2/users/:guid

Request

Route

GET /v2/users/uaa-id-228

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyOSIsImVtYWlsIjoiZW1haWwtMTU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5MzZ9.Lo1GZ3zJIrCn-9lZaAmWPwj0H4qR0ymUYZcMkZrs2U4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-228" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyOSIsImVtYWlsIjoiZW1haWwtMTU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5MzZ9.Lo1GZ3zJIrCn-9lZaAmWPwj0H4qR0ymUYZcMkZrs2U4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-228",
    "url": "/v2/users/uaa-id-228",
    "created_at": "2015-10-07T00:35:36Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "adab5522-9421-42fe-9ef4-5deefdb940eb",
    "default_space_url": "/v2/spaces/adab5522-9421-42fe-9ef4-5deefdb940eb",
    "spaces_url": "/v2/users/uaa-id-228/spaces",
    "organizations_url": "/v2/users/uaa-id-228/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-228/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-228/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-228/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-228/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-228/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ba8debd1-7ee9-4df0-b85b-c0f212a33364
Content-Length: 845
X-Content-Type-Options: nosniff