Exporting shared drive members

94 views
Skip to first unread message

Syed Irfan

unread,
Sep 9, 2026, 10:09:48 PMSep 9
to GAM for Google Workspace
Hello Team , 

I have 5000 Plus shared drive sites but now i want to export 300 sites members and owners , i have the shared drive id, is there a way to get only those sites and members ?

Ross Scroggs

unread,
Sep 9, 2026, 10:59:17 PMSep 9
to google-ap...@googlegroups.com
See: https://github.com/GAM-team/GAM/wiki/Shared-Drives#display-shared-drive-access-for-specific-shared-drives
Let's suppose you have a CSV files SharedDrives.csv with a column labelled id.

gam redirect csv ./SharedDriveMembers.csv multiprocess redirect stderr - multiprocess csv SharedDrives.csv gam print drivefileacls "~id" oneitemperrow showtitles


Ross
----
Ross Scroggs



On Sep 9, 2026, at 7:09 PM, 'Syed Irfan' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

Hello Team , 

I have 5000 Plus shared drive sites but now i want to export 300 sites members and owners , i have the shared drive id, is there a way to get only those sites and members ?
Security alert: Verify emails are from brio.co.in or briotech.com. Beware of lookalike domains. Report any suspicious communication to ab...@briotech.com

--
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/e6ccf700-6a2a-4182-91dc-d25ce69e0e48n%40googlegroups.com.

Syed Irfan

unread,
Sep 10, 2026, 12:55:06 AMSep 10
to google-ap...@googlegroups.com
Hi Ross,

Thank you for your help; the previous command worked perfectly and successfully generated the permission details.

I have a follow-up question. I am trying to update permissions using GAM, but I’ve encountered an issue with a renamed user. For example, a user was previously as...@abc.com, but they have been renamed to as...@xyz.com (with as...@abc.com remaining as an alias). When I run the command:

gam csv "pw.csv" gam add drivefileacl ~SharedDriveid user ~Email role manager

The system still recognizes the old email (as...@abc.com). Is there a way to ensure GAM uses the new primary email address (as...@xyz.com) instead of the alias?
  

     
  •  Syed Irfan
  •  
 Lead Digital Workplace
  •  syed....@briotech.com | +91 8099772746
  •  www.briotech.com |
  •  
View our company profile


Ross Scroggs

unread,
Sep 10, 2026, 10:21:42 AMSep 10
to google-ap...@googlegroups.com
as...@abc.com and as...@xyz.com refer to the same user. Was as...@abc.com  already a member of the shared drive?
Is so, adding as...@xyz.com will have no effect. If you delete as...@abc.com from the drive and then add as...@xyz.com
you should ge what you want.

Ross
----
Ross Scroggs


Reply all
Reply to author
Forward
0 new messages