API to provide multiple permission

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • how is SonarQube deployed: zip, Docker, Helm
  • what are you trying to achieve
  • what have you tried so far to achieve this

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

SonarQube - 9.9

Hi Team,

We are trying to add user in Sonarqube Project via Postman. We are able to do so but theres one problem. It is only accepting one permission at a time. If i want to add a user will all the permission i. E Admin, issueadmin browse, see source code etc etc, then it is not working. It is only accepting a single permission at a time.

Is there any way to add multiple permission?

Please let us know.

Thanks

Hi,

Have you tried this via the UI? The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action. And it’s quite likely that if you can’t do it via the UI, the API wasn’t built to accommodate what you’re trying to accomplish.

You may also find this guide helpful.

 
Ann

Hi,

When i am adding from UI, I am providing the permission one by one in each boxes by checking them. But for api, is it not possible to provide access to more than one permission at a single go. Actually it is required since i am trying for automation.

Thanks

Hi,

You’ll just need to automate adding the permissions one at a time.

 
Ann