For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set up SCIM

If Single Sign-On (SSO) is used in your SonarQube Cloud enterprise for user authentication, you can set up SCIM to automate provisioning. SCIM provisioning is supported with any identity provider.

This feature requires the SonarQube Cloud Enterprise licence.

For more information about the provisioning feature, see Related pages.

To set up SCIM provisioning in your enterprise, you must be the administrator of the enterprise in SonarQube Cloud.

Step 1: Start the Provisioning setup assistant

  1. Retrieve your enterprise. For more information, see Retrieving and viewing your enterprise.

  2. Go to Administration > SSO & Provisioning. The SSO & Provisioning page opens.

Select the Set up provisioning button.
  1. Expand the Provisioning (SCIM) section and select Set up provisioning. The Configure Provisioning assistant opens.

Select Provisioning to set up SCIM provisioning.

Step 2: Set up SCIM provisioning in your identity provider

In this step, you will configure your identity provider’s application for SonarQube Cloud by copying values from SonarQube Cloud’s SCIM provisioning setup assistant. Follow the instructions in the assistant. For more information on some configurations, see below.

If you used Okta Express Configuration to set up SSO, SCIM provisioning is not available, because that method adds the SonarQube Cloud app from the Okta App Catalog. See the Using Okta Express Configuration page for detailed instructions when using the Okta Express Configuration.

With Okta SAML
  1. In Okta, open the application used to manage Single Sign-On in SonarQube Cloud.

  2. In the General tab, in App Settings, select Edit.

  3. In Provisioning, select SCIM and save. The Provisioning tab is added to your application.

In your Okta application for SonarQube Cloud, enable SCIM provisioning.
  1. Open the Provisioning tab.

Note: The To Okta tab displays an attribute mapping section that requires no changes:

  • Do not add an Active attribute mapping; this causes user provisioning to fail.

  • Do not modify the email mapping; the default works correctly.

  • Do not enable Import New Users and Profile Updates; this controls the reverse direction (Okta importing from SonarQube Cloud) and is not required.

  1. In SCIM Connection, set the parameters as described below:

    • SCIM connector base URL: Copy-paste the Provisioning Endpoint URL from SonarQube Cloud’s setup assistant.

    • Unique identifier field for users: Copy-paste the User ID attribute value in Required attributes from SonarQube Cloud’s setup assistant.

    • Supported provisioning actions: Select the following options:

      • Push New Users

      • Push Profile Updates

      • Push Groups

    • Authentication Mode: HTTP Header

Set the SCIM connection in Okta.
  1. In SonarQube Cloud’s SCIM provisioning setup assistant, select Generate Token in the Bearer Token section.

You will copy values from the SCIM provisioning setup assistant to your identity provider's application for SonarQube Cloud.
  1. Copy the generated token.

Copy the generated token by selecting the Copy And Close button and paste it where it belongs to..
  1. In your identity provider, in the HTTP Header section, paste the token into Bearer.

In the HTTP Header section, paste the token into Bearer.
  1. Select Test Connector Configuration. The test starts. Note that only user deprovisioning is currently supported in SonarQube Cloud.

Test the SCIM connection in your Okta application for SonarQube.
  1. Close the test configuration window.

  2. Select Save.

  3. In SonarQube Cloud’s SCIM provisioning setup assistant, select Done.

  4. Finalize the provisioning setup in Okta:

    1. Open the Provisioning tab and select To Okta.

    2. Select Edit and enable the following features:

      • Create Users

      • Update User Attributes

      • Deactivate Users

    3. Select Save.

Note: The To Okta tab displays an attribute mapping section that requires no changes:

  • Do not add an Active attribute mapping; this causes user provisioning to fail.

  • Do not modify the email mapping; the default works correctly.

  • Do not enable Import New Users and Profile Updates; this controls the reverse direction (Okta importing from SonarQube Cloud) and is not required.

Enable the features Create Users, Update User Attributes, and Deactivate Users.
With Okta OIDC

With Okta OIDC, you use two applications in Okta: the custom OIDC application that manages Single Sign-On, and a separate SCIM application that you add from the Okta App Catalog in the following steps. Okta occasionally changes its own interface, so treat the setup assistant as the source of truth for step order and expect the Okta labels below to differ slightly.

These steps apply to SSO set up with a custom OIDC application, as described in the If using Okta OIDC section. If you used Okta Express Configuration, see the Using Okta Express Configuration page.

  1. In SonarQube Cloud’s SCIM provisioning setup assistant, go to 1. Add SCIM Template App.

  2. In Okta, go to Applications and select Browse App Catalog.

  3. Search for (OAuth Bearer Token) Governance with SCIM 2.0, select it, and select Add Integration.

The Okta app catalog search for (OAuth Bearer Token) Governance with SCIM 2.0, with the matching SCIM result highlighted in the results list.
  1. In General Settings, set the following:

    • Application label: Enter a meaningful name for your SCIM application.

    • Application Visibility: Select Do not display application icon to users.

    • Browser plugin auto-submit: Clear Automatically log in when user lands on login page.

    Then select Next.

Okta General Settings for the SCIM app, with the Application label filled in, Do not display application icon selected, and auto-login cleared.
  1. In Sign-On Options, keep the default selection and select Done. Your SSO application continues to use OIDC.

  2. In SonarQube Cloud’s setup assistant, select Next to go to 2. Configure SCIM.

  3. In Okta, open the Provisioning tab of the new application. In Integration, select Configure API Integration.

  4. Select Enable API integration.

  5. In SonarQube Cloud’s setup assistant, copy the Base URL and paste it into Base URL in Okta.

  6. In the Bearer Token section of the setup assistant, select Generate Token. In the Bearer Token Information dialog, select Copy And Close.

  1. In Okta, paste the token into OAuth Bearer Token.

  2. Leave Import Groups selected, and select Test API Credentials. Okta displays a success message when it can reach SonarQube Cloud.

  3. Select Save.

Okta Integration settings for the SCIM app, with API integration and Import Groups selected, the Base URL and token filled in, and the test verified.
  1. In the Provisioning tab, open To App and select Edit. Select Enable for Create Users, Update User Attributes, and Deactivate Users.

  2. Clear Set password when creating new users, which appears selected after you enable Create Users. Leave Sync Password cleared, and select Save.

The To App settings in the Okta SCIM app, with Create Users, Update User Attributes, and Deactivate Users enabled and the password options cleared.
  1. In SonarQube Cloud’s setup assistant, select Next to go to 3. SCIM Mapping.

  2. In Okta, return to the Provisioning tab, open To App, and scroll to the Attribute Mappings section. Remove the Primary email type, Primary phone type, and Address type mappings. For each one, select the × at the end of the row, select Remove Mapping, and select OK. These mappings can cause issues during PUT operations for users. The setup assistant then shows steps for adding attributes in the Okta Profile Editor; you do not need to follow those steps.

The Attribute Mappings table of the Okta SCIM app, with the Primary email type, Primary phone type, and Address type rows highlighted for removal.
  1. In SonarQube Cloud’s setup assistant, select Next to go to 4. Sync Groups.

  2. Assign the same People and Groups that can sign in with SSO to the SCIM application. This prevents login failures caused by missing attribute mappings. To assign people and groups:

    1. In Okta, you’re already in the SCIM application under Applications and Resources > Applications. Switch to the Assignments tab.

    2. Select Assign > Assign to People or Assign to Groups.

    3. Select Assign next to each person or group, and select Save and Go Back for each group you want to add.

    4. Close the dialog.

The Assignments tab of the Okta SCIM app with the Groups filter selected, listing the Everyone and sonarcloud groups as assigned.
  1. In Okta, go to the Push Groups tab of the SCIM application. To push groups:

    1. Select Push Groups > Find groups by name.

    2. In Enter a group to push..., enter the name of a group to provision and select it.

    3. Select Save & Add Another, and then repeat sub-steps 2 and 3 for each additional group.

    4. Select Close. To check that your groups were added, select All under Pushed Groups. In the Push Status column, each group shows Pushing and then changes to Active.

The Push Groups tab of the Okta SCIM app listing the Everyone and sonarcloud groups with the Push Status Active.
  1. In SonarQube Cloud’s setup assistant, select Done.

Then complete your group mapping in Step 3: Map your groups to organizations.

With Microsoft Entra ID OIDC
  1. Follow the instructions in the 1. Create application step of the SonarQube Cloud’s setup assistant.

  2. Select Next to go to step 2. Configure SCIM.

  3. Follow the instructions in the assistant.

Once you have stored the Bearer token in your SCIM application in Microsoft Azure, perform the following in the provisioning configuration of the SCIM app:

  1. Go to Manage > Attribute mapping.

  2. Select the Provision Microsoft Entra ID Users link to edit the attribute mapping for users. The editor opens.

Select the Provision Microsoft Entra ID Users link.
  1. In the Attribute Mappings list, locate the record whose customappsso Attribute is userName.

  2. In the far right of the record, select Edit.

  3. In Source attribute, select objectId.

In Source attribute, select objectId.
  1. Select OK. The editor closes.

  2. Select Save and confirm.

With Microsoft Entra ID SAML
  1. In Microsoft Entra ID, go to Identity > Applications > Enterprise applications > All applications and select the application created for SonarQube Cloud.

  2. On the application’s page, select Provisioning in the left-hand side menu.

  3. In the top menu bar, select New configuration.

Select the New configuration button in the Provisioning page of the SonarQube Cloud app.
  1. In Admin credentials, set the fields as follows:

    • Select authentication method: Select Bearer authentication

    • Secret token: In SonarQube Cloud’s SCIM provisioning setup assistant, select Generate Token in the Bearer Token section.

      Copy the generated token and paste it to this field.

    • Tenant URL: Copy-paste the Provisioning Endpoint URL from SonarQube Cloud’s setup assistant. See Warning below.

Set the Admin credentials parameters.
  1. Select the Test connection button. You should see a success pop-up at the top right corner of the page.

A success pop-up is dispayed in the top right corner if the connection test was successful.
  1. Select the Create button.

  2. In the left-hand side menu, select Attribute mapping.

  3. Select the Groups tab to access attribute mapping for your groups.

The Attribute Mapping page for Microsoft Entra ID Groups.
  1. Ensure the feature is enabled and the Create, Update and Delete actions are selected in Target Object Actions.

Enable the feature and select all Target Object Actions.
  1. Switch to the Users tab to access attribute mapping for your users.

The Attribute Mapping page for Microsoft Entra ID Users.
  1. Ensure the feature is enabled and the Create, Update and Delete actions are selected in Target Object Actions.

  2. In Attribute Mappings, map the userName customappsso Attribute (target) to the Microsoft Entra ID Attribute (source) used as SAML user login attribute in your SAML configuration. For example, if your login attribute is http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress in your SonarQube Cloud’s SAML configuration and it is mapped to user.userprincipalname (default), use userprincipalname here. Otherwise, if it is mapped to user.mail, then use mail instead.

Map the userName customappsso Attribute (target) to the Microsoft Entra ID Attribute (source) used as SAML user login attribute in your SAML configuration.
  1. Select Save. This takes you back to the Provisioning page.

  2. Ensure that Provisioning Mode is Automatic.

  3. Open the Settings section and in the Scope subsection, select Sync only assigned users and groups.

  4. Set the Provisioning Status to On and select Save.

In MS Entra ID, select Sync only assigned users and groups
  1. Go back to the Overview page and select the Start provisioning button.

Select the Start provisioning button on the Overview page.
  1. In SonarQube Cloud’s SCIM provisioning setup assistant, select Done.

Microsoft Entra ID runs a SCIM synchronization every 40 minutes. Changes in Microsoft Entra ID are not reflected immediately in SonarQube Cloud.

With JumpCloud SAML
  1. In JumpCloud, open the application used to manage Single Sign-On in SonarQube Cloud and open the Identity Management tab.

  2. In Configuration Settings > Service Provider (SP) Configuration set the fields as described below:

    • API Type: SCIM API

    • SCIM Version: SCIM 2.0

    • Base URL:

      1. Copy-paste the Provisioning Endpoint URL from SonarQube Cloud’s setup assistant.

      2. Remove the trailing slash from the URL. This step is very important. The SCIM connection will fail if the URL has a trailing slash.

    • Token Key: In SonarQube Cloud’s SCIM provisioning setup assistant, select Generate Token in the Bearer Token section. Copy the generated token and paste it to this field.

    • Test User Email: Enter any email address.

Select SCIM API and SCIM 2.0, and copy-paste the base URL and token key from SonarQube Cloud
Remove the trailing slash from the base URL copied from SonarQube Cloud
  1. Select the Test Connection button. If the test was successful, proceed with the setup.

  2. Unselect the Enable management of User Groups and Group Membership in this application option, and select Activate.

Unselect the Enable management of User Groups and Group Membership in this application option, and select Activate.
  1. In SonarQube Cloud’s SCIM provisioning setup assistant, select Done.

Step 3: Map your groups to organizations

Only groups that are both assigned to the SonarQube Cloud application in your identity provider and manually mapped to SonarQube Cloud organizations will be provisioned by SCIM. The following applies:

  • The same group can be mapped to several organizations.

  • You can update the group mapping anytime.

Upon completion of this step, the groups will be created within your SonarQube Cloud organizations. Should a group with an identical name already exist, the members specified in your identity provider will be added to the existing group and any existing SSO member will be overwritten by the new member list. See also About SSO and provisioning.

You can either:

Once completed, check your mapping by going to SonarQube Cloud > Your organization Access > Groups.

Mapping all groups to all organizations

You can map all groups to all organizations in one click. If necessary, you can then refine the mapping as explained below in Defining a custom mapping.

Proceed as follows:

  1. Make sure the user groups are assigned to the SonarQube Cloud application in your identity provider. With Okta OIDC, assign them to the SCIM application, not the OIDC SSO application.

  2. Retrieve your enterprise. For more information, see Retrieving and viewing your enterprise.

  3. Go to Administration > SSO & Provisioning. The SSO & Provisioning page opens.

Select the Map Groups button.
  1. Expand the IdP group mapping section and select the Map groups button. The button is only available if you have set up SSO and provisioning properly. The Group mapping page opens.

Select the Map all button.
  1. In the top right corner, select the Map all button. A confirmation dialog opens.

  2. Confirm. The mapping is started and may take several minutes. Don’t leave the page as long as the mapping is in progress. Once the mapping is complete, a Mapping complete dialog is displayed.

  3. Close the dialog. All groups are mapped to all organizations.

Defining a custom mapping

  1. Make sure the user groups are assigned to the SonarQube Cloud application in your identity provider. With Okta OIDC, assign them to the SCIM application, not the OIDC SSO application.

  2. Retrieve your enterprise. For more information, see Retrieving and viewing your enterprise.

  3. Go to Administration > SSO & Provisioning.

  4. Expand the IdP group mapping section and select the Map groups button. The button is only available if you have set up SSO and provisioning properly. The Group mapping page opens.

  5. In the SonarQube Organizations panel (a), select the organization you want to map.

  6. In the Map IdP groups to <organization> table (b), select the groups you want to map to your organization. You can filter the groups by using the Search IdP groups field. Toggle the selection of all groups by clicking the checkbox next to Group in the table header.

  7. Select Save changes (c). A confirmation dialog opens.

Select an organization. Then select the groups to be mapped to the organization. Save.
  1. Confirm the mapping. The mapping is started and may take several minutes. Don’t leave the page as long as the mapping is in progress. Once the mapping is complete, a Mapping complete dialog is displayed.

The SCIM group mapping is in progress. Don't leave the page.
  1. Close the dialog and proceed the same way for each organization.

Checking your groups in SonarQube Cloud

After the mapping is complete, check that your groups were created in each organization:

  1. In your organization, go to Access > Groups. The Groups page opens with the list of user groups for the organization.

  2. Check that the groups you mapped are listed and labeled IdP managed.

The Groups page of a SonarQube Cloud organization listing Everyone and sonarcloud as IdP managed groups, next to the default Members and Owners groups.

Step 4: Define the permissions in SonarQube Cloud

Users and groups are now provisioned in SonarQube Cloud and you can set their permissions.

To manage the user and group permissions in your enterprise, see Managing the enterprise-related permissions.

To manage the user and group permissions in an organization, you can:

Next step

Last updated

Was this helpful?