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

Retrieve grouped identities, ungrouped users, and system identities for explorer views

  • Groups return in path-tree order (external_id split by /). limit_groups and offset_groups slice unbroken tree chunks.
  • include_members=false returns groups with counts only.
  • search matches multiple words in any order, accent-insensitive, across name, external ID, username, email and description.
  • member_id[] (max 100), source[], managed and within_group_id narrow returned groups and members.

Parameters

Query15 optional
audiencestringquery

Audience scope (human|system). Default human

searchstringquery

Search words, matched one by one in any order and without accents. A person answers when every word is in their display name, external id, username, email or description, or in those of the group they are shown in. A group answers when every word is in its own fields.

max length 200
limit_groupsintegerquery

Maximum number of groups (default: 100, max: 5000)

max 5000
limit_members_per_groupintegerquery

Maximum members per group (default: 200, max: 1000)

limit_ungroupedintegerquery

Maximum ungrouped/system identities (default: 500, max: 2000)

offset_ungroupedintegerquery

Number of ungrouped users to skip before the returned page (default: 0)

min 0
offset_groupsintegerquery

Number of groups to skip before the returned page, in tree order (default 0). The tree is the external_id split by "/": a group comes right before the groups whose path starts with its path, and groups of one folder follow their names. With limit_groups each page is one unbroken piece of the tree. Summary.groups_total says how many groups there are.

min 0
ungrouped_onlybooleanquery

true returns only the page of people without a group and the summary, no groups and no group members.

include_membersbooleanquery

Include group member rows. Defaults to true for backward compatibility

compact_membersbooleanquery

Return each member once in the top-level members dictionary and group membership as member_ids

members_group_external_idstringquery

Include members only for the group with this exact external ID

max length 2000
member_id[]array of string · uuidquery

Only the groups where these people (UUIDs, up to 100) are direct members, each with only these people as members. Shows the groups of a person or of a page of people.

max items 100
source[]array of stringquery

Only the groups with members from these connector sources, and only those members

managedbooleanquery

Only the groups with members of this managed status, and only those members

within_group_idstring · uuidquery

Only this group (UUID), the groups under its path and the groups nested in them as members. Shows who a group reaches through its subgroups.

Responses

200

OK

IdentityGraphResponse · 6 fields
generated_atstring
18 fields
kindstring (IdentityKind)required
usergroupservice
is_botboolean

Provider-confirmed account classification. Absent when unknown.

descriptionstring
emailstring

User email from identity metadata.

avatar_urlstring

Provider avatar URL from identity metadata.

external_idstring
idstring
managedboolean
namestring
service_accountboolean

True for a user an application uses instead of a person. Absent for people, groups and service identities.

sourcesarray of string
usernamestring
12 fields
kindstring (IdentityKind)required
usergroupservice
is_botboolean

Provider-confirmed account classification. Absent when unknown.

descriptionstring
emailstring

User email from identity metadata.

avatar_urlstring

Provider avatar URL from identity metadata.

external_idstring
idstring
managedboolean
namestring
service_accountboolean

True for a user an application uses instead of a person. Absent for people, groups and service identities.

sourcesarray of string
usernamestring
member_idsarray of string

References into the top-level members dictionary in compact mode.

members_countinteger

Direct members of the group before pagination: users, service accounts and nested groups, without GitLab access-token bots. The same number as members_count of GET /identities and GET /identities/{id}. Members and member_ids list these members with their kind.

members_through_subgroups_countinteger

Members the group reaches only through its nested groups, at any depth: users, service accounts and the nested groups themselves, without GitLab access-token bots and without the group's own direct members. It counts groups too. People_through_subgroups_count counts people only. The same number as members_through_subgroups_count of GET /identities/{id}.

people_through_subgroups_countinteger

People the group reaches only through its nested groups, at any depth: users (a user marked as a service account too), each once, without groups, without identities of kind service, without GitLab access-token bots and without the group's own direct members. A person who is a direct member and also in a nested group is counted in direct_people_count only.

direct_people_countinteger

Direct members of the group that are people: users (a user marked as a service account too), without nested groups, identities of kind service and GitLab access-token bots. The members the People board lists as people of the group.

Deduplicated member dictionary populated in compact mode.

12 fields
kindstring (IdentityKind)required
usergroupservice
is_botboolean

Provider-confirmed account classification. Absent when unknown.

descriptionstring
emailstring

User email from identity metadata.

avatar_urlstring

Provider avatar URL from identity metadata.

external_idstring
idstring
managedboolean
namestring
service_accountboolean

True for a user an application uses instead of a person. Absent for people, groups and service identities.

sourcesarray of string
usernamestring
4 fields
grouped_users_totalinteger
groups_totalinteger
services_totalinteger
ungrouped_users_totalinteger

People in no group who match the search, without the token bots the console hides (GitLab project and group access token bots, GitHub [bot] logins and GitHub accounts the connector classified as bots). ungrouped_users leaves the same bots out, so offset_ungrouped pages through exactly this many people.

system_identitiesarray of IdentityGraphMemberNodeResponse
12 fields
kindstring (IdentityKind)required
usergroupservice
is_botboolean

Provider-confirmed account classification. Absent when unknown.

descriptionstring
emailstring

User email from identity metadata.

avatar_urlstring

Provider avatar URL from identity metadata.

external_idstring
idstring
managedboolean
namestring
service_accountboolean

True for a user an application uses instead of a person. Absent for people, groups and service identities.

sourcesarray of string
usernamestring
ungrouped_usersarray of IdentityGraphMemberNodeResponse

One page of the people in no group, without the token bots the console hides.

12 fields
kindstring (IdentityKind)required
usergroupservice
is_botboolean

Provider-confirmed account classification. Absent when unknown.

descriptionstring
emailstring

User email from identity metadata.

avatar_urlstring

Provider avatar URL from identity metadata.

external_idstring
idstring
managedboolean
namestring
service_accountboolean

True for a user an application uses instead of a person. Absent for people, groups and service identities.

sourcesarray of string
usernamestring

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

↑ ↓ to moveEnter to openEsc to close