Advanced GAM solution
Get files explicitly shared with user
gam redirect csv ./TSUserSharedFiles.csv user us...@domain.com print filelist fields id,name,owners.emailaddress showownedby others
Delete ACLs for files shared by another user; ~owners.0.emailAddress is actual owner, ~Owner is target user
gam redirect stdout ./DeleteExplicitACLs.csv multiprocess redirect stderr stdout csv ./TSUserSharedFiles.csv gam user "~owners.0.emailAddress" delete drivefileacl "~id" "~Owner"
In the second part, are you talking about files that the user has access to as a member of a Shared Drive?
Ross
--
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/CAGF_jTCgHZFnM6Jbo09osb9F3vkV1m6mN59erZUa%2B0Zu75LR_Q%40mail.gmail.com.
Advanced GAM solution
Get Shared Drive which user can access
gam redirect csv ./UserSharedDrives.csv user us...@domain.com print shareddrives fields id,name
Delete user's Shared Drive access
gam redirect stdout ./DeleteSharedDriveAccess.csv multiprocess redirect stderr stdout csv ./UserSharedDrives.csv gam delete drivefileacl "~id" "~User"
Ross
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAJkvRS9rr_E4uG1%2BFpWiW5oDASZwLPqYXmpqPayLZON9gvP5jQ%40mail.gmail.com.
Ross gave you that in the first response.
--
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/d6faebff-2c67-417d-99df-0586d0a830een%40googlegroups.com.
Ross gave you that in the first response.
--
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/d6faebff-2c67-417d-99df-0586d0a830een%40googlegroups.com.