-
Notifications
You must be signed in to change notification settings - Fork 10
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
TF909091: Guest users are not permitted to access this organization as per organization policy #50
Comments
I couldn't get past this and ended up spinning up my own project to resolve this. If you bump on the same issues as me then you might find it helpful too! You can find it here: https://github.com/johnnyreilly/azdo-npm-auth and there's an intro blog post here: https://johnnyreilly.com/introducing-azdo-npm-auth |
As an aside, I was able to get past the initial issue by using Alas I encountered other issues which I thought I'd share here: npm_config_registry=https://registry.npmjs.org npx ado-npm-auth
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
🔑 Authenticating to package feed...
Encountered error while performing auth Error: Failed to get Ado Pat from npx AzureAuth: TF909091: Guest users are not permitted to access this organization as per organization policy. For more information, please contact your organization administrator.
An unexpected error ocurred. Re-run with --verbosity=debug for more info.
at gC (/Users/john.reilly/.npm/_npx/db64d855fa186e0a/node_modules/ado-npm-auth/dist/ado-npm-auth.cjs:157:1982)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async yC (/Users/john.reilly/.npm/_npx/db64d855fa186e0a/node_modules/ado-npm-auth/dist/ado-npm-auth.cjs:157:2113)
at async bx (/Users/john.reilly/.npm/_npx/db64d855fa186e0a/node_modules/ado-npm-auth/dist/ado-npm-auth.cjs:188:2472)
❌ Authentication to package feed failed. At the time I was accessing my work organisation, from my work machine, and I was authenticated using my work credentials. But I still received messages about being a Happily It would be better to have one unified tool out there that handled all cases. |
+1 same error on Windows, adding the user env variable |
Updated 27/12/2025
This was originally opened for an issue with specifying the registry. I've a workaround for that issue, but the subsequent issue discovered here is still an issue #50 (comment) - please skip what is directly below to read that instead
Original issue - there's a workaround
Describe the bug
When trying to use this project with private feeds I receive this error:
To Reproduce
Steps to reproduce the behavior:
npx --yes ado-npm-auth
in a folder with an.npmrc
that looks something like this:Logs look something like this:
Expected behavior
I was expecting no error.
Screenshots
N/A
Desktop (please complete the following information):
Other info
I'm authenticated with Azure DevOps already. Doing
npm login
doesn't seem to work.The text was updated successfully, but these errors were encountered: