The token you provided doesn't have sufficient rights to check license using PowerShell

Must-share information (formatted with Markdown):

  • Community Edition
  • Version 10.1 (build 73491)
    Deployed with zip
    Scanning Project
    Every Solution from other Tickets

SonarScanner.MSBuild.exe begin /k:“name”
SonarScanner for MSBuild 5.9.2
Using the .NET Framework version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories…
14:37:19.381 Updating build integration targets…
14:37:19.784 The token you provided doesn’t have sufficient rights to check license.
14:37:19.791 Pre-processing failed. Exit code: 1

I tried to scan a Project with PowerShell but i get this error every time. I already checked the premissions and this shouldn’t be the Problem.
Side Notes:
I changed some outputs of the log (for Example sonar.token) for secutiry reason.
The Person i tested it had already an older version of the scanner installed could this be the Problem?

Thanks for any Help.

Best Regards,

Hey there.

The latest version of the Scanner for .NET is v5.13 – can you try upgrading and see if you still face the issue?