project_user_permissions
Gets or lists a project_user_permissions resource.
Overview​
| Name | project_user_permissions |
| Type | Resource |
| Id | gitlab.users.project_user_permissions |
Fields​
The following fields are returned by SELECT queries:
- get
GraphQL response envelope
| Name | Datatype | Description |
|---|---|---|
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_operations | boolean | If true, the user can perform admin_operations on this resource |
admin_path_locks | boolean | If true, the user can perform admin_path_locks on this resource |
admin_project | boolean | If true, the user can perform admin_project on this resource |
admin_remote_mirror | boolean | If true, the user can perform admin_remote_mirror on this resource |
admin_wiki | boolean | If true, the user can perform admin_wiki on this resource |
admin_work_item_lifecycle | boolean | If true, the user can perform admin_work_item_lifecycle on this resource |
archive_project | boolean | If true, the user can perform archive_project on this resource |
can_leave | boolean | If true, the user can leave this project. |
change_namespace | boolean | If true, the user can perform change_namespace on this resource |
change_visibility_level | boolean | If true, the user can perform change_visibility_level on this resource |
create_deployment | boolean | If true, the user can perform create_deployment on this resource |
create_design | boolean | If true, the user can perform create_design on this resource |
create_issue | boolean | If true, the user can perform create_issue on this resource |
create_label | boolean | If true, the user can perform create_label on this resource |
create_merge_request_from | boolean | If true, the user can perform create_merge_request_from on this resource |
create_merge_request_in | boolean | If true, the user can perform create_merge_request_in on this resource |
create_pages | boolean | If true, the user can perform create_pages on this resource |
create_path_lock | boolean | If true, the user can perform create_path_lock on this resource |
create_pipeline | boolean | If true, the user can perform create_pipeline on this resource |
create_pipeline_schedule | boolean | If true, the user can perform create_pipeline_schedule on this resource |
create_snippet | boolean | If true, the user can perform create_snippet on this resource |
create_wiki | boolean | If true, the user can perform create_wiki on this resource |
create_work_item | boolean | If true, the user can perform create_work_item on this resource |
destroy_design | boolean | If true, the user can perform destroy_design on this resource |
destroy_pages | boolean | If true, the user can perform destroy_pages on this resource |
destroy_wiki | boolean | If true, the user can perform destroy_wiki on this resource |
download_code | boolean | If true, the user can perform download_code on this resource |
download_wiki_code | boolean | If true, the user can perform download_wiki_code on this resource |
fork_project | boolean | If true, the user can perform fork_project on this resource |
generate_description | boolean | If true, the user can perform generate_description on this resource |
import_issues | boolean | If true, the user can perform import_issues on this resource |
move_design | boolean | If true, the user can perform move_design on this resource |
push_code | boolean | If true, the user can perform push_code on this resource |
push_to_delete_protected_branch | boolean | If true, the user can perform push_to_delete_protected_branch on this resource |
read_commit_status | boolean | If true, the user can perform read_commit_status 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_cycle_analytics | boolean | If true, the user can perform read_cycle_analytics on this resource |
read_design | boolean | If true, the user can perform read_design on this resource |
read_environment | boolean | If true, the user can perform read_environment on this resource |
read_merge_request | boolean | If true, the user can perform read_merge_request on this resource |
read_pages_content | boolean | If true, the user can perform read_pages_content on this resource |
read_path_locks | boolean | If true, the user can perform read_path_locks on this resource |
read_project | boolean | If true, the user can perform read_project on this resource |
read_project_member | boolean | If true, the user can perform read_project_member on this resource |
read_wiki | boolean | If true, the user can perform read_wiki on this resource |
remove_fork_project | boolean | If true, the user can perform remove_fork_project on this resource |
remove_pages | boolean | If true, the user can perform remove_pages on this resource |
remove_project | boolean | If true, the user can perform remove_project on this resource |
rename_project | boolean | If true, the user can perform rename_project on this resource |
request_access | boolean | If true, the user can perform request_access on this resource |
update_design | boolean | If true, the user can perform update_design on this resource |
update_pages | boolean | If true, the user can perform update_pages on this resource |
update_wiki | boolean | If true, the user can perform update_wiki on this resource |
upload_file | boolean | If true, the user can perform upload_file 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 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.
| Name | Datatype | Description |
|---|---|---|
full_path | string | Full path of the project, for example gitlab-org/gitlab |
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 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)
;