Azure DevOps Personal Access Token Setup for Git-Zen

Create a PAT, give it the right scopes, and connect it to Git-Zen โ€” about 10 minutes.

Last updated April 2026 ยท for dev.azure.com (cloud-hosted Azure DevOps)

When you need this guide

Git-Zen prefers OAuth 2.0 for Azure DevOps connections โ€” it's automatic, refreshes on its own, and ties to your account. Use a Personal Access Token (PAT) instead when:

Heads up On-prem Azure DevOps Server / TFS isn't supported — only dev.azure.com works with Git-Zen today. See the self-hosted matrix.

Required scopes

Git-Zen needs the following scopes on your PAT. Anything more is unnecessary; anything less and parts of the integration will fail silently.

Scope Permission Why Git-Zen needs it
Work ItemsRead & writeCreate work items from Zendesk tickets, sync field updates and comments.
CodeReadRead commits referenced from Zendesk tickets via gz# tags.
IdentityReadResolve assignee names when creating work items.
Project and TeamReadList your projects, teams, area paths, and iteration paths in the Git-Zen sidebar.
Service ConnectionsRead & queryConfigure and query service hooks (webhooks) for inbound updates.

Step-by-step

1

Open Personal Access Tokens in Azure DevOps

Go to dev.azure.com/{your-org} and click your profile picture in the top-right. Select Personal access tokens from the dropdown menu.

2

Create a new token

Click + New Token. Fill in:

  • Name: Git-Zen Integration
  • Organization: the org Git-Zen will sync (you can repeat this process for additional orgs)
  • Expiration: 1 year (the longest Azure DevOps allows by default; some orgs limit to 90 days). Set a calendar reminder to rotate before it expires.
3

Select scopes

Click Show all scopes, then choose Custom defined and check the boxes from the table above.

Why not "Full access"? Full access works but breaks the principle of least privilege. If the token leaks, an attacker gets your entire Azure DevOps. Use the minimum scopes Git-Zen needs.
4

Copy the token immediately

Click Create. Azure DevOps shows the token once. Copy it to your clipboard or a password manager right now — if you close the dialog without copying, you have to start over.

5

Paste the token into Git-Zen

Inside Zendesk, open any ticket and find the Git-Zen sidebar. Then:

  1. Click the gear icon → Settings
  2. Open the Authentication section
  3. Switch from OAuth to PAT
  4. Paste the token and click Save

Git-Zen will validate the token immediately. If something is wrong with the scopes, the validator tells you which scope is missing.

Multiple Azure DevOps organizations

Need Git-Zen to talk to more than one Azure DevOps organization? Each org gets its own PAT (they're scoped per-org). Today this requires a quick email to support to provision the additional org — we're tracking self-serve multi-org as a feature in our roadmap. Email us with your org name(s) and we'll have it set up the same day.

Troubleshooting

"Unauthorized" or 401 errors after pasting

"Forbidden" or 403 errors

The token expired

Azure DevOps emails you 7 days before expiration. Repeat steps 1–5 to create a new one and paste it into Git-Zen Settings. Git-Zen will keep your settings, links, and history intact during the rotation.

Security best practices

Other auth setup guides

GitHub Personal Access Tokens → · GitLab Personal Access Tokens → · Back to Git-Zen for Azure DevOps →