Retrieve a paginated list of identities with optional filtering
id[]accepts up to 100 IDs.groupedfilters people in (true) or outside (false) groups.service_account=falseexcludes service accounts.hide_token_bots=trueexcludes GitLab/GitHub token bots.sortalso acceptsemail,groups(group count) andmode.GET /identities/facetsandGET /identities/idsaccept the same filters (facetsreportsmembershipandviews:all,observe,ungrouped).
Parameters
Pagination cursor for next page
Maximum number of items to return (default: 20, max: 100)
Filter by identity kind (user, service_account)
Filter by managed status
Search by identity id prefix, display name, external id, username, description, or kind (case-insensitive)
Filter by connector sources, as returned in sources
Only the people, groups or service accounts with these IDs (UUIDs), up to 100. Names them by ID in one request
true lists only the people who are a direct member of at least one group, false only the people without a group
Filter by the service account flag of a user identity
true leaves out the GitLab and GitHub access-token bots that the console hides
Sort column. Giving source, sort or group parameters switches the list to the filtered ordering. Without them the list keeps its historical newest-first order
namemembersupdatedemailgroupsmodeSort direction. Defaults to the column direction (members and updated descend)
ascdescOrder rows by this grouping key first, so a client can cut the page stream into groups
sourceResponses
OK
ListIdentitiesResponse · 4 fields
True when another page follows. The list ends when it is false.
25 fields
Provider-confirmed account classification. Absent when unknown.
Provider avatar or Gravatar URL for user identities.
Email from the identity metadata, when it is an address.
usergroupserviceDirect member total (group identities only): users, service accounts and nested groups, without GitLab access-token bots. GET /identities/graph reports the same number for the group.
Group identities only: members the group reaches only through its nested groups, at any depth, nested groups included, without GitLab access-token bots and without its own direct members. GET /identities/graph reports the same number.
Group identities only: people (users, a user marked as a service account too, no groups, no identities of kind service, no GitLab access-token bots) the group reaches only through its nested groups, each once, without its own direct members.
Group identities only: direct members that are people (users, a user marked as a service account too), without nested groups, identities of kind service and GitLab access-token bots.
True for a user an application uses instead of a person. A service account is the same user for rules, groups, credentials and targets. The mark only describes it. Absent for people, groups and service identities.
Service accounts only: where the application's secret is kept or is to be kept, as a path in the organization secret store. A description, never a secret. Principal does not read it. Absent when not recorded.
Returned only by GET /identities/{id}: the writer each profile field shows the value of, and other writers that hold a different value.
5 fields
usernamedisplay_name emailavatar_url account_type connector: a connector sync. Principal: set in Principal. Legacy: kept from before sources were recorded. Sign_in: value of the first Dex sign-in.
connectorprincipallegacysign_in Other writers that hold a different value. The shown value wins by priority.
Returned only by GET /identities/{id} for a person: whether an administrator or a connector suspended them.
3 fields
Who suspended the person, an administrator or a connector that no longer finds them.
administratorconnectorLogin from the identity provider. A single sign-on user may have a generated key here.
Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.
Full number of items that match the request, present only when the list counts them. It is never the size of the page.
Common errors: 400 401 403 429 504. They mean the same for every operation, see Errors.