ERROR: You're not authorized to run analysis. Please contact the project administrator

Hi @benoit,

I’m also facing the same issue:
file for sonar properties: sonar-project.properties

also have mentioned the sonar.organization in the sonar-project.properties file as shown below:

sonar.projectKey=xxxx
sonar.projectName=xxxx
sonar.projectVersion=xxxx
sonar.organization=xxxx

the command used for execution:
dotnet tool install --global dotnet-sonarscanner --version 5.2.0

dotnet sonarscanner begin /k:xxxx /d:sonar.host.url=https://sonarqube.xxxx.com /d:sonar.login=${SONAR_USER} /d:sonar.password=${SONAR_PW} /d:project.settings=C:\xxxx\sonar-project.properties

dotnet sonarscanner end /d:sonar.login=${SONAR_USER} /d:sonar.password=${SONAR_PW}

ERROR: Error during SonarScanner execution

(https://gitlab.com//-/jobs/1225392233#L5064)ERROR: You’re not authorized to run analysis. Please contact the project administrator.

thanks in advance