group_user_permissions
Gets or lists a group_user_permissions resource.
Overview​
| Name | group_user_permissions |
| Type | Resource |
| Id | gitlab.groups.group_user_permissions |
Fields​
The following fields are returned by SELECT queries:
- get
GraphQL response envelope
| Name | Datatype | Description |
|---|---|---|
admin_ai_catalog_item_consumer | boolean | If true, the user can perform admin_ai_catalog_item_consumer on this resource |
admin_all_resources | boolean | If true, the user is an instance administrator. |
admin_issue | boolean | If true, the user can perform admin_issue on this resource |
admin_work_item_lifecycle | boolean | If true, the user can perform admin_work_item_lifecycle on this resource |
archive_group | boolean | If true, the user can perform archive_group on this resource |
can_leave | boolean | If true, the user can leave this group. |
change_group | boolean | If true, the user can perform change_group on this resource |
create_custom_emoji | boolean | If true, the user can perform create_custom_emoji on this resource |
create_projects | boolean | If true, the user can perform create_projects on this resource |
generate_description | boolean | If true, the user can perform generate_description on this resource |
read_crm_contact | boolean | If true, the user can perform read_crm_contact on this resource |
read_crm_organization | boolean | If true, the user can perform read_crm_organization on this resource |
read_group | boolean | If true, the user can perform read_group on this resource |
remove_group | boolean | If true, the user can perform remove_group on this resource |
view_edit_page | boolean | If true, the user can perform view_edit_page on this resource |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | full_path, host | Permissions 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.
| Name | Datatype | Description |
|---|---|---|
full_path | string | Full path of the group, for example gitlab-org |
host | string | GitLab 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​
- get
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)
;