For Azure DevOps Service Connections you need personal access tokens to provide granular permissions, also if you are a consultant, you don’t want your account to get mapped into the customers service connection. it would be a decent way to keeping the tokens within the organization connections.
Go to your GitHub organization profile or your repo profile.
![](https://www.azure365pro.com/wp-content/uploads/2023/04/image-8-1024x250.png)
![](https://www.azure365pro.com/wp-content/uploads/2023/04/image-9-1024x537.png)
![](https://www.azure365pro.com/wp-content/uploads/2023/04/image-10-1024x549.png)
![](https://www.azure365pro.com/wp-content/uploads/2023/04/image-12-1024x542.png)
![](https://www.azure365pro.com/wp-content/uploads/2023/04/image-13-1024x567.png)
![](https://www.azure365pro.com/wp-content/uploads/2023/04/image-14-1024x500.png)
New Fine-grained Personal Access Token (github.com)
![](https://www.azure365pro.com/wp-content/uploads/2023/04/image-15-1024x676.png)
Choose specific Repo. –
![](https://www.azure365pro.com/wp-content/uploads/2023/04/image-20.png)
Added repo permissions for the token
![](https://www.azure365pro.com/wp-content/uploads/2023/04/image-16-1024x724.png)
![](https://www.azure365pro.com/wp-content/uploads/2023/04/image-17-1024x271.png)
![](https://www.azure365pro.com/wp-content/uploads/2023/04/image-18-1024x384.png)
now you can use this access token in the azure DevOps service connection.
![](https://www.azure365pro.com/wp-content/uploads/2023/04/image-19-1024x567.png)