ALM used
Azure DevOps
CI system used
Azure DevOps Pipelines
Languages of the repository
Java, TypeScript and .NET
Description
We configured Enterprise SSO (SAML) and SCIM provisioning between Microsoft Entra ID and SonarCloud.
SSO authentication works correctly and users can log in via the enterprise SSO link.
SCIM provisioning connection tests also succeed on both sides.
However, group synchronization fails during provisioning cycles.
Users are provisioned successfully, but groups fail to sync.
Example groups:
grp_all@xxxxxx.com
grp_corporate_sre_base@xxxxxx.com
These groups already exist in SonarCloud.
Example:
grp_all@xxxxxx.com
Expected members: 269
Current members: 21
Error observed
Provisioning logs from Entra ID:
EntrySynchronizationError
Failed to match an entry in the source and target systems
Group 'grp_all@xxxxxx.com'
Resource:
https://auth.sonarcloud.io/scim/v2/connections/<connection-id>/Groups?filter=displayName+eq+"grp_all%40xxxxxx.com"
Response Status Code: 403
Response Content:
{
"got":["get:users","post:users","put:users","patch:users","delete:users"],
"need":[{"selection":["get:groups"]}],
"detail":"Insufficient scope",
"status":"403"
}
Provisioning job details:
Provisioning interval: 40 minutes
Users in scope: ~290
Current cycle status: Initial sync paused
Steps to reproduce
-
Configure SAML SSO between Entra ID and SonarCloud.
-
Configure SCIM provisioning using the bearer token generated in SonarCloud.
-
Enable automatic provisioning in Entra ID.
-
Assign users and groups to the Enterprise Application.
-
Wait for the provisioning cycle.
Result:
-
Users provision successfully.
-
Groups fail with
Insufficient scope.
Potential workaround attempted
We regenerated the SCIM bearer token in:
SonarCloud
Enterprise
SSO & Provisioning
Configure Provisioning
Then updated the token in Entra ID provisioning settings.
The error persists.
Additional question
During the first SSO login, SonarCloud requires email verification with a code.
In our Entra ID tenant, some users are contractors who authenticate in our tenant but do not have a mailbox. Because of this they cannot receive the verification code.
Is it possible to disable the first login email verification for Enterprise SSO users?
If anyone has faced a similar SCIM groups provisioning issue with SonarCloud + Entra ID, any guidance would be appreciated.





