Docs
Live demo
GET/api/v2/organizations/{id}/memberships
members:readAPI token

Retrieve a paginated wrapper of organization memberships. Supports cursor-based pagination and a limit parameter (1-100).

Parameters

Path and query1 required of 3
idstringpathrequired

Organization ID (UUID)

cursorstringquery

Opaque cursor from next_cursor of the previous page. Send it with the same filters.

limitinteger · int32query

Page size (1-100) for paginated results

min 1 · max 100

Responses

200

OK

OrganizationMembershipsResponse · 4 fields
has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of OrgMembershipResponserequired
10 fields
created_atstring

The member user. Absent when it could not be read. A member that belongs to another organization (the administrator who created this organization) is shown by name, login, email and source only.

25 fields
is_botboolean

Provider-confirmed account classification. Absent when unknown.

avatar_urlstring

Provider avatar or Gravatar URL for user identities.

created_atstring
descriptionstring
display_namestring
emailstring

Email from the identity metadata, when it is an address.

external_idstring
idstring
kindstring (IdentityKind)
usergroupservice
managedboolean
members_countinteger

Direct 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.

members_through_subgroups_countinteger

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.

people_through_subgroups_countinteger

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.

direct_people_countinteger

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.

service_accountboolean

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.

secret_locationstring

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.

profile_sourcesarray of IdentityProfileSourceResponse

Returned only by GET /identities/{id}: the writer each profile field shows the value of, and other writers that hold a different value.

Returned only by GET /identities/{id} for a person: whether an administrator or a connector suspended them.

connector_namesarray of string
metadatamap of string → any
organization_idstring
organization_namestring
sourcesarray of string
updated_atstring
usernamestring

Login from the identity provider. A single sign-on user may have a generated key here.

identity_idstring
organization_idstring
rolestring

Effective organization role resolved from roles.

adminvieweruser
rolesarray of string
scopesarray of string
custom_roleOrgCustomRoleRef

Custom role the member holds on top of the built-in role.

can be null
2 fields
idstring · uuidrequired
namestringrequired
permissionsarray of string (OrgPermission)

Everything the member may do in the organization: the built-in role, the custom role and the roles of the groups the member belongs to directly.

access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:read
updated_atstring
next_cursorstring

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.

totalinteger

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 404 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close