Hi,
I need to remove space permissions for some specific groups. The current working code indicates that the removePermission() method in the SpacePermissionManager class is deprecated, and I'd like to switch to SpacePermissionManagerInternal as recommended.
Part of the current code, working correctly:
permissions.each {
spacePermissionManager.removePermission(it)
}Part of the new code, not working:
def context = SpacePermissionContext.createDefault()
ComponentLocator.getComponent(SpacePermissionManagerInternal).removeAllPermissionsForGroup(oldGroup, context)
The new code generates an entry in the logs:
More than one instance of com.atlassian.confluence.internal.security.SpacePermissionManagerInternal found but none of them has key spacePermissionManagerInternal
There's probably something wrong with our Confluence instance, but what? Any ideas?
Regards