Home
Version 3
Users API

Users API

Retrieve a Particular User

GET /v2/users/:guid

Request

Route

GET /v2/users/uaa-id-129

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMCIsImVtYWlsIjoiZW1haWwtNzFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MTQxMzY4MX0.H6qQBgNPlHqWAa3Mci652MCu6A4H2ZjOsVsWNpEgrxw
Host: example.org
Cookie: 

cURL

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

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-129",
    "url": "/v2/users/uaa-id-129",
    "created_at": "2015-12-22T18:28:01Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "c9970bc9-9a9d-4846-a614-73d163adc76c",
    "default_space_url": "/v2/spaces/c9970bc9-9a9d-4846-a614-73d163adc76c",
    "spaces_url": "/v2/users/uaa-id-129/spaces",
    "organizations_url": "/v2/users/uaa-id-129/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-129/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-129/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-129/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-129/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-129/audited_spaces"
  }
}

Headers

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