# What should be scope/permissions assigned to the Personal Access Token?

### Description

Personal access tokens (PATs) are used to authenticate into Azure DevOps. PAT needs to be created with required permissions based on entity type which needs to synchronize.

### Solution

* <code class="expression">space.vars.SITENAME</code> provides multiple ways to authenticate Integration User, one of the type is "Personal Access Token". Refer [Create Personal Access Token](/opstech-docs/connectors/azure-devops.md#create-personal-access-token) section to learn about how to create a Personal Access Token.
* Personal Access Token should be created with required permissions. Permissions are vary based on entity type you want to synchronize. Refer [Personal Access Token Minimum Required Permission](/opstech-docs/connectors/azure-devops.md#privileges-for-user) section under **User privileges** to learn about which permissions are required.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://opstech.gitbook.io/opstech-docs/help-center-index/faqs/tfs-faqs/pat-permission.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
