Remove suspended members from groups
Dry-run against gdev:
INFO:gsuitesync.sync.compare:Number of group members to delete: 6
INFO:gsuitesync.sync.compare:Configuration will modify 0.00% of users
INFO:gsuitesync.sync.compare:Configuration will modify 0.00% of groups
INFO:gsuitesync.sync.compare:Configuration will modify 0.66% of group members
INFO:gsuitesync.sync.update:Removing user "rp431@gdev.apps.cam.ac.uk" from group "101611@gdev.apps.cam.ac.uk"
INFO:gsuitesync.sync.update:Removing user "ap2249@gdev.apps.cam.ac.uk" from group "101611@gdev.apps.cam.ac.uk"
INFO:gsuitesync.sync.update:Removing user "wgd23@gdev.apps.cam.ac.uk" from group "101611@gdev.apps.cam.ac.uk"
INFO:gsuitesync.sync.update:Removing user "rp431@gdev.apps.cam.ac.uk" from group "uis@gdev.apps.cam.ac.uk"
INFO:gsuitesync.sync.update:Removing user "ap2249@gdev.apps.cam.ac.uk" from group "uis@gdev.apps.cam.ac.uk"
INFO:gsuitesync.sync.update:Removing user "wgd23@gdev.apps.cam.ac.uk" from group "uis@gdev.apps.cam.ac.uk"
Dry-run against production:
INFO:gsuitesync.sync.compare:Number of group members to insert: 8
INFO:gsuitesync.sync.compare:Number of group members to delete: 82431
INFO:gsuitesync.sync.compare:Configuration will modify 0.00% of users
INFO:gsuitesync.sync.compare:Configuration will modify 0.00% of groups
INFO:gsuitesync.sync.compare:Configuration will modify 16.50% of group members
ERROR:gsuitesync.sync.compare:Modification of 16.50% of group members is greater than limit of 5.00%. Aborting.
Obviously, going to need to run sync with limits increased to get the initial removal of 82k (!) members sorted.
Running another dry-run (without limits) to check that actual removals appear sane. Full log here. Random sampling - all users are cancelled in lookup
Closes: https://gitlab.developers.cam.ac.uk/uis/devops/gsuite/sync-deploy/-/issues/21 and #31 (closed)
Edited by Robin Goodall