We have created SOT in SonarCloud and provided that SOT in ADO service connection and below is pipeline configuration. Please let me know if you need any further details
I suspect this is because you are using a token with no Browse permission on the project. Swapping the analysis token for a user token (or a token with Browse on the project) should work.
To confirm you could try turning on debug mode in your pipeline and you should see a message like this:
Unable to get measures. It is expected if you are not using a user token but instead a global or project analysis token.
Hi @antoine.vinot Thanks for the response. Just to clarify — does this mean the SOT token currently does not have Browse permission on the project?
Also, if we switch to a user-specific token to work around this, would that introduce a dependency on individual users (e.g., ownership, access continuity, offboarding risks), as opposed to using SOT which is more service-oriented?
Ideally, we’d want to avoid tight coupling to specific users if possible, so just checking whether granting Browse permission to SOT would be the preferred approach here.
Scope Organization Tokens can only be granted the Execute analysis permission. Support for additional permissions is planned for the near future.
and
Scope Organization Tokens are not yet supported with Azure DevOps service connections.
if we switch to a user-specific token to work around this, would that introduce a dependency on individual users
Yes, it will introduce a coupling with the user who created it. To avoid access continuity risks, the workaround would be to create a technical user instead.
That being said, please note that this isn’t actually an error, but rather an INFO log indicating a failed API call. The quality gate itself still functions correctly; the only visible side effect is that the build summary won’t display per-metric rows (such as new violations, coverage, or duplications).
On our end, we could downgrade this to a DEBUG log to avoid confusion.
If support for additional permissions for the SOT is planned in the near future, and the current error does not impact the quality gate analysis, we would prefer to continue using the SOT.
Additionally, it would be helpful if the log level for this message could be downgraded to DEBUG just to avoid confusion.