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.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MCIsImVtYWlsIjoiZW1haWwtMjQ0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5Nzh9.BTsD8YrCUCbFFMsOqLhAAf02mlbQkNlBh5VkcUX5dlg
Host: example.org
Cookie: 

Route

GET /v2/users/uaa-id-339

cURL

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

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a4ac3ebe-b18e-4fd4-b9f9-4673e82256cb
Content-Length: 850
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-339",
    "url": "/v2/users/uaa-id-339",
    "created_at": "2014-12-24T01:39:38+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "3e46ac24-ed15-4a57-9117-92aaf627f3be",
    "default_space_url": "/v2/spaces/3e46ac24-ed15-4a57-9117-92aaf627f3be",
    "spaces_url": "/v2/users/uaa-id-339/spaces",
    "organizations_url": "/v2/users/uaa-id-339/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-339/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-339/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-339/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-339/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-339/audited_spaces"
  }
}