# Editing or disabling SCIM provisioning

## Changing your provisioning token

To change the Bearer token used in your SCIM provisioning configuration:

1. Retrieve your enterprise. See [managing-enterprise](https://docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/managing-enterprise "mention") for more details.
2. Go to **Administration** > **SSO & Provisioning**. The **SSO & Provisioning** page opens.

<figure><img src="broken-reference" alt="Select the Edit configuration button in the top right corner to change your SSO or provisioning configuration"><figcaption></figcaption></figure>

3. Select **Edit Configuration**. The **Configure Your Connection** page opens.
4. Select **Provisioning**. The SCIM provisioning setup assistant opens.

<figure><img src="broken-reference" alt="You can delete the token and generate a new one."><figcaption></figcaption></figure>

5. Select **Generate token** to create a new token and copy it.
6. Paste the token into your identity provide. To do so, follow the instructions depending on your identity provider in [#set-up-scim-provisioning-in-your-identity-provider](https://docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/enterprise-security/setup/scim#set-up-scim-provisioning-in-your-identity-provider "mention").
7. In the setup assistant, select **Delete** in front of the token to be replaced to delete it. Confirm the deletion.
8. Select **Done**.

## Changing the SCIM group mapping of organizations

For information about the group mapping, see [map-groups](https://docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/enterprise-security/sso-and-provisioning/setup/map-groups "mention").

{% hint style="info" %}
If you unmap a SonarQube Cloud organization from a group, the group will be removed from this organization. However, if the group contains non SSO users, only the SSO users will be removed from the group, and the group itself will remain in the organization.
{% endhint %}

To change the SCIM group mapping of an organization:

1. Retrieve your enterprise. See [retrieving-and-viewing-your-enterprise](https://docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/managing-enterprise/retrieving-and-viewing-your-enterprise "mention") for more details.
2. Go to **Administration** > **SSO & Provisioning**. The **SSO & Provisioning** page opens.
3. In **Map IdP groups to organizations**, select the **Map groups** button. The **Group mapping** page opens.
4. In the **SonarQube Organizations** panel, select the organization you want to configure.
5. In the **Map IdP groups to \<organization>** panel, select or unselect the groups you want to map/unmap to/from your organization. You can filter the groups by using the **Search IdP groups** field.
6. Select **Save changes**. A confirmation dialog opens.
7. Confirm the mapping. The mapping change is started and may take several minutes. Don’t leave the page as long as the mapping is in progress.

## Disabling SCIM provisioning

To disable SCIM provisioning in your enterprise, you can delete the Bearer token used in your SCIM provisioning configuration. To do so, proceed as explained above in [#changing-your-bearer-token](#changing-your-bearer-token "mention") by skipping steps 5 and 6. During the last step, when you select **Done**, a confirmation dialog opens as illustrated below. Select **Proceed** to confirm the deletion.

<figure><img src="broken-reference" alt="Select Proceed to delete the token and thus, disable SCIM provisioning."><figcaption></figcaption></figure>

## Related pages

* [scim](https://docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/enterprise-security/sso-and-provisioning/about/scim "mention")
* [scim](https://docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/enterprise-security/sso-and-provisioning/setup/scim "mention")
* [map-groups](https://docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/enterprise-security/sso-and-provisioning/setup/map-groups "mention")
* [troubleshooting](https://docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/enterprise-security/sso-and-provisioning/troubleshooting "mention")
