Home
Version 3
Users API

Users API

Get User summary

GET /v2/users/:guid/summary

Request

Route

GET /v2/users/uaa-id-296/summary

Body

Name Description Default Valid Values Example Values
guid The guid of the user for which summary is requested
audited_spaces List of spaces that the user is an auditor for.
managed_spaces List of spaces that the user is a manager for.
spaces List of spaces that the user is developer for.
audited_organizations List of organizations that the user is an auditor for.
billing_managed_organizations List of organizations that the user is a billing manager for.
managed_organizations List of organizations that the user is a manager for.
organizations List of organizations that the user is a member of.

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NyIsImVtYWlsIjoiZW1haWwtMjI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTR9.0r0Jy6E_pnjNAIVWk20doe-JnBxVgb0oMCeYo9tPR5c
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-296/summary" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NyIsImVtYWlsIjoiZW1haWwtMjI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTR9.0r0Jy6E_pnjNAIVWk20doe-JnBxVgb0oMCeYo9tPR5c" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-296",
    "created_at": "2015-10-13T17:31:54Z",
    "updated_at": null
  },
  "entity": {
    "organizations": [
      {
        "metadata": {
          "guid": "f42b030b-3d00-4ba0-b9c4-b6746ce3030c",
          "created_at": "2015-10-13T17:31:54Z",
          "updated_at": null
        },
        "entity": {
          "name": "name-1115",
          "billing_enabled": false,
          "status": "active",
          "spaces": [
            {
              "metadata": {
                "guid": "1e6d0501-d338-4d22-b164-30414f34794d",
                "created_at": "2015-10-13T17:31:54Z",
                "updated_at": null
              },
              "entity": {
                "name": "name-1117"
              }
            }
          ],
          "quota_definition": {
            "metadata": {
              "guid": "51bfadcf-8596-4d1c-a092-1a89f9eedfaf",
              "created_at": "2015-10-13T17:31:54Z",
              "updated_at": null
            },
            "entity": {
              "name": "name-1116",
              "non_basic_services_allowed": true,
              "total_services": 60,
              "memory_limit": 20480,
              "trial_db_allowed": false
            }
          },
          "managers": [
            {
              "metadata": {
                "guid": "uaa-id-296",
                "created_at": "2015-10-13T17:31:54Z",
                "updated_at": null
              },
              "entity": {
                "admin": false,
                "active": false,
                "default_space_guid": null
              }
            }
          ]
        }
      }
    ],
    "managed_organizations": [
      {
        "metadata": {
          "guid": "f42b030b-3d00-4ba0-b9c4-b6746ce3030c",
          "created_at": "2015-10-13T17:31:54Z",
          "updated_at": null
        },
        "entity": {
          "name": "name-1115",
          "billing_enabled": false,
          "status": "active",
          "spaces": [
            {
              "metadata": {
                "guid": "1e6d0501-d338-4d22-b164-30414f34794d",
                "created_at": "2015-10-13T17:31:54Z",
                "updated_at": null
              },
              "entity": {
                "name": "name-1117"
              }
            }
          ],
          "quota_definition": {
            "metadata": {
              "guid": "51bfadcf-8596-4d1c-a092-1a89f9eedfaf",
              "created_at": "2015-10-13T17:31:54Z",
              "updated_at": null
            },
            "entity": {
              "name": "name-1116",
              "non_basic_services_allowed": true,
              "total_services": 60,
              "memory_limit": 20480,
              "trial_db_allowed": false
            }
          },
          "managers": [
            {
              "metadata": {
                "guid": "uaa-id-296",
                "created_at": "2015-10-13T17:31:54Z",
                "updated_at": null
              },
              "entity": {
                "admin": false,
                "active": false,
                "default_space_guid": null
              }
            }
          ]
        }
      }
    ],
    "billing_managed_organizations": [
      {
        "metadata": {
          "guid": "f42b030b-3d00-4ba0-b9c4-b6746ce3030c",
          "created_at": "2015-10-13T17:31:54Z",
          "updated_at": null
        },
        "entity": {
          "name": "name-1115",
          "billing_enabled": false,
          "status": "active",
          "spaces": [
            {
              "metadata": {
                "guid": "1e6d0501-d338-4d22-b164-30414f34794d",
                "created_at": "2015-10-13T17:31:54Z",
                "updated_at": null
              },
              "entity": {
                "name": "name-1117"
              }
            }
          ],
          "quota_definition": {
            "metadata": {
              "guid": "51bfadcf-8596-4d1c-a092-1a89f9eedfaf",
              "created_at": "2015-10-13T17:31:54Z",
              "updated_at": null
            },
            "entity": {
              "name": "name-1116",
              "non_basic_services_allowed": true,
              "total_services": 60,
              "memory_limit": 20480,
              "trial_db_allowed": false
            }
          },
          "managers": [
            {
              "metadata": {
                "guid": "uaa-id-296",
                "created_at": "2015-10-13T17:31:54Z",
                "updated_at": null
              },
              "entity": {
                "admin": false,
                "active": false,
                "default_space_guid": null
              }
            }
          ]
        }
      }
    ],
    "audited_organizations": [
      {
        "metadata": {
          "guid": "f42b030b-3d00-4ba0-b9c4-b6746ce3030c",
          "created_at": "2015-10-13T17:31:54Z",
          "updated_at": null
        },
        "entity": {
          "name": "name-1115",
          "billing_enabled": false,
          "status": "active",
          "spaces": [
            {
              "metadata": {
                "guid": "1e6d0501-d338-4d22-b164-30414f34794d",
                "created_at": "2015-10-13T17:31:54Z",
                "updated_at": null
              },
              "entity": {
                "name": "name-1117"
              }
            }
          ],
          "quota_definition": {
            "metadata": {
              "guid": "51bfadcf-8596-4d1c-a092-1a89f9eedfaf",
              "created_at": "2015-10-13T17:31:54Z",
              "updated_at": null
            },
            "entity": {
              "name": "name-1116",
              "non_basic_services_allowed": true,
              "total_services": 60,
              "memory_limit": 20480,
              "trial_db_allowed": false
            }
          },
          "managers": [
            {
              "metadata": {
                "guid": "uaa-id-296",
                "created_at": "2015-10-13T17:31:54Z",
                "updated_at": null
              },
              "entity": {
                "admin": false,
                "active": false,
                "default_space_guid": null
              }
            }
          ]
        }
      }
    ],
    "spaces": [
      {
        "metadata": {
          "guid": "1e6d0501-d338-4d22-b164-30414f34794d",
          "created_at": "2015-10-13T17:31:54Z",
          "updated_at": null
        },
        "entity": {
          "name": "name-1117"
        }
      }
    ],
    "managed_spaces": [
      {
        "metadata": {
          "guid": "1e6d0501-d338-4d22-b164-30414f34794d",
          "created_at": "2015-10-13T17:31:54Z",
          "updated_at": null
        },
        "entity": {
          "name": "name-1117"
        }
      }
    ],
    "audited_spaces": [
      {
        "metadata": {
          "guid": "1e6d0501-d338-4d22-b164-30414f34794d",
          "created_at": "2015-10-13T17:31:54Z",
          "updated_at": null
        },
        "entity": {
          "name": "name-1117"
        }
      }
    ]
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 37663362-5a43-4359-9b58-c413cba104d2
Content-Length: 3787
X-Content-Type-Options: nosniff