Home
Version 3
Users API

Users API

Retrieve a Particular User

GET /v2/users/:guid

Request

Route

GET /v2/users/uaa-id-313

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNCIsImVtYWlsIjoiZW1haWwtMjA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTF9.UKdlvpim-D0p5bzKPeAHdpWOHJthtrfQpQAZzDtBO7o
Host: example.org
Cookie: 

cURL

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

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-313",
    "url": "/v2/users/uaa-id-313",
    "created_at": "2015-09-30T23:30:51Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "2d25f99b-00fb-41b1-ad28-d68f15f53ce8",
    "default_space_url": "/v2/spaces/2d25f99b-00fb-41b1-ad28-d68f15f53ce8",
    "spaces_url": "/v2/users/uaa-id-313/spaces",
    "organizations_url": "/v2/users/uaa-id-313/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-313/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-313/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-313/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-313/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-313/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 96a6a298-20e9-466d-8a85-9797204bc82c
Content-Length: 845
X-Content-Type-Options: nosniff