The token doesn’t have the required permissions (Code: Read & Write)

Attempting to import our Azure DevOps organisation to SonarCloud, i click the + > Analyse New Project > Import another organisation.

I’ve entered the AzureDevOps organisation name ‘danelltd’
I’ve created my PAT and entered the token, but upon doing so i get 'The token doesn’t have the required permissions (Code: Read & Write).

After checking my PAT, i can confirm it has those permissions, but it still isn’t being accepted. So right now, i’m unable to import our Azure DevOps projects.

Any advice on how to solve this problem please?

Hey there.

Is Azure AD Conditional Access turned on for your Azure organization, which could be preventing non-approved devices/IP addresses from accessing it?

HI,
Yes, we have Azure AD Conditional Access.

Someone can help me here?

Hey there.

You might try whitelisting these dedicated IP addresses:

thank you, its helped me.

1 Like