Closed Graciax8 closed 1 year ago
When you create a Personal Access Token, it is assigned to your default organization If you want Get-VSTeamAccounts could list all your organizations your PAT must have access to all the organizations.
You can edit your PAT and select All accesible organizations
as in the below image.
Once fixed the PAT configuration the Get-VSTeamAccounts cmdlet should work as expected
@Graciax8, did the above solution solve the issue?
No comment for now and I agree that we close this as I also believe that this is the solution to the problem.
Steps to reproduce
Expected behavior
I expected that it will return the organizations which I am the owner
Actual behavior?
I had the following actual outcome...
On Which OS have you tried it?
macOS
What was your server version?
Azure DevOps Services
Other server version
No response
Log output of used API
Log output of $PSVersionTable