Home
Version 3
Users API

Users API

Retrieve a Particular User

GET /v2/users/:guid

Request

Route

GET /v2/users/uaa-id-269

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MCIsImVtYWlsIjoiZW1haWwtMTk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1Mjl9.zJMagPGPKaSoA_g93_QWReU7b9AkEYVziLyOGY0G9Jo
Host: example.org
Cookie: 

cURL

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

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-269",
    "url": "/v2/users/uaa-id-269",
    "created_at": "2015-11-30T23:38:49Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "7e8b143c-446e-4ba9-a909-da318cdd51a0",
    "default_space_url": "/v2/spaces/7e8b143c-446e-4ba9-a909-da318cdd51a0",
    "spaces_url": "/v2/users/uaa-id-269/spaces",
    "organizations_url": "/v2/users/uaa-id-269/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-269/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-269/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-269/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-269/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-269/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 845
X-Content-Type-Options: nosniff