Gmail delegation with staff terminations

68 views
Skip to first unread message

Kris Orrison

unread,
Apr 16, 2026, 12:02:50 PM (7 days ago) Apr 16
to GAM for Google Workspace
Hello All,
I was trying to search here how other school districts handle this...How are you handling gmail delegations for users that leave the district or even with job changes? We really want to remove all delegations for a user when they leave the district. Keeping in mind they could get rehired in a different capacity and still have that old delegation. 

Kris

Ⓚ② Kevin Melillo

unread,
Apr 16, 2026, 12:59:13 PM (7 days ago) Apr 16
to google-ap...@googlegroups.com
I don't handle this for a school district, but for our company.
When a user leaves email delegation is set up for the manager.  At the same time we add a date field to one of the Google custom fields.  This is the departed date.  We also move them to a departed OU.  Every month we run a report of users in the departed OU, and grab the email, departed date, and suspended status.  We remove anyone who is currently suspended (They are already done), then we get the departed date for any active accounts.  We sort, and for anyone whose departure date is over three months ago, we remove delegation, and suspend the account.



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/fd45a79b-708f-4a2c-930f-6e119815b207n%40googlegroups.com.

Kris Orrison

unread,
Apr 16, 2026, 1:17:14 PM (7 days ago) Apr 16
to GAM for Google Workspace
Interesting, thanks for the information Kevin.

Is there anyone here that automates the removal of delegations when a user is suspended? I was contemplating using this script or something similar, but was wondering if there is a cleaner way besides the perpetual export of an all delegate csv list to compare against. Wondering if Ross has any thoughts on this.

Kris

Raymond Val

unread,
Apr 20, 2026, 2:01:11 PM (2 days ago) Apr 20
to GAM for Google Workspace
We automate the removal of delegations when a staff or faculty member leaves the University.
I got the commands from the various scripts  that have been shared to this group:

First you dump the list of delegates into a file I called local_delegate_csv, call it whatever you want.
gam redirect csv "${local_delegate_csv}" user "${user}" print delegates

Then remove the list of delegates based upon the delegateAddress field in the csv file.
gam csv "${local_delegate_csv}" gam user "${user}" delete delegate "~delegateAddress"

-Ray
Reply all
Reply to author
Forward
0 new messages