Home
Version 3
Users API

Users API

Get User summary

GET /v2/users/:guid/summary

Request

Route

GET /v2/users/uaa-id-144/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NSIsImVtYWlsIjoiZW1haWwtNzdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDI2MDY0MX0.17sdR20UPjFg85NC8NKj2iiVxblR4DnS-XPagphRjXc
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-144/summary" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NSIsImVtYWlsIjoiZW1haWwtNzdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDI2MDY0MX0.17sdR20UPjFg85NC8NKj2iiVxblR4DnS-XPagphRjXc" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "uaa-id-144",
    "created_at": "2015-09-30T23:30:41Z",
    "updated_at": null
  },
  "entity": {
    "organizations": [
      {
        "metadata": {
          "guid": "476beddd-75b3-497b-bf32-7b7047aecd98",
          "created_at": "2015-09-30T23:30:41Z",
          "updated_at": null
        },
        "entity": {
          "name": "name-1227",
          "billing_enabled": false,
          "status": "active",
          "spaces": [
            {
              "metadata": {
                "guid": "f3c8675d-e219-4950-8117-b802d3753f43",
                "created_at": "2015-09-30T23:30:41Z",
                "updated_at": null
              },
              "entity": {
                "name": "name-1229"
              }
            }
          ],
          "quota_definition": {
            "metadata": {
              "guid": "8469748e-6878-40bf-ad9b-6c7acf672d63",
              "created_at": "2015-09-30T23:30:41Z",
              "updated_at": null
            },
            "entity": {
              "name": "name-1228",
              "non_basic_services_allowed": true,
              "total_services": 60,
              "memory_limit": 20480,
              "trial_db_allowed": false
            }
          },
          "managers": [
            {
              "metadata": {
                "guid": "uaa-id-144",
                "created_at": "2015-09-30T23:30:41Z",
                "updated_at": null
              },
              "entity": {
                "admin": false,
                "active": false,
                "default_space_guid": null
              }
            }
          ]
        }
      }
    ],
    "managed_organizations": [
      {
        "metadata": {
          "guid": "476beddd-75b3-497b-bf32-7b7047aecd98",
          "created_at": "2015-09-30T23:30:41Z",
          "updated_at": null
        },
        "entity": {
          "name": "name-1227",
          "billing_enabled": false,
          "status": "active",
          "spaces": [
            {
              "metadata": {
                "guid": "f3c8675d-e219-4950-8117-b802d3753f43",
                "created_at": "2015-09-30T23:30:41Z",
                "updated_at": null
              },
              "entity": {
                "name": "name-1229"
              }
            }
          ],
          "quota_definition": {
            "metadata": {
              "guid": "8469748e-6878-40bf-ad9b-6c7acf672d63",
              "created_at": "2015-09-30T23:30:41Z",
              "updated_at": null
            },
            "entity": {
              "name": "name-1228",
              "non_basic_services_allowed": true,
              "total_services": 60,
              "memory_limit": 20480,
              "trial_db_allowed": false
            }
          },
          "managers": [
            {
              "metadata": {
                "guid": "uaa-id-144",
                "created_at": "2015-09-30T23:30:41Z",
                "updated_at": null
              },
              "entity": {
                "admin": false,
                "active": false,
                "default_space_guid": null
              }
            }
          ]
        }
      }
    ],
    "billing_managed_organizations": [
      {
        "metadata": {
          "guid": "476beddd-75b3-497b-bf32-7b7047aecd98",
          "created_at": "2015-09-30T23:30:41Z",
          "updated_at": null
        },
        "entity": {
          "name": "name-1227",
          "billing_enabled": false,
          "status": "active",
          "spaces": [
            {
              "metadata": {
                "guid": "f3c8675d-e219-4950-8117-b802d3753f43",
                "created_at": "2015-09-30T23:30:41Z",
                "updated_at": null
              },
              "entity": {
                "name": "name-1229"
              }
            }
          ],
          "quota_definition": {
            "metadata": {
              "guid": "8469748e-6878-40bf-ad9b-6c7acf672d63",
              "created_at": "2015-09-30T23:30:41Z",
              "updated_at": null
            },
            "entity": {
              "name": "name-1228",
              "non_basic_services_allowed": true,
              "total_services": 60,
              "memory_limit": 20480,
              "trial_db_allowed": false
            }
          },
          "managers": [
            {
              "metadata": {
                "guid": "uaa-id-144",
                "created_at": "2015-09-30T23:30:41Z",
                "updated_at": null
              },
              "entity": {
                "admin": false,
                "active": false,
                "default_space_guid": null
              }
            }
          ]
        }
      }
    ],
    "audited_organizations": [
      {
        "metadata": {
          "guid": "476beddd-75b3-497b-bf32-7b7047aecd98",
          "created_at": "2015-09-30T23:30:41Z",
          "updated_at": null
        },
        "entity": {
          "name": "name-1227",
          "billing_enabled": false,
          "status": "active",
          "spaces": [
            {
              "metadata": {
                "guid": "f3c8675d-e219-4950-8117-b802d3753f43",
                "created_at": "2015-09-30T23:30:41Z",
                "updated_at": null
              },
              "entity": {
                "name": "name-1229"
              }
            }
          ],
          "quota_definition": {
            "metadata": {
              "guid": "8469748e-6878-40bf-ad9b-6c7acf672d63",
              "created_at": "2015-09-30T23:30:41Z",
              "updated_at": null
            },
            "entity": {
              "name": "name-1228",
              "non_basic_services_allowed": true,
              "total_services": 60,
              "memory_limit": 20480,
              "trial_db_allowed": false
            }
          },
          "managers": [
            {
              "metadata": {
                "guid": "uaa-id-144",
                "created_at": "2015-09-30T23:30:41Z",
                "updated_at": null
              },
              "entity": {
                "admin": false,
                "active": false,
                "default_space_guid": null
              }
            }
          ]
        }
      }
    ],
    "spaces": [
      {
        "metadata": {
          "guid": "f3c8675d-e219-4950-8117-b802d3753f43",
          "created_at": "2015-09-30T23:30:41Z",
          "updated_at": null
        },
        "entity": {
          "name": "name-1229"
        }
      }
    ],
    "managed_spaces": [
      {
        "metadata": {
          "guid": "f3c8675d-e219-4950-8117-b802d3753f43",
          "created_at": "2015-09-30T23:30:41Z",
          "updated_at": null
        },
        "entity": {
          "name": "name-1229"
        }
      }
    ],
    "audited_spaces": [
      {
        "metadata": {
          "guid": "f3c8675d-e219-4950-8117-b802d3753f43",
          "created_at": "2015-09-30T23:30:41Z",
          "updated_at": null
        },
        "entity": {
          "name": "name-1229"
        }
      }
    ]
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d02efa25-a614-4021-9d23-0c9d83e80bdd
Content-Length: 3787
X-Content-Type-Options: nosniff