Suspended user deletion
Enabled gsuitesync tool to:
- delete suspended users who have never logged in
- undelete (restore) deleted users instead of creating a duplicate when adding a user
Note:
- to delete users the Lookup Sync Role had all user API permission enabled (only delete wasn't previously)
- however, to undelete users a superadmin is required, so:
- the service account needs Domain-Delegation enabled
- the client ID needs the scopes added in Google Workspace's Domain Delegation management
- a superadmin account needs to exist and be impersonated (google_domain.admin_user in configuration file)
Based off !19 (merged) (will rebase this if needed when that is merged)
Closes: #29 (closed)