This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**** | |
* | |
* removeDefaultOwnerPermissions.groovy | |
* | |
* In Grouper 2.4.0, when new groups and stems are created, the creator is no longer added as an admin | |
* if they are in the wheel group. The explicit access is unnecessary since users in the wheel group automatically | |
* have admin access even without the permission. This script performs a cleanup of these permissions, looping through | |
* a defined list of subjects (mixed ids/identifiers), and removing the admin access from the groups and stems. | |
* This cleanup could remove many thousands of excess memberships from the database, possibly improving performance. | |
* |