azure_devops_app
azure_devops_app copied to clipboard
PAT Scopes
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!
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.
Did you ever find the scopes for file diff?
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)
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'.
Hi everyone,
Azure DevOps Undocumented API Thread
For a complete list of available scopes and their descriptions, refer to the official Azure DevOps documentation:
🔗 Azure DevOps Permissions & Scopes
If you run into any issues, feel free to test these scopes and let us know! 🚀
— PurpleSoft Team