Fine-grained permissions for personal access tokens in the GraphQL API

  • Tier: Free, Premium, Ultimate
  • Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated
  • Status: Beta

Fine-grained personal access tokens scope access to specific permissions in the GraphQL API. To create a fine-grained personal access token, see Fine-grained permissions for personal access tokens.

Available fine-grained permissions

Fine-grained personal access tokens can access the following GraphQL types, mutations, and fields:

Application Security resources

Dependency

Grants the ability to read dependencies.

ActionAccessKindName
ReadProjectTypeDependencyLocation

Vulnerability

Grants the ability to create, read, and update vulnerabilities.

ActionAccessKindName
CreateProjectMutationVulnerabilityCreate
ReadProjectTypeCountableVulnerability
ReadProjectTypeVulnerability
UpdateProjectMutationVulnerabilityConfirm
UpdateProjectMutationVulnerabilityDismiss
UpdateProjectMutationVulnerabilityResolve
UpdateProjectMutationVulnerabilityRevertToDetected

CI/CD resources

CI Config

Grants the ability to read and validate CI/CD configuration.

ActionAccessKindName
ValidateProjectMutationCiLint

CI/CD Setting

Grants the ability to update CI/CD settings.

ActionAccessKindName
UpdateProjectMutationProjectCiCdSettingsUpdate
UpdateGroupMutationSafeDisablePipelineVariables

Catalog Resource

Grants the ability to create and delete CI catalog resources.

ActionAccessKindName
CreateProjectMutationCatalogResourcesCreate
DeleteProjectMutationCatalogResourcesDestroy

Cd Application

Grants the ability to create and read cd applications.

ActionAccessKindName
CreateGroupMutationCdApplicationCreate
CreateInstanceMutationCdApplicationCreate
ReadGroupTypeCdApplication
ReadInstanceTypeCdApplication

Cd Environment

Grants the ability to create and read cd environments.

ActionAccessKindName
CreateGroupMutationCdEnvironmentCreate
CreateInstanceMutationCdEnvironmentCreate
ReadGroupTypeCdEnvironment
ReadInstanceTypeCdEnvironment

Cluster Agent

Grants the ability to create, delete, and read cluster agents.

ActionAccessKindName
CreateProjectMutationCreateClusterAgent
DeleteProjectMutationClusterAgentDelete
ReadProjectTypeClusterAgent

Cluster Agent Token

Grants the ability to create, read, and revoke cluster agent tokens.

ActionAccessKindName
CreateProjectMutationClusterAgentTokenCreate

Cluster Agent URL Configuration

Grants the ability to create, delete, and read cluster agent URL configurations.

ActionAccessKindName
CreateProjectMutationClusterAgentUrlConfigurationCreate
DeleteProjectMutationClusterAgentUrlConfigurationDelete

Deployment

Grants the ability to approve, create, delete, read, and update deployments.

ActionAccessKindName
ApproveProjectMutationApproveDeployment

Environment

Grants the ability to create, delete, read, stop, and update environments.

ActionAccessKindName
CreateProjectMutationEnvironmentCreate
DeleteProjectMutationEnvironmentDelete
ReadProjectTypeEnvironment
StopProjectMutationEnvironmentStop
UpdateProjectMutationEnvironmentUpdate

Freeze Period

Grants the ability to create, delete, read, and update freeze periods.

ActionAccessKindName
ReadProjectTypeCiFreezePeriod

Job

Grants the ability to delete, read, run, and update jobs.

ActionAccessKindName
ReadProjectTypeCiJob
RunProjectMutationJobPlay
RunProjectMutationJobRetry
UpdateProjectMutationJobCancel
UpdateProjectMutationJobUnschedule

Job Artifact

Grants the ability to delete, read, and update job artifacts.

ActionAccessKindName
DeleteProjectMutationArtifactDestroy
DeleteProjectMutationBulkDestroyJobArtifacts
DeleteProjectMutationJobArtifactsDestroy
ReadProjectTypeCiJobArtifact

Pipeline

Grants the ability to create, delete, read, and update pipelines.

ActionAccessKindName
CreateProjectMutationPipelineCreate
DeleteProjectMutationPipelineDestroy
ReadProjectTypeCiStage
ReadProjectTypePipeline
UpdateProjectMutationPipelineCancel
UpdateProjectMutationPipelineRetry

Pipeline Schedule

Grants the ability to create, delete, read, and update pipeline schedules.

ActionAccessKindName
CreateProjectMutationPipelineScheduleCreate
DeleteProjectMutationPipelineScheduleDelete
ReadProjectTypePipelineSchedule
ReadProjectFieldProject.pipelineSchedules
UpdateProjectMutationPipelineSchedulePlay
UpdateProjectMutationPipelineScheduleTakeOwnership
UpdateProjectMutationPipelineScheduleUpdate

Runner

Grants the ability to assign, create, delete, read, and update runners.

ActionAccessKindName
AssignProjectMutationRunnerAssignToProject
AssignProjectMutationRunnerUnassignFromProject
CreateProjectMutationRunnerCreate
CreateGroupMutationRunnerCreate
CreateInstanceMutationRunnerCreate
DeleteProjectMutationRunnerDelete
DeleteGroupMutationRunnerDelete
DeleteInstanceMutationRunnerDelete
ReadProjectTypeCiRunner
ReadProjectFieldProject.runners
ReadProjectFieldQuery.runner
ReadGroupTypeCiRunner
ReadGroupFieldGroup.runners
ReadGroupFieldQuery.runner
ReadInstanceTypeCiRunner
ReadInstanceFieldQuery.runner
ReadInstanceFieldQuery.runners
UpdateProjectMutationRunnerCacheClear
UpdateProjectMutationRunnerUpdate
UpdateGroupMutationRunnerUpdate
UpdateInstanceMutationRunnerUpdate

Terraform State

Grants the ability to create, delete, lock, read, and update Terraform state.

ActionAccessKindName
DeleteProjectMutationTerraformStateDelete
LockProjectMutationTerraformStateLock
LockProjectMutationTerraformStateUnlock
ReadProjectTypeTerraformState
ReadProjectTypeTerraformStateProtectionRule
ReadProjectTypeTerraformStateVersion
UpdateProjectMutationUpdateTerraformStateProtectionRule

Terraform State Protection Rule

Grants the ability to create and delete Terraform state protection rules.

ActionAccessKindName
CreateProjectMutationCreateTerraformStateProtectionRule
DeleteProjectMutationDeleteTerraformStateProtectionRule

Trigger

Grants the ability to create, delete, read, and update triggers.

ActionAccessKindName
CreateProjectMutationPipelineTriggerCreate
DeleteProjectMutationPipelineTriggerDelete
ReadProjectTypePipelineTrigger
UpdateProjectMutationPipelineTriggerUpdate

Duo resources

Model Selection Allowlist

Grants the ability to read model selection allowlists.

ActionAccessKindName
ReadGroupTypeAiModelSelectionAllowList
ReadGroupTypeAiModelSelectionAllowListModel
ReadInstanceTypeAiModelSelectionAllowList
ReadInstanceTypeAiModelSelectionAllowListModel

Groups resources

Admin Member Role

Grants the ability to create, delete, read, and update admin member roles.

ActionAccessKindName
CreateInstanceMutationMemberRoleAdminCreate
DeleteInstanceMutationMemberRoleAdminDelete
ReadInstanceTypeAdminMemberRole
UpdateInstanceMutationMemberRoleAdminUpdate

Group

Grants the ability to archive, create, delete, read, share, transfer, and update groups.

ActionAccessKindName
ReadGroupTypeGroup
ReadGroupFieldQuery.group
UpdateGroupMutationGroupUpdate

Grants the ability to create, delete, and read LDAP admin role links

ActionAccessKindName
CreateInstanceMutationAdminRolesLdapSync
CreateInstanceMutationLdapAdminRoleLinkCreate
DeleteInstanceMutationLdapAdminRoleLinkDestroy
ReadInstanceTypeLdapAdminRoleLink

Member Role

Grants the ability to create, delete, and read member roles.

ActionAccessKindName
CreateGroupMutationMemberRoleCreate
CreateInstanceMutationMemberRoleCreate

Preference

Grants the ability to read and update preferences.

ActionAccessKindName
ReadUserTypeUserPreferences
UpdateUserMutationUserPreferencesUpdate

Topic

Grants the ability to create, delete, merge, read, and update topics.

ActionAccessKindName
ReadInstanceTypeTopic

Organizations resources

Organization

Grants the ability to create, read, and update organizations.

ActionAccessKindName
CreateInstanceMutationOrganizationCreate
ReadInstanceTypeOrganization
ReadInstanceTypeOrganizationUser
ReadInstanceFieldQuery.organization
ReadInstanceFieldQuery.organizations
UpdateInstanceMutationOrganizationUpdate
UpdateInstanceMutationOrganizationUserUpdate

Packages And Registry resources

Container Registry Protection Tag Rule

Grants the ability to create, delete, read, and update container registry protection tag rules.

ActionAccessKindName
CreateProjectMutationcreateContainerProtectionTagRule
DeleteProjectMutationDeleteContainerProtectionTagRule
UpdateProjectMutationUpdateContainerProtectionTagRule

Container Repository

Grants the ability to delete and read container repositories.

ActionAccessKindName
DeleteProjectMutationDestroyContainerRepository
DeleteProjectMutationDestroyContainerRepositoryTags

Container Repository Protection Rule

Grants the ability to create, delete, read, and update container repository protection rules.

ActionAccessKindName
CreateProjectMutationCreateContainerProtectionRepositoryRule
DeleteProjectMutationDeleteContainerProtectionRepositoryRule
UpdateProjectMutationUpdateContainerProtectionRepositoryRule

Dependency Proxy

Grants the ability to update dependency proxies.

ActionAccessKindName
UpdateGroupMutationUpdateDependencyProxyImageTtlGroupPolicy
UpdateGroupMutationUpdateDependencyProxySettings

Package

Grants the ability to create, delete, read, and update packages.

ActionAccessKindName
CreateProjectMutationCreatePackagesProtectionRule
DeleteProjectMutationDeletePackagesProtectionRule
DeleteProjectMutationDestroyPackage
DeleteProjectMutationDestroyPackageFile
DeleteProjectMutationDestroyPackageFiles
UpdateProjectMutationUpdatePackagesCleanupPolicy
UpdateProjectMutationUpdatePackagesProtectionRule

Project Features resources

Badge

Grants the ability to create, delete, read, and update badges.

ActionAccessKindName
ReadInstanceTypeOrganizationUserBadge

Release

Grants the ability to create, delete, read, and update releases.

ActionAccessKindName
CreateProjectMutationReleaseAssetLinkCreate
CreateProjectMutationReleaseCreate
DeleteProjectMutationReleaseDelete
UpdateProjectMutationReleaseUpdate

Snippet

Grants the ability to create, delete, read, and update snippets.

ActionAccessKindName
CreateProjectMutationCreateSnippet
CreateUserMutationCreateSnippet
DeleteProjectMutationDestroySnippet
DeleteUserMutationDestroySnippet
UpdateProjectMutationUpdateSnippet
UpdateUserMutationUpdateSnippet

Project Model Registry And Experiments resources

Model Version

Grants the ability to create, delete, and update model versions.

ActionAccessKindName
CreateProjectMutationMlModelVersionCreate
DeleteProjectMutationMlModelVersionDelete
UpdateProjectMutationMlModelVersionEdit

Project Planning resources

Custom Attribute

Grants the ability to delete, read, and update custom attributes.

ActionAccessKindName
DeleteProjectMutationDeleteProjectCustomAttribute
DeleteGroupMutationDeleteGroupCustomAttribute
UpdateProjectMutationProjectCustomAttributeSet
UpdateGroupMutationSetGroupCustomAttribute

Label

Grants the ability to create, delete, promote, read, and update labels.

ActionAccessKindName
CreateProjectMutationLabelCreate
CreateGroupMutationLabelCreate
ReadProjectTypeLabel
ReadGroupTypeLabel
UpdateProjectMutationLabelUpdate
UpdateGroupMutationLabelUpdate

Work Item

Grants the ability to create, delete, read, and update work items such as epics and issues.

ActionAccessKindName
CreateProjectMutationCreateIssue
CreateProjectFieldEpicIssue.createNoteEmail
CreateProjectFieldIssue.createNoteEmail
CreateProjectFieldWorkItem.createNoteEmail
CreateGroupMutationIterationCadenceCreate
DeleteGroupMutationIterationCadenceDestroy
DeleteGroupMutationIterationDelete
ReadProjectTypeEpicIssue
ReadProjectTypeIssue
ReadProjectTypeMilestone
ReadProjectTypeWorkItem
ReadGroupTypeIteration
ReadGroupTypeIterationCadence
ReadGroupTypeMilestone
UpdateProjectMutationIssueLinkAlerts
UpdateProjectMutationIssueMove
UpdateProjectMutationIssueSetAssignees
UpdateProjectMutationIssueSetConfidential
UpdateProjectMutationIssueSetCrmContacts
UpdateProjectMutationIssueSetDueDate
UpdateProjectMutationIssueSetEpic
UpdateProjectMutationIssueSetEscalationPolicy
UpdateProjectMutationIssueSetEscalationStatus
UpdateProjectMutationIssueSetIteration
UpdateProjectMutationIssueSetLocked
UpdateProjectMutationIssueSetSeverity
UpdateProjectMutationIssueSetWeight
UpdateProjectMutationIssueUnlinkAlert
UpdateProjectMutationUpdateIssue
UpdateGroupMutationIterationCadenceUpdate
UpdateGroupMutationUpdateIteration

Projects resources

Markdown Upload

Grants the ability to create, delete, and read Markdown uploads.

ActionAccessKindName
CreateProjectMutationUploadCreate
CreateGroupMutationUploadCreate
DeleteProjectMutationUploadDelete
DeleteGroupMutationUploadDelete

Page

Grants the ability to delete, read, and update pages.

ActionAccessKindName
DeleteProjectMutationDeletePagesDeployment
DeleteProjectMutationRestorePagesDeployment
ReadProjectTypePagesDeployment
UpdateProjectMutationPagesMarkOnboardingComplete
UpdateProjectMutationSetPagesForceHttps
UpdateProjectMutationSetPagesUseUniqueDomain

Project

Grants the ability to archive, create, delete, fork, read, share, transfer, and update projects.

ActionAccessKindName
ReadProjectTypeProject
ReadProjectTypeRepositoryLanguage
ReadProjectFieldQuery.project
UpdateProjectMutationProjectSettingsUpdate
UpdateProjectMutationStarProject

Repository resources

Approval Rule

Grants the ability to create, delete, read, and update approval rules.

ActionAccessKindName
CreateProjectMutationbranchRuleApprovalProjectRuleCreate
DeleteProjectMutationapprovalProjectRuleDelete
ReadProjectTypeApprovalProjectRule
ReadProjectTypeApprovalRule
UpdateProjectMutationMergeRequestUpdateApprovalRule
UpdateProjectMutationapprovalProjectRuleUpdate

Branch

Grants the ability to create, delete, protect, and read branches.

ActionAccessKindName
CreateProjectMutationCreateBranch
DeleteProjectMutationBranchDelete
ReadProjectTypeBranch

Branch Rule

Grants the ability to create and update branch rules.

ActionAccessKindName
CreateProjectMutationBranchRuleCreate
UpdateProjectMutationBranchRuleUpdate

Code

Grants the ability to download, push, and read code via Git.

ActionAccessKindName
PushProjectMutationCommitCreate
PushProjectMutationProjectSyncFork
ReadProjectTypeCommit
ReadProjectTypeRepository

Merge Request

Grants the ability to approve, create, delete, merge, read, and update merge requests.

ActionAccessKindName
ReadProjectTypeMergeRequestApprovalState

Push Rule

Grants the ability to create, delete, read, and update push rules.

ActionAccessKindName
ReadProjectTypePushRules

Repository

Grants the ability to create, delete, read, and update repositories.

ActionAccessKindName
ReadProjectTypeBlob
ReadProjectTypeRepositoryBlob
ReadProjectTypeTree

Repository Tag

Grants the ability to create, delete, and read repository tags.

ActionAccessKindName
CreateProjectMutationTagCreate
DeleteProjectMutationTagDelete
ReadProjectTypeTag

System Access resources

Email

Grants the ability to create, delete, and read emails.

ActionAccessKindName
ReadUserTypeEmail

Job Token Scope

Grants the ability to read and update job token scopes.

ActionAccessKindName
UpdateProjectMutationCiJobTokenScopeUpdatePolicies

Job Token Scope Allowlist

Grants the ability to create, delete, and read job token scope allowlists.

ActionAccessKindName
CreateProjectMutationCiJobTokenScopeAddGroupOrProject
CreateProjectMutationCiJobTokenScopeAddProject
DeleteProjectMutationCiJobTokenScopeRemoveGroup
DeleteProjectMutationCiJobTokenScopeRemoveProject

Member

Grants the ability to create, delete, read, and update members.

ActionAccessKindName
ReadProjectTypeProjectMember
ReadGroupTypeGroupMember
UpdateProjectMutationProjectMemberBulkUpdate
UpdateGroupMutationGroupMemberBulkUpdate

Metadata

Grants the ability to read instance metadata.

ActionAccessKindName
ReadInstanceTypeGitlabInstanceFeatureFlag
ReadInstanceTypeKas
ReadInstanceTypeMetadata

Personal Access Token

Grants the ability to create, read, revoke, and rotate personal access tokens.

ActionAccessKindName
CreateUserMutationPersonalAccessTokenCreate
RevokeUserMutationPersonalAccessTokenRevoke
RotateUserMutationPersonalAccessTokenRotate

User

Grants the ability to follow, read, and unfollow users.

ActionAccessKindName
ReadUserTypeAddOnUser
ReadUserTypeAutocompletedUser
ReadUserTypeCurrentUser
ReadUserTypeMergeRequestAssignee
ReadUserTypeMergeRequestAuthor
ReadUserTypeMergeRequestParticipant
ReadUserTypeMergeRequestReviewer
ReadUserTypeUserCore