Multiple sonarcloud organizations with one single Azure Devops Org - PAT binding

Hello

In Azure DevOps, we have a single ADO organization that contains multiple team projects. Each of these team projects hosts several repositories.

Our goal was to map each DevOps team project to a separate Sonar organization, so that each department can manage itself independently within SonarCloud.

The intended mapping was:

  • Sonar organization → Azure DevOps project

  • Sonar project → DevOps repository

To enable Quality Status Checks in pull requests, we need to configure DevOps PATs for each organization. However, Sonar does not seem to support this setup.

Error: DevOps organization ‘XYZ’ is already bound to one of Sonar’s organizations.

Is there any workaround for this issue? Is it possible to bind Azure DevOps at the Sonar enterprise level?

thank you for any advice

Hi,

Sorry, but it’s org-to-org. You’re not going to be able to bind one ADO organization to multiple SonarQube Cloud organizations.

 
Ann

Hello @joew and thanks for reaching out.
As Ann said, the binding is only org to org.
Would it make sense to consider the following mapping:

  • Sonar Organization → ADO Organization
  • Sonar project → Azure DevOps project
  • A Sonar members group represents a departement and has permissions on the Sonar project that they own
  • To isolate responsibilities in terms of analysis, you can use a different Scoped Organization Tokens per team and assign the corresponding projects to it

Let me know if his helps.

Best,