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.eyJ1c2VyX2lkIjoidWFhLWlkLTM2IiwiZW1haWwiOiJlbWFpbC0zM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMxfQ.tzQSMBok9EwaZ0lwUSS1P5JNuN1Rxeyz0Ipsz4kd7lc
Host: example.org
Cookie: 

Route

GET /v2/users/uaa-id-35

cURL

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

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0c1d9929-697d-41af-93cc-1a3b77f7a48c
Content-Length: 841
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-35",
    "url": "/v2/users/uaa-id-35",
    "created_at": "2014-11-05T01:02:11+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "cd041c87-9c09-4062-bf0b-18f17e0d4a9a",
    "default_space_url": "/v2/spaces/cd041c87-9c09-4062-bf0b-18f17e0d4a9a",
    "spaces_url": "/v2/users/uaa-id-35/spaces",
    "organizations_url": "/v2/users/uaa-id-35/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-35/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-35/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-35/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-35/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-35/audited_spaces"
  }
}