API for group permissions

Hello,

I am using sonarqube 8.3.1 and I am trying to provide multiple permissions to user group.
I am using following curl request as an example and notice I cannot provide more than one permission.
curl -X POST -v -u MYTOKEN: “http://X.X.X.X:port/api/permissions/add_group_to_template?groupName=testgroupname&permission=codeviewer&templateName=mytemplate”

Is is possible to provide more than one permission to a group in single api call?

I want to do following
curl -X POST -v -u MYTOKEN: “http://X.X.X.X:port/api/permissions/add_group_to_template?groupName=testgroupname&permission=codeviewer,admin,user&templateName=mytemplate”

Hi,

Sorry, but no it’s not possible to set many permissions at the same time.
You’ll need to execute as many web services calls as permission.

Regards

Okay got it, thank you for the quick help Julien.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.