Home
Version 3
Users API

Users API

Retrieve a Particular User

GET /v2/users/:guid

Request

Route

GET /v2/users/uaa-id-397

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5OCIsImVtYWlsIjoiZW1haWwtMzAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDh9.pYr7H99XmBx62wNxDccIxmvMjekv_8t7ciAvw6SwomY
Host: example.org
Cookie: 

cURL

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

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-397",
    "url": "/v2/users/uaa-id-397",
    "created_at": "2015-05-07T23:37:28Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "8ee487a9-1ee1-4452-9a04-f2cb6530bc9c",
    "default_space_url": "/v2/spaces/8ee487a9-1ee1-4452-9a04-f2cb6530bc9c",
    "spaces_url": "/v2/users/uaa-id-397/spaces",
    "organizations_url": "/v2/users/uaa-id-397/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-397/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-397/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-397/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-397/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-397/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5c3742d3-eab9-45b9-ba4c-4d447f436c60
Content-Length: 845
X-Content-Type-Options: nosniff