Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PAT Scopes #34

Open
joshmeads opened this issue Mar 25, 2024 · 4 comments
Open

PAT Scopes #34

joshmeads opened this issue Mar 25, 2024 · 4 comments

Comments

@joshmeads
Copy link

Hey thanks for making this!

Can I please request a small docs update?

It would be very helpful to share the recommended PAT scopes needed for the app functionality. Realistically we don't want to provide "full access" to our tokens but playing the guessing game back and fourth between Azure and the app is a slow process trying to bypass "Unauthorized" errors.

Thanks!

@joshmeads
Copy link
Author

So far what I've ended up with is the following:

Build: Read
Code: Read, Status
Graph: Read
Pull Request Threads: Read & Write
Release: Read
Wiki: Read & Write (I don't think this is needed though)
Work Items: Read, Write, Manage

Currently still getting unauthorized on file diffs.

@bkvisiosign
Copy link

bkvisiosign commented Jun 12, 2024

Did you ever find the scopes for file diff?

@macmiranda
Copy link

macmiranda commented Sep 3, 2024

Same problem on file diff
What call is it making to the API? I'm not very familiar with Dart

Update:
I'm getting permission denied even with a Full Access token (cleared data and logged in again)

@sstasi95
Copy link
Contributor

sstasi95 commented Sep 4, 2024

Hi,

Here's the code.

The api call is _apis/contribution/hierarchyQuery/project/${commit.projectId}, which is not documented as far as I know.

I think project and repository read access is required, but I'm not sure about the PAT scopes required. I would try with 'Code: Full'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants