Hello all,
I have a Sonarcloud organization mapped with an Azure DevOps organization.
I added a DevOps project to my Sonarcloud organization. However I made a mistake with the permission settings to that project → it disappeared from the web dashboard (Projects view).
The project is well listed if I retrieve it via the following API call:
- curl --location ‘https://sonarcloud.io/api/projects/search?organization=XXX’
–header ‘Authorization: Bearer 6b5…903’
However if I try to add permissions to the project I get a 204 and no update (the token I use in the Bearer has admin rights to the Sonarcloud org):
curl --location --request POST ‘https://sonarcloud.io/api/permissions/add_user?organization=XXX&login=johndoe&projectKey=PROJECT&permission=admin’
–header ‘Authorization: Bearer 6b54…903’
Similarly I can not delete the project via the API.
Anyone has a clue of what I am doing wrong ?
Thanks in advance for your help.