Organizeaccess
GET/groups/{group_id}/access
Who has access to a group, and why.
list_group_access
access:read
A token needs theaccess:readscope: See who has access to a group or repository, and whyGranted byread_api,write_api.Every operation this scope unlocksSingle-resource
x-gitmoap-isolation: {"kind":"single_or_self_scoped"}
Paginated
Pass thenext_tokena page returns to get the next one.
Lists every live grant that reaches the group — made on it, or inherited from a group above — oldest first, each with its holder, role, expiry, reason and any limit narrowing it. Filter by where the grant was made, by the kind of holder, or by a name fragment. Callers who can see who has access here may read it (Reporters and above with the built-in roles); a public or internal group does not make its access list public.
Parameters
Path
- group_idGroupId (string · uuid)Group ID
Query
- sourceAccessSourceFilterdirectinheritedalloptionalOnly grants made here (
direct), only inherited ones (inherited), or both (all, the default) - subject_kindSubjectKinduserservice_accountteamoptionalOnly grants to people, service accounts or teams
- searchstringoptionalA fragment of a username, or of a team's name
- limitinteger · int64optionalMaximum number of entries, 1-100 (default 50)
- next_tokenstringoptionalPagination token
Responses
200Every grant that reaches the groupapplication/json
- advanced_in_usebooleanWhether the organization has given a team access, or defined a custom role or a limit. Until it has, access is five roles given to people, and the page reads as a members list.
entriesarray of AccessEntryEvery grant that reaches here — made here or inherited — oldest first.
- The AccessEntry schema
- created_atstring · date-time
- grant_idGrantId (string · uuid)
roleRoleView
- The RoleView schema
- namestringThe role's display name: a built-in name such as
Developer, or the custom role's name. - rankAccessLevelguestreporterdevelopermaintainerownerThe built-in rank the role counts as wherever a rank is compared, such as a protected branch's minimum.
- builtinAccessLevelguestreporterdevelopermaintainerowneror nulloptionalSet when the role is built in.
- customRoleId (string · uuid) or nulloptionalSet when the role is one the organization defined.
sourceAccessSource
- The AccessSource schema
- kindAccessSourceKinddirectinheritedWhere an entry on the access page comes from.
- subjectGrantSubject
- expires_atstring · date-time or nulloptional
granted_byActorSummary or nulloptional
- The ActorSummary schema
- emailstring
- idstring
- usernamestring
- avatar_urlstring or nulloptional
- last_exercised_atstring · date-time or nulloptionalWhen the grant last let somebody do something, to the day. Absent until it has.
limited_toarray of AccessLimitoptionalThe limits that take away part of what this grant gives here: set on this group or repository or one above it, naming the grant's holder, a team the person is on, or everyone — or every service account, for one. An organization owner is never limited, so their entries carry none.
- The AccessLimit schema
- atAccessScopeWhere the limit is set. It caps its subject there and everywhere beneath, including beneath a group or repository that does not inherit access.
- created_atstring · date-time
- limit_idLimitId (string · uuid)
- subjectLimitSubjectEntry
- ceilingRoleView or nulloptionalThe most the subject may hold. Absent when the limit allows nothing at all.
- reasonstring or nulloptional
- reasonstring or nulloptional
organization_ownersOrganizationOwners
- The OrganizationOwners schema
- countinteger · int64
- listedbooleanWhether their grants appear among the entries. They do not when this group or repository stops inheriting access, yet the owners reach it all the same.
scopeAccessPageScope
- The AccessPageScope schema
- full_pathstring
- idstring
- inherits_accessbooleanWhether access granted on the groups above reaches it. When it is
false, only access granted here — and the organization's owners — reach it. - typeScopeTypegrouprepository
- next_tokenstring or nulloptional
200 exampleSynthesized example
{
"advanced_in_use": false,
"entries": [
{
"created_at": "2026-10-15T00:37:26Z",
"grant_id": "8855e4df-f153-4e69-87e6-37f2bf4bd5f8",
"role": {
"name": "payments-api",
"rank": "guest"
},
"source": {
"at": {
"full_path": "acme/payments-api",
"id": "id-4b62",
"type": "group"
},
"kind": "direct"
},
"subject": {
"principal": {
"id": "5ef650f3-b20a-4fcb-a11d-9e1a0835fc44",
"kind": "user",
"username": "mara"
}
}
}
],
"organization_owners": {
"count": 5,
"listed": false
},
"scope": {
"full_path": "acme/payments-api",
"id": "id-6ff4",
"inherits_access": false,
"type": "group"
},
"next_token": "next-token-62de"
}
400Invalid filter or pagination tokenapplication/json
Error codes
- BAD_REQUESTThe request is malformed: a parameter or a body field is not a well-formed value of its type
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
400 exampleSynthesized example
{
"error": {
"code": "code-ecea",
"message": "Draw the region map from operation density"
}
}
401Authentication requiredapplication/json
Error codes
- UNAUTHORIZEDNo credential was sent, or the one sent is invalid, expired or revoked
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
401 exampleSynthesized example
{
"error": {
"code": "code-df90",
"message": "Stream pipeline status into the run header"
}
}
403The caller cannot see who has access hereapplication/json
Error codes
- FORBIDDENYou are signed in but may not do this here;
reasonnames the permission or the rule that refused it - INSUFFICIENT_SCOPEThe access token lacks the scope this operation needs;
required_scopenames it - PERMISSION_REQUIREDYou need a permission you do not hold here; the message names it
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
403 exampleSynthesized example
{
"error": {
"code": "code-8b17",
"message": "Stream pipeline status into the run header"
}
}
404Group not foundapplication/json
Error codes
- NOT_FOUNDThe resource does not exist — or exists and you cannot see it: a private resource you have no access to answers exactly as an absent one does
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
404 exampleSynthesized example
{
"error": {
"code": "code-3167",
"message": "Inline scalar newtypes but keep their brand"
}
}
CLI
gitmoap access list-group-access
- --group-ididGroup ID (id or group path)
- --limitnumberoptionalMaximum number of entries, 1-100 (default 50)
- --next-tokenstringoptionalPagination token
- --searchstringoptionalA fragment of a username, or of a team's name
- --sourcedirect | inherited | alloptionalOnly grants made here (`direct`), only inherited ones (`inherited`), or both (`all`, the default)
- --subject-kinduser | service_account | teamoptionalOnly grants to people, service accounts or teams