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.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MiIsImVtYWlsIjoiZW1haWwtMTk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjV9.wHO4Ips3zV61x45PO0bhLkKHbjOitV58u-_qR-c4Ezo
Host: example.org
Cookie: 

Route

GET /v2/users/uaa-id-251

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-251" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MiIsImVtYWlsIjoiZW1haWwtMTk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjV9.wHO4Ips3zV61x45PO0bhLkKHbjOitV58u-_qR-c4Ezo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 61304426-d23c-4d21-9dfc-91c90286c35e
Content-Length: 850
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-251",
    "url": "/v2/users/uaa-id-251",
    "created_at": "2014-11-24T19:32:45+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "da47ac06-1a3d-4e74-b7b5-b4fb4fef6713",
    "default_space_url": "/v2/spaces/da47ac06-1a3d-4e74-b7b5-b4fb4fef6713",
    "spaces_url": "/v2/users/uaa-id-251/spaces",
    "organizations_url": "/v2/users/uaa-id-251/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-251/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-251/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-251/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-251/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-251/audited_spaces"
  }
}