I would like to remove the browse permission for the group jira-users for all projects. As there are many projects (as well as many schemes) I would like to use a script.
Within the JIRA-Administration, I can remove the group by removing the group directly from the browse permission (in the scheme) and by removing the group from the project roles which have the browse permission (in the scheme).
I have the permission and the group, for which I want delete the permission. I have all the projects and permission schemes. And I have the permission manager, with which I should be able to delete the permission.
def jiraUserGroup = ComponentAccessor.getGroupManager().getGroup("jira-users")
def browsePermissionId = Permission.BROWSE.getId();
def permissionManager = ComponentAccessor.getPermissionManager()
def permissionSchemes = ComponentAccessor.getPermissionSchemeManager().getSchemeObjects()
def projects = ComponentAccessor.getProjectManager().getProjectObjects()
But I didn't find any helpful methods, which do what I want. Could anybody give me a hint?