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.eyJ1c2VyX2lkIjoidWFhLWlkLTI1OCIsImVtYWlsIjoiZW1haWwtMTg2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDB9.xHEfMZbqSCkPyd9zKWFoQmn5VOSV1m1ZkfqoazJnFLI
Host: example.org
Cookie: 

Route

GET /v2/users/uaa-id-257

cURL

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

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4b4c907f-d26b-4b77-b425-0b28b1e09805
Content-Length: 845
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-257",
    "url": "/v2/users/uaa-id-257",
    "created_at": "2015-02-13T22:35:00Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "31a085b0-ea56-4de8-b783-edd98d263f3d",
    "default_space_url": "/v2/spaces/31a085b0-ea56-4de8-b783-edd98d263f3d",
    "spaces_url": "/v2/users/uaa-id-257/spaces",
    "organizations_url": "/v2/users/uaa-id-257/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-257/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-257/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-257/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-257/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-257/audited_spaces"
  }
}