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 Enterprise license.
For more information about the provisioning feature, see Related pages.
With SCIM provisioning, users and groups are managed exclusively in your identity provider.
To set up SCIM provisioning in your enterprise, you must be the administrator of the enterprise in SonarQube Cloud.
Start the Provisioning setup assistant
Retrieve your enterprise. For more information, see Retrieving and viewing your enterprise.
Go to Administration > SSO & Provisioning. The SSO & Provisioning page opens.

Expand the Provisioning (SCIM) section and select Set up provisioning. The Configure Your Connection page opens.

Before setting up SCIM provisioning, you must resolve any warnings notified on this page for Single Sign-On! If it’s the case, select Single Sign-On and follow the instructions of the setup assistant. For more information, see Troubleshooting SSO and provisioning.
Note that the attribute mapping was changed recently. If your SSO setup was performed before this change, a warning will be displayed. In that case, follow the instructions to update your mapping in SonarQube Cloud. Check also the attribute mapping in your identity provider to make sure it matches the new SonarQube Cloud's mapping. For more information, see Create and set up the SonarQube Cloud application in your identity provider.
Select Provisioning. The SCIM provisioning setup assistant opens.

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. The configuration depends on your identity provider.
With Okta
In Okta, open the application used to manage Single Sign-On in SonarQube Cloud.
In the General tab, in App Settings, select Edit.
In Provisioning, select SCIM and save. The Provisioning tab is added to your application.

Open the Provisioning tab.
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:
Import New Users and Profile Updates
Push New Users
Push Profile Updates
Authentication Mode:
HTTP Header
In SonarQube Cloud’s SCIM provisioning setup assistant, select Generate Token in the Bearer Token section.
Copy the generated token.

In your identity provider, in the HTTP Header section, paste the token into Bearer.

Select Test Connector Configuration. The test starts. Note that only user deprovisioning is currently supported in SonarQube Cloud.

Close the test configuration window.
Select Save.
In SonarQube Cloud’s SCIM provisioning setup assistant, select Done.
With Microsoft Entra ID
In Microsoft Entra ID, go to Identity > Applications > Enterprise applications > All applications and select the application created for SonarQube Cloud.
On the application’s page, select Provisioning in the left-hand side menu.
In the top menu bar, select New configuration.

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.
For the Tenant URL, you currently have to follow the additional step defined in Flags to alter the SCIM behavior and add ?aadOptscim062020 to the end of the URL value.

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

Select the Create button.
In the left-hand side menu, select Attribute mapping.

Select Provision Microsoft Entra ID Groups. The Attribute Mapping dialog for groups opens.
Ensure the feature is enabled and the Create, Update and Delete actions are selected in Target Object Actions.

Return to the previous page and select Provision Microsoft Entra ID Users. The Attribute Mapping dialog for users opens.
Ensure the feature is enabled and the Create, Update and Delete actions are selected in Target Object Actions.

In Attribute Mappings , map the
userNamecustomappsso 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 ishttp://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddressin your SonarQube Server’s SAML configuration and it is mapped touser.userprincipalname(default), useuserprincipalnamehere. Otherwise, if it is mapped touser.mail, then usemailinstead.

Click Save. This takes you back to the Provisioning page.
Ensure that Provisioning Mode is Automatic.
Open the Settings section and in the Scope subsection, select Sync only assigned users and groups.

Set the Provisioning Status to On and click Save.
Go back to the Overview page and select the Start provisioning button.

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
In JumpCloud, open the application used to manage Single Sign-On in SonarQube Cloud and open the Identity Management tab.
In Configuration Settings > Service Provider (SP) Configuration set the fields as described below:
API Type:
SCIM APISCIM Version:
SCIM 2.0Base URL:
Copy-paste the Provisioning Endpoint URL from SonarQube Cloud’s setup assistant.
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.

Make sure you remove the trailing slash from the base URL. The figure below shows the trailing slash.

Select the Test Connection button. If the test was successful, proceed with the setup.
Unselect the Enable management of User Groups and Group Membership in this application option, and select Activate.

In SonarQube Cloud’s SCIM provisioning setup assistant, select Done.
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:
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:
Make sure the user groups are assigned to the SonarQube Cloud application in your identity provider.
Retrieve your enterprise. For more information, see Retrieving and viewing your enterprise.
Go to Administration > SSO & Provisioning. The SSO & Provisioning page opens.

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.

In the top right corner, select the Map all button. A confirmation dialog opens.
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.
Close the dialog. All groups are mapped to all organizations.
Defining a custom mapping
Make sure the user groups are assigned to the SonarQube Cloud application in your identity provider.
Retrieve your enterprise. For more information, see Retrieving and viewing your enterprise.
Go to Administration > SSO & Provisioning.
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.
In the SonarQube Organizations panel (a), select the organization you want to map.
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.
Select Save changes (c). A confirmation dialog opens.

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.

Close the dialog and proceed the same way for each organization.
Define the permissions
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:
Define the users and/or groups that can create projects in the organization. See Managing organization permissions for more details.
Verify the default permissions on new projects. See Using permission templates for more details.
Terminate
See Complete SSO setup.
Related pages
Last updated
Was this helpful?


