Delegation question

103 views
Skip to first unread message

Rajeswari S

unread,
Nov 21, 2022, 12:34:54 PM11/21/22
to GAM for Google Workspace
Hi All, 

I have a query for delegation print command. 

In our organisation my coworker is left and I want to get details of shared mailbox delegation accounts of resigned user have. 

Can anyone help me with Gam command. 

Thanks, 

Ross Scroggs

unread,
Nov 21, 2022, 12:41:41 PM11/21/22
to google-ap...@googlegroups.com
Rajeswari,

To see the delegates of a user do:
gam user us...@domain.com show delegates

To see users that have delegated to us...@domain.com you'll need a script:

Ross
----
Ross Scroggs



--
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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/62823b4f-d0ab-4487-92c3-d266eec7d62en%40googlegroups.com.

Rajeswari S

unread,
Nov 21, 2022, 1:10:10 PM11/21/22
to google-ap...@googlegroups.com
Hi Ross, 

Thanks for your reply

If I use show delegates, it will return who are all having delegate access of user account. 

But I want like, what are delegated accounts(shared mailboxes access) that user have. 

Ross Scroggs

unread,
Nov 21, 2022, 1:11:59 PM11/21/22
to google-ap...@googlegroups.com
That's what the script I referenced does.

Ross
----
Ross Scroggs


Matt Colwell

unread,
Nov 21, 2022, 2:33:12 PM11/21/22
to GAM for Google Workspace
The script that Ross cites is cool.  But it's also easy enough to run something like this:

gam all users print delegates > OUTPUT_FILE.csv    (this is also one of the first commands in that script)

...and then use a text editor to search for the account you're looking for.  If you want to get fancy you can grep the output file and even direct the output into another file.

I recently had to do this for an employee who changed departments in our organization.

Unfortunately there isn't an easy way to show who has delegated access to what.  Instead you need to list who has access to individual accounts and examine the output.

James SEYMOUR

unread,
Nov 24, 2022, 10:35:26 PM11/24/22
to GAM for Google Workspace
My preference is to output to Google Sheets, using the todrive option, gam all users print delegates todrive. This then gives you a spreadsheet you can easily manipulate, filter for the user to see what they have access to.

If you want to view the info differently, you can use combinations of UNIQUE, FILTER & TRANSPOSE to create lists of used with access to the delegated account. There is an example here https://sites.google.com/jis.edu.bn/gam-commands/services/meet#h.p_ZA145mTrCJ7Y that looks at Google Meet sessions and users, but the theory is the same.

James



Reply all
Reply to author
Forward
0 new messages