Skip to main content

group_user_permissions

Gets or lists a group_user_permissions resource.

Overview​

Namegroup_user_permissions
TypeResource
Idgitlab.groups.group_user_permissions

Fields​

The following fields are returned by SELECT queries:

GraphQL response envelope

NameDatatypeDescription
admin_ai_catalog_item_consumerbooleanIf true, the user can perform admin_ai_catalog_item_consumer on this resource
admin_all_resourcesbooleanIf true, the user is an instance administrator.
admin_issuebooleanIf true, the user can perform admin_issue on this resource
admin_work_item_lifecyclebooleanIf true, the user can perform admin_work_item_lifecycle on this resource
archive_groupbooleanIf true, the user can perform archive_group on this resource
can_leavebooleanIf true, the user can leave this group.
change_groupbooleanIf true, the user can perform change_group on this resource
create_custom_emojibooleanIf true, the user can perform create_custom_emoji on this resource
create_projectsbooleanIf true, the user can perform create_projects on this resource
generate_descriptionbooleanIf true, the user can perform generate_description on this resource
read_crm_contactbooleanIf true, the user can perform read_crm_contact on this resource
read_crm_organizationbooleanIf true, the user can perform read_crm_organization on this resource
read_groupbooleanIf true, the user can perform read_group on this resource
remove_groupbooleanIf true, the user can perform remove_group on this resource
view_edit_pagebooleanIf true, the user can perform view_edit_page on this resource

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfull_path, hostPermissions for the current user on the resource Generated from the GitLab GraphQL schema field Group.userPermissions (GroupPermissions).

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
full_pathstringFull path of the group, for example gitlab-org
hoststringGitLab host, with an optional port (default gitlab.com). Resolved from the GITLAB_HOST environment variable when it is set (x-stackQL-envVar); a WHERE host value always takes precedence. Self-managed instances: the provider is generated from the gitlab.com schema, so older instances may reject fields they do not serve. (default: gitlab.com, x-stackQL-envVar: GITLAB_HOST)

SELECT examples​

Permissions for the current user on the resource Generated from the GitLab GraphQL schema field Group.userPermissions (GroupPermissions).

SELECT
admin_ai_catalog_item_consumer,
admin_all_resources,
admin_issue,
admin_work_item_lifecycle,
archive_group,
can_leave,
change_group,
create_custom_emoji,
create_projects,
generate_description,
read_crm_contact,
read_crm_organization,
read_group,
remove_group,
view_edit_page
FROM gitlab.groups.group_user_permissions
WHERE full_path = '{{ full_path }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
;