- ALM used: Azure DevOps
- CI system used: Azure DevOps
- Scanner command used when applicable: N/A
- Languages of the repository: C#
- Error observed:
When signup/login with an AzureDevops Account that is linked to a secondary organization (not the primary one) and the primary one is in unmanaged state, an error is displayed.
You're not authorized to access this page.
Reason: invalid_client, AADSTS650051:
Using application 'Sonarcloud' is currently not supported for your organization zartis.com because it is in an unmanaged state.
An administrator needs to claim ownership of the company by DNS validation of ****** before the application Sonarcloud can be provisioned.
Trace ID: ce046616-91ab-4906-81c8-00006edf5102
Correlation ID: 8b826bc3-cfc5-44d9-91b8-15d2f96b5d60
Timestamp: 2020-10-05 13:40:56Z
Primary organization on Azure DevOps can not be changed nor deleted.
- Steps to reproduce:
Create an organization on Azure Devops for a domain A
Add an email account from a different domain (B) or even gmail I guess.
- Potential workaround
Allow the user to select the organization from Azure Devops Organization upon login/signup.