# Token you provided doesn’t have sufficient rights to check license

**URL:** <https://community.sonarsource.com/t/token-you-provided-doesn-t-have-sufficient-rights-to-check-license/109277>\
**Category:** SonarQube Server / Community Build\
**Created:** [February 15, 2024, 12:54pm UTC](https://community.sonarsource.com/t/token-you-provided-doesn-t-have-sufficient-rights-to-check-license/109277 "2024-02-15T12:54:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmyP](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@AmyP](https://community.sonarsource.com/u/AmyP)\
**Post date:** [February 15, 2024, 12:54pm UTC](https://community.sonarsource.com/t/token-you-provided-doesn-t-have-sufficient-rights-to-check-license/109277/1 "2024-02-15T12:54:45Z")

</div>

Hello,

Getting same error “The token you provided doesn’t have sufficient rights to check license” when working wit sonarqube

\*SonarQube version - 10.3.0.82913  
\*[Scanner for .NET (MSBuild)] version - 4.8.0.2856

- what version of MSBuild are you using? - 5.11.0.60783-net46

Verbose Output:

```auto
SonarScanner for MSBuild 5.11
Using the .NET Framework version of the Scanner for MSBuild
Default properties file was found at D:\Program Files\Sonarqube\sonar-scanner-msbuild-5.11.0.60783-net46\SonarQube.Analysis.xml
Loading analysis properties from D:\Program Files\Sonarqube\sonar-scanner-msbuild-5.11.0.60783-net46\SonarQube.Analysis.xml
sonar.verbose=true was specified - setting the log verbosity to 'Debug'
Pre-processing started.
Preparing working directories...
Using environment variables to determine the download directory...
17:57:23.485 17:57:23.46 Loading analysis properties from D:\Program Files\Sonarqube\sonar-scanner-msbuild-5.11.0.60783-net46\SonarQube.Analysis.xml
17:57:23.485 17:57:23.485 sonar.verbose=true was specified - setting the log verbosity to 'Debug'
17:57:23.493 Updating build integration targets...
17:57:23.493 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\apereira\AppData\Local\Microsoft\MSBuild\4.0\Microsoft.Common.targets\ImportBefore
17:57:23.501 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\apereira\AppData\Local\Microsoft\MSBuild\10.0\Microsoft.Common.targets\ImportBefore
17:57:23.502 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\apereira\AppData\Local\Microsoft\MSBuild\11.0\Microsoft.Common.targets\ImportBefore
17:57:23.502 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\apereira\AppData\Local\Microsoft\MSBuild\12.0\Microsoft.Common.targets\ImportBefore
17:57:23.502 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\apereira\AppData\Local\Microsoft\MSBuild\14.0\Microsoft.Common.targets\ImportBefore
17:57:23.502 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\apereira\AppData\Local\Microsoft\MSBuild\15.0\Microsoft.Common.targets\ImportBefore
17:57:23.502 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\apereira\AppData\Local\Microsoft\MSBuild\Current\Microsoft.Common.targets\ImportBefore
17:57:23.509 Installed SonarQube.Integration.targets to D:\WorkSpace2023\TFS\eCMID\Main\Ecmid Web\eCMID\.sonarqube\bin\targets
17:57:23.509 Creating config and output folders...
17:57:23.509 Creating directory: D:\WorkSpace2023\TFS\eCMID\Main\Ecmid Web\eCMID\.sonarqube\conf
17:57:23.518 Creating directory: D:\WorkSpace2023\TFS\eCMID\Main\Ecmid Web\eCMID\.sonarqube\out
17:57:23.558 Downloading from http://localhost:9000/api/server/version...
17:57:23.607 Checking validity of server license
17:57:23.615 Downloading from http://localhost:9000/api/editions/is_valid_license...
17:57:23.615 The token you provided doesn't have sufficient rights to check license.
17:57:23.624 Pre-processing failed. Exit code: 1

```

Command:

```auto
SonarScanner.MSBuild.exe begin /k:"Ecimid-cpd" /d:sonar.host.url="http://localhost:9000" /d:sonar.token="sqp_b4cd2d881b31179f1fd8e047d1cb2bae92dcaa73"

MsBuild.exe /t:Rebuild

SonarScanner.MSBuild.exe end /d:sonar.token="sqp_b4cd2d881b31179f1fd8e047d1cb2bae92dcaa73"

```

Please Advise…

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [February 15, 2024, 2:18pm UTC](https://community.sonarsource.com/t/token-you-provided-doesn-t-have-sufficient-rights-to-check-license/109277/2 "2024-02-15T14:18:30Z")

</div>

Hi,

Welcome to the community!

I’ve moved your post to a new thread because the one you posted in was about 8 months old. Per [the FAQ](https://community.sonarsource.com/faq), we really prefer you to create a new thread rather than adding to an existing one if it’s more than two months old. Why? Because a lot can change in even that short time.

On that topic, your scanner has some real age on it (released in 2019). The current version is 6.1. Can you [upgrade](https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scanners/sonarscanner-for-dotnet/)? We’ve [worked on this topic](https://github.com/SonarSource/sonar-scanner-msbuild/issues/1293), so even if the problem persists, at a minimum you’ll get a better error message.

&nbsp;  
Ann
