I have a private project that I want to read from Azure Data Factory. I created a token ‘my-token’ that never expires. I set a REST connection as ‘Anonymous’ and I’m passing my-token as a header.
Also the user related to the GET request does have the ‘System Administrator’ permission.
https://sonarcloud.io/api/projects/search?organization=my-org
Authorization: Bearer my-token-key
Content-Type: application/json
Error 403
{
“errors”: [{
“msg”: “Insufficient privileges”
}]
}
I also tried via Basic Authentication by using my credentials (Azure DevOps)
Error 401
How should I set the request method? I appreciate your feedback.