The situation is as follows:
- DevOps
Org Amaintains a private NuGet feed - DevOps
Org Bneeds to use packages from the above feed within its Pipelines
Current solution involves:
- adding a user
UfromOrg Bas a guest inOrg ADevOps with Stakeholder role - creating PAT for user
UinOrg Awith justPackaging -> Readscope - using the PAT to register a service connection for the feed in
Org B - using
NuGetAuthenticatetask inOrg BPipeline before theNuGetCommandrestore task
The issue is that user U can log in to Org A's DevOps and view boards, work items, members, etc
The question is how to restrict access so that the only thing that anyone from Org B can do is restore packages from Org A's feed and nothing else?
I have set every permission to Deny on user U's Permissions screen in Org A's DevOps.
As soon as I set View project-level information to Deny, the pipeline in Org B fails with a 404 (Not Found - VS800075: The project with id 'vstfs:///Classification/TeamProject/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' does not exist, or you do not have permission to access it. error.
If both orgs are connected to the same Azure Active Directory, upstream sources may get you what you want.
Note that we cache upstream information, so there may be a delay of up to several hours between publishing to the feed in Org A and the package being visible in Org B. Improvements are planned, but I don't have a timeline I can share at this time.