Why does sonarcloud pick my user for displaying pull request code comments in the azure devops integration?

  • ALM used: Azure DevOps
  • CI system used: Azure DevOps

When the sonarcloud azure devops integration runs and code review comments are left, the user displaying these comments is my user:

How does sonarcloud know which user to pick? Is it from the PAT token? I want to change this so it’s not my user and instead a dedicated ‘sonarcloud’ user as it’s not me actually adding the comments if that makes sense :slight_smile:

Many thanks

Hey there.

It’s indeed picked from the PAT. That’s partly why we state in our documentation on Azure DevOps Integration

We strongly encourage you to add a technical user to your organization, log in to SonarCloud using that technical user, and use the access token of that technical user to connect your Azure DevOps organization to SonarCloud.

Hi Colin,

Thanks that’s helpful! Is that documentation new? I don’t remember seeing that before!

Many thanks

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.