Feb 03 2023 10:57 AM - edited Feb 03 2023 11:43 AM
I am trying to download a specific file from a build pipeline artifact using the following API call, where I retrieved the ArtifactId from a previous call:
So, trying to receive FileNameIWant.zip from inside MyArtifactName.
It works from a shell script using my Personal Access Token, only if that PAT has Full Access.
But if I set the PAT scope to Custom Defined, even if I turn on all the permissions as I can find, I always get a (401) Unauthorized error.
This seems like a bug or missing functionality to me. Does anyone know how to make this work with only a custom access scope?
Using a PAT with only Read access to Build and Release I can retrieve the entire artifact using _apis/build/builds/$($BuildId)/artifacts?artifactName=MyArtifactName
Feb 04 2023 09:45 PM
SolutionFeb 06 2023 06:52 AM
Thanks @Robina , I will check with our project administrator if this is still needed.
The problem resolved itself over the weekend, it's working now even though I didn't change any permissions on my PAT.
Feb 06 2023 07:09 AM
@Allen_Johnson Thanks for the response.Glad to hear your issue resolve