Home
Version 3
Users API

Users API

Retrieve a Particular User

GET /v2/users/:guid

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the User

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMSIsImVtYWlsIjoiZW1haWwtODlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNjUyNjcwMn0.hbdKAf4G6c-11iY0RTPnRjmuDPOMOQN7pDfKd7-ybYs
Host: example.org
Cookie: 

Route

GET /v2/users/uaa-id-100

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-100" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMSIsImVtYWlsIjoiZW1haWwtODlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNjUyNjcwMn0.hbdKAf4G6c-11iY0RTPnRjmuDPOMOQN7pDfKd7-ybYs" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 322ed719-6d78-4d08-a783-47c8f5e70b91
Content-Length: 850
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-100",
    "url": "/v2/users/uaa-id-100",
    "created_at": "2014-11-13T23:38:21+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "44b1a9fb-6d62-4af9-8393-3ff1453842a9",
    "default_space_url": "/v2/spaces/44b1a9fb-6d62-4af9-8393-3ff1453842a9",
    "spaces_url": "/v2/users/uaa-id-100/spaces",
    "organizations_url": "/v2/users/uaa-id-100/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-100/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-100/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-100/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-100/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-100/audited_spaces"
  }
}