How can I remove the see source code and browse permission for sonar-users?


(Yash Brahmani) #1

Hi Julien, resolved this problem. Able to force authenticate now.
I wanted to ask you as to how can I remove the see source code and browse permission for sonar-users?
Do we have any API syntax that can help us with the above


How can I enable force authentication in sonarqube instance using api
(Julien Lancelot) #2

Hi Yash,

In order to remove some permissions from a group, you can use api/permissions/remove_group?groupName=SomeGroupName&permission=SomePermission on each permission.

Regards,


(Yash Brahmani) #3

It’s giving invalid global permission codeviewer
400 bad request
GroupName=sonar-users&permission=codeviewer


(Julien Lancelot) #4

You should have more detail in the error returned by the web service.
I’m suspecting a typo : it’s not GroupName but groupName.


(Yash Brahmani) #6

Hi Julien,
I have typed groupName=sonar-users&permission=codeviewer
It is giving the same error 400 bad request


(Julien Lancelot) #8

The web service should return a error message that will help you to understand what is wrong, could you please have a look ?