Problem while connecting SonarCloud to Azure AD


(Bertrand Thomas) #1

Hello, we just registered our organization to SonarCloud, I am able to log in but not my teammates.

They have the error: AADSTS90094: An administrator of XXX has set a policy that prevents you from granting Sonarcloud the permissions it is requesting. Contact an administrator of XXX who can grant permissions to this application on your behalf.

The difference is I’m an Azure admin…

I found SonarCloud application in Azure, I added manually the user but still has the error.

Application: Sonarcloud
MFA Required: No
Sign-in status: Failure
Sign-in error code: 90094
Failure reason: Other

In Sonarcloud - Self-service window I cannot save the form when I enable “Allow users to…”.


(Fabrice Bellingard) #2

Hi Bertrand,

usually, this kind of error can be fixed only by the administrator of the Azure Active Directory you are belonging to wanted to. The setting to update is the following:

Hope this will solve your issue.


(Bertrand Thomas) #3

Thank you!

Unfortunately, it’s already enabled.


(Fabrice Bellingard) #4

Humm, this might be related to some other security settings - like if your AAD admin specifically configured the directory to not let users share their details with third-party application. And on my side, I don’t have enough knowledge to help you further on this. :confused:


(Fabrice Bellingard) #5

Hi Bertrand,

FYI, our team spent some time to investigate what the problem could be and try to reproduce it, but we couldn’t manage to get into the same situation as you. On your side, did you find a way to fix this?


(Bertrand Thomas) #6

Hi Fabaice, no I didn’t.
Azure AD is synced with our on-premise AD on which I’m not an admin and no support, I guess this issue is coming from there.
We use my account to link SonarCloud to VSTS and I add my colleague in the team with their github accout, not perfect but it works.


(Dennis Hsu) #7

Any update on SoanrCloud with Azure AD? does this work?


(Fabrice Bellingard) #8

Yes it works, we have plenty of Azure DevOps users on SonarCloud.