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.eyJ1c2VyX2lkIjoidWFhLWlkLTE2IiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MzEwMTE5fQ.oULRZStqiHstvXPK7i-77BG7gDKef1LdYl6NJt-5uYo
Host: example.org
Cookie: 

Route

GET /v2/users/uaa-id-15

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-15" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2IiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MzEwMTE5fQ.oULRZStqiHstvXPK7i-77BG7gDKef1LdYl6NJt-5uYo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1bf198f7-b3d1-4e1c-b19b-94e5e2117a64
Content-Length: 836
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-15",
    "url": "/v2/users/uaa-id-15",
    "created_at": "2015-02-12T01:41:59Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "da10392e-0971-4609-a31c-79f0965ac3f0",
    "default_space_url": "/v2/spaces/da10392e-0971-4609-a31c-79f0965ac3f0",
    "spaces_url": "/v2/users/uaa-id-15/spaces",
    "organizations_url": "/v2/users/uaa-id-15/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-15/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-15/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-15/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-15/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-15/audited_spaces"
  }
}