API Authetication Failing with Token

Must-share information (formatted with Markdown):

  1. Created Global Token
  2. Pass header with Bearer token i n Powershell like “$headers = @{ Authorization = “Basic {MYTOKEN}” }“

We are using LDAP for authetication, And I am part of Administrator group.

It works fine without any erro if I run this “https://sonarqube.bluebayinvest.com/api/components/search_projects?ps=500“

Throws me error of “Insufficient Priviliges“ if I try to call “https://sonarqube.bluebayinvest.com/api/components/show?component={my_projectkey}”

Thanks

Sunil Bindra

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hi,

The docs should help.

 
Ann