Home
Version 3
Users API

Users API

Retrieve a Particular User

GET /v2/users/:guid

Request

Route

GET /v2/users/uaa-id-124

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNSIsImVtYWlsIjoiZW1haWwtOTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzOTQyNjE5N30.RinBkaokJ7f4PMfnibKP8N4tXBoCcgN9uPr3L7YXCr0
Host: example.org
Cookie: 

cURL

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

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-124",
    "url": "/v2/users/uaa-id-124",
    "created_at": "2015-08-06T00:36:37Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "f6e063c9-8b74-426e-a498-0f29f9024993",
    "default_space_url": "/v2/spaces/f6e063c9-8b74-426e-a498-0f29f9024993",
    "spaces_url": "/v2/users/uaa-id-124/spaces",
    "organizations_url": "/v2/users/uaa-id-124/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-124/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-124/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-124/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-124/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-124/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a5fbdec7-bfdd-4b6b-8789-76d314a843eb
Content-Length: 845
X-Content-Type-Options: nosniff