Start FreeLog in
SonarCloud | Administering your SonarCloud | Managing your user accounts | Setting up SAML Single Sign On | Transitioning to SAML SSO

Transitioning your enterprise to SAML SSO

On this page

With the Enterprise plan, you can transition from the DevOps platform (DOP) authentication mode to SAML SSO.


To transition your enterprise to SAML SSO: 

  1. Verify the user groups of the enterprise's organizations: see below.
  2. Register SonarCloud in the SAML identity provider.
  3. Configure SAML SSO for your enterprise in SonarCloud. This step must be performed by an enterprise admin. 
  4. Perform post-configuration steps: see below.

Verifying the user groups of the enterprise's organizations

To ensure that the automatic group synchronization can take place properly, verify that:

  • The user groups defined in your IdP service exist in the relevant organizations of your SonarCloud enterprise (i.e. a group with the same (context-sensitive) name exists in the relevant organization(s)).
  • The user groups in SonarCloud have the correct permissions. 

To manage the user groups in SonarCloud, see Managing the user groups in your organization.

Group definition example

The figure below shows a group definition example with Okta as IdP.

Post-configuration steps

  1. Test the SSO connection.
  2. Send the SSO login URL to invite enterprise users to sign in to SonarCloud with SSO. Once they have signed in, their SAML SSO account is created in SonarCloud and they have access to their organization(s) through the automatic group synchronization with the identity provider. They should:
    • Check that they have access to their organization(s) and can perform their tasks as before. 
    • Generate their analysis tokens with their SAML SSO account. (They can still use their DevOps platform service (DOP) account tokens to execute analysis as long as their DOP account still exists). 
  3. Sign up with SonarCloud by using the enterprise’s SSO log in URL. Your SAML SSO account is created. 
  4. Sign in to SonarCloud with your DOP account and grant your SAML SSO account the Administer Enterprise permission.
  5. Once the enterprise users have successfully transitioned to SAML SSO (and, during a trial, once you are sure you want to purchase the Enterprise plan), you can remove their DOP accounts from the organizations and the users can delete their DOP account. We recommend that you don’t remove the admin DOP accounts since, with a SAML SSO account, you currently cannot bind a SonarCloud organization with the corresponding DOP organization. 

Was this page helpful?

© 2008-2024 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARLINT, SONARQUBE, SONARCLOUD, and CLEAN AS YOU CODE are trademarks of SonarSource SA.

Creative Commons License