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.eyJ1c2VyX2lkIjoidWFhLWlkLTg2IiwiZW1haWwiOiJlbWFpbC02MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MTM3MzY0fQ.o7LnSKTLL_6RnEtgRfdoM46YWs1XKreGEittx5mpleE
Host: example.org
Cookie: 

Route

GET /v2/users/uaa-id-85

cURL

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

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7ed8e44e-724f-4416-8b3e-de1f75956572
Content-Length: 836
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-85",
    "url": "/v2/users/uaa-id-85",
    "created_at": "2015-02-10T01:42:44Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "46f48ef4-32c7-461e-a179-a25209a77941",
    "default_space_url": "/v2/spaces/46f48ef4-32c7-461e-a179-a25209a77941",
    "spaces_url": "/v2/users/uaa-id-85/spaces",
    "organizations_url": "/v2/users/uaa-id-85/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-85/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-85/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-85/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-85/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-85/audited_spaces"
  }
}