Skip to main content

project_user_permissions

Gets or lists a project_user_permissions resource.

Overview​

Nameproject_user_permissions
TypeResource
Idgitlab.users.project_user_permissions

Fields​

The following fields are returned by SELECT queries:

GraphQL response envelope

NameDatatypeDescription
admin_all_resourcesbooleanIf true, the user is an instance administrator.
admin_issuebooleanIf true, the user can perform admin_issue on this resource
admin_operationsbooleanIf true, the user can perform admin_operations on this resource
admin_path_locksbooleanIf true, the user can perform admin_path_locks on this resource
admin_projectbooleanIf true, the user can perform admin_project on this resource
admin_remote_mirrorbooleanIf true, the user can perform admin_remote_mirror on this resource
admin_wikibooleanIf true, the user can perform admin_wiki on this resource
admin_work_item_lifecyclebooleanIf true, the user can perform admin_work_item_lifecycle on this resource
archive_projectbooleanIf true, the user can perform archive_project on this resource
can_leavebooleanIf true, the user can leave this project.
change_namespacebooleanIf true, the user can perform change_namespace on this resource
change_visibility_levelbooleanIf true, the user can perform change_visibility_level on this resource
create_deploymentbooleanIf true, the user can perform create_deployment on this resource
create_designbooleanIf true, the user can perform create_design on this resource
create_issuebooleanIf true, the user can perform create_issue on this resource
create_labelbooleanIf true, the user can perform create_label on this resource
create_merge_request_frombooleanIf true, the user can perform create_merge_request_from on this resource
create_merge_request_inbooleanIf true, the user can perform create_merge_request_in on this resource
create_pagesbooleanIf true, the user can perform create_pages on this resource
create_path_lockbooleanIf true, the user can perform create_path_lock on this resource
create_pipelinebooleanIf true, the user can perform create_pipeline on this resource
create_pipeline_schedulebooleanIf true, the user can perform create_pipeline_schedule on this resource
create_snippetbooleanIf true, the user can perform create_snippet on this resource
create_wikibooleanIf true, the user can perform create_wiki on this resource
create_work_itembooleanIf true, the user can perform create_work_item on this resource
destroy_designbooleanIf true, the user can perform destroy_design on this resource
destroy_pagesbooleanIf true, the user can perform destroy_pages on this resource
destroy_wikibooleanIf true, the user can perform destroy_wiki on this resource
download_codebooleanIf true, the user can perform download_code on this resource
download_wiki_codebooleanIf true, the user can perform download_wiki_code on this resource
fork_projectbooleanIf true, the user can perform fork_project on this resource
generate_descriptionbooleanIf true, the user can perform generate_description on this resource
import_issuesbooleanIf true, the user can perform import_issues on this resource
move_designbooleanIf true, the user can perform move_design on this resource
push_codebooleanIf true, the user can perform push_code on this resource
push_to_delete_protected_branchbooleanIf true, the user can perform push_to_delete_protected_branch on this resource
read_commit_statusbooleanIf true, the user can perform read_commit_status 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_cycle_analyticsbooleanIf true, the user can perform read_cycle_analytics on this resource
read_designbooleanIf true, the user can perform read_design on this resource
read_environmentbooleanIf true, the user can perform read_environment on this resource
read_merge_requestbooleanIf true, the user can perform read_merge_request on this resource
read_pages_contentbooleanIf true, the user can perform read_pages_content on this resource
read_path_locksbooleanIf true, the user can perform read_path_locks on this resource
read_projectbooleanIf true, the user can perform read_project on this resource
read_project_memberbooleanIf true, the user can perform read_project_member on this resource
read_wikibooleanIf true, the user can perform read_wiki on this resource
remove_fork_projectbooleanIf true, the user can perform remove_fork_project on this resource
remove_pagesbooleanIf true, the user can perform remove_pages on this resource
remove_projectbooleanIf true, the user can perform remove_project on this resource
rename_projectbooleanIf true, the user can perform rename_project on this resource
request_accessbooleanIf true, the user can perform request_access on this resource
update_designbooleanIf true, the user can perform update_design on this resource
update_pagesbooleanIf true, the user can perform update_pages on this resource
update_wikibooleanIf true, the user can perform update_wiki on this resource
upload_filebooleanIf true, the user can perform upload_file 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 Project.userPermissions (ProjectPermissions).

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 project, for example gitlab-org/gitlab
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 Project.userPermissions (ProjectPermissions).

SELECT
admin_all_resources,
admin_issue,
admin_operations,
admin_path_locks,
admin_project,
admin_remote_mirror,
admin_wiki,
admin_work_item_lifecycle,
archive_project,
can_leave,
change_namespace,
change_visibility_level,
create_deployment,
create_design,
create_issue,
create_label,
create_merge_request_from,
create_merge_request_in,
create_pages,
create_path_lock,
create_pipeline,
create_pipeline_schedule,
create_snippet,
create_wiki,
create_work_item,
destroy_design,
destroy_pages,
destroy_wiki,
download_code,
download_wiki_code,
fork_project,
generate_description,
import_issues,
move_design,
push_code,
push_to_delete_protected_branch,
read_commit_status,
read_crm_contact,
read_crm_organization,
read_cycle_analytics,
read_design,
read_environment,
read_merge_request,
read_pages_content,
read_path_locks,
read_project,
read_project_member,
read_wiki,
remove_fork_project,
remove_pages,
remove_project,
rename_project,
request_access,
update_design,
update_pages,
update_wiki,
upload_file,
view_edit_page
FROM gitlab.users.project_user_permissions
WHERE full_path = '{{ full_path }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
;