Using POST API for granting permissions to users

I am using sonarqube 7.9 (SonarQube, Scanner, Plugin, and any relevant extension)

I am trying to automate permission for users in sonarqube .

I am trying with command .

curl -k -u user:password -d “{“login”: “userid” , “permission”: [“Issueadmin”, “securityhotspotadmin” , “admin”] , “projectKey”: “xxx” }” -H “Content-Type: application/json” -X POST “http://x.x.x.x:9001/api/permissions/add_user”

BUt i am getting error using this as host not resolved .


Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.9 → 8.9.10 → 9.8 (last step optional)

(Note that the release of a new LTS, 9.9, is expected on 7 Feb 2023.)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.


Hi , version upgrade we will be working . BUt till then have to work with api . Can you please with above api .