Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grant group global permissions similar to sonar-administrators

Tags:

sonarqube

I create a SonarQube group sonar-administrators-ldap and mapped to LDAP sonar-administrators-ldap. Users under sonar-administrators-ldap are able to login successfully.

When navigate to http://localhost:9000/roles/global, it only shows two default groups: Anyone and sonar-administrators, but not the new sonar-administrators-ldap group.

How do I grant/revoke global permissions for groups other the default groups?

like image 712
Bing Shiao Avatar asked Oct 11 '16 16:10

Bing Shiao


2 Answers

To create additional groups(similar to "sonar-administrators") with admin permissions.

Create a new Group with the same name as displayed in your AD.Restart the sonar to pick up the changes.Grant the new group admin permissions using the sonar API.

curl -X POST -v -u admin:Password 'http://mysonar/api/permissions/add_group?permission=admin&groupName=mynewgroup'
like image 199
bharat sama Avatar answered Oct 13 '22 14:10

bharat sama


You can use sonarqube global permission UI, but it's not intuitive at all. The Global Permissions (https://my.sonar.com/admin/permissions) page shows you only groups that have been granted any permissions already.

In order to be able to add permission to existing groups, you need to search it, for example:

enter image description here

Only then the group will appear and you will be able to add the desired permission.

like image 40
Sebastian Avatar answered Oct 13 '22 14:10

Sebastian