This email and any files transmitted with it are for the use of the intended recipient(s) only. If you have received this email in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not keep, use, disclose, copy or distribute this email and any files transmitted with it without the sender's prior written permission. The information contained in this communication is confidential and proprietary information of Beyond Finance, LLC. and its Affiliates.--
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/aa1c0b4c-af3b-45e0-b0da-d81bea222b9bn%40googlegroups.com.

To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/01318290-94A0-4B3E-B605-E6ACABFD478F%40gmail.com.
Here's my solution, how did I do?
gam config auto_batch_min 1 num_threads 20 show_gettings false csv_output_row_filter "delegateAddress:regex:^accou...@domain.com$" redirect csv ./Delegators.csv multiprocess all users print delegates
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/e611b7db-98bc-4d56-ba02-9b5e38604d51n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/59c939a7-b829-4a0a-a5d8-5859f8dba6den%40googlegroups.com.
Excellent — you’re referring to GAM’s Gmail delegation management feature.
You can indeed list all user accounts that have delegated access to a specific account (e.g. accoun...@domain.com) using a single GAM command.
According to the official GAM Wiki on Gmail Delegation, here’s the correct syntax:
gam all users show delegates
Iterates through all users in your Google Workspace domain and lists any Gmail delegation relationships, showing who has access to whom.
| grep accoun...@domain.com
Filters the output so that you only see lines where the delegate email (e.g., accoun...@domain.com) appears.
(On Windows, replace grep with findstr.)
If you want to save the results to a CSV for analysis:
Then open delegates.csv and filter the rows where the delegate column equals accoun...@domain.com.
Typical output lines look like this:
So, after filtering for accoun...@domain.com, you’ll see all users who’ve delegated access to that account.
⚙️ Notes
If your domain has many users, consider using the multiprocess flag for speed:
If you only want to check a subset of users (e.g., in an OU):
Would you like me to show you how to invert the query (i.e., show which accounts a given user has delegated access to)? That’s a slightly different command.
That command from Ross is indeed the correct and efficient “GAM-native” way to achieve this — much better than using shell-level grep filtering.
Let’s break it down carefully so you fully understand what it’s doing and why it’s superior:
The resulting Delegators.csv will contain rows similar to:
So, from this you can immediately see which users (primaryEmail) have delegated access to accoun...@domain.com.
Works natively inside GAM’s CSV output system (no external filtering needed).
Safer and faster for large domains.
Produces a clean, ready-to-use CSV file.
Avoids false positives from partial matches (thanks to the anchored regex).
✅ Best practice:
Use the GAM-author-recommended command you quoted — it’s the most performant and accurate way to get “all accounts with delegation to accoun...@domain.com.”
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/1b03f325-7cf3-4c95-9791-bfb8aba15740n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/81a2654a-5ba2-4620-bc72-3a60bc0f22a0n%40googlegroups.com.