Docs
Live demo
GET/api/v2/identities/facets

Retrieve facet value counts and view counts for the identities list filters. Each facet is counted over the rows that match the search and every other facet, without its own filter. Views count the searched rows without facet filters: observe (not managed), ungrouped (people without a group) and all. The membership facet counts people in a group (grouped) and without one (ungrouped). Total counts the rows that match every filter

Parameters

Query8 optional
kindstringquery

Filter by identity kind (user, service_account)

managedbooleanquery

Filter by managed status

searchstringquery

Search by identity id prefix, display name, external id, username, description, or kind (case-insensitive)

max length 200
source[]array of stringquery

Filter by connector sources, as returned in sources

id[]array of string · uuidquery

Only the people, groups or service accounts with these IDs (UUIDs), up to 100. Names them by ID in one request

max items 100
groupedbooleanquery

true lists only the people who are a direct member of at least one group, false only the people without a group

service_accountbooleanquery

Filter by the service account flag of a user identity

hide_token_botsbooleanquery

true leaves out the GitLab and GitHub access-token bots that the console hides

Responses

200

OK

ListFacetsResponse · 3 fields
totalintegerrequired

Rows that match the search and every filter.

facetsmap of string → array of ListFacetValueResponserequired

Values with counts per facet, ordered by count descending.

viewsmap of string → integerrequired

Rows per named view, counted under the search without facet filters.

Common errors: 400 401 403 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close