Francis Pegus <fpe...@newvisions.org>: Jan 26 07:13AM -0800
I will be using the following commands to remove external sharing for
thousands of files. Wondering is there a way to use the acls_external1-20-26.csv
that the first command creates to reverse the permission removals in bulk
using GAM commands?
gam config num_threads 20 redirect csv ./acls_external1-20-26.csv
multiprocess csv doc-ids.csv gam user "~Owner" print filelist select
"~fileid" norecursion fields id,name,mimetype,basicpermissions pm notdomain
mydomain.org em pm type anyone em pmm or pmfilter oneitemperrow
gam config num_threads 20 redirect stdout ./deleteaclsexternal.txt
multiprocess redirect stderr stdout csv ./acls_external.csv gam user
"~Owner" delete drivefileacl "~id" "id:~~permission.id~~"
enforceexpansiveaccess false
Ross Scroggs <ross.s...@gmail.com>: Jan 26 08:26AM -0800
Restore anyone shares
gam config num_threads 20 csv_inout_row_filter
"permission.type:text=anyone" redirect stdout
./restore_anyone_aclsexternal.txt multiprocess redirect stderr stdout csv
./acls_external1-20-26.csv gam user "~Owner" add drivefileacl "~id"
"~permission.type" role "~permission.role" allowfilediscovery
"~permission.allowFileDiscovery"
Restore domain shares
gam config num_threads 20 csv_inout_row_filter
"permission.type:text=domain" redirect stdout
./restore_domain_aclsexternal.txt multiprocess redirect stderr stdout csv
./acls_external1-20-26.csv gam user "~Owner" add drivefileacl "~id"
"~permission.type" "~permission.domain" role "~permission.role"
allowfilediscovery "~permission.allowFileDiscovery"
Restore group shares
gam config num_threads 20 csv_inout_row_filter "permission.type:text=group"
redirect stdout ./restore_group_aclsexternal.txt multiprocess redirect
stderr stdout csv ./acls_external1-20-26.csv gam user "~Owner" add
drivefileacl "~id" "~permission.type" "~permission.emailAddress" role
"~permission.role"
Restore user shares
gam config num_threads 20 csv_inout_row_filter "permission.type:text=user"
redirect stdout ./restore_user_aclsexternal.txt multiprocess redirect
stderr stdout csv ./acls_external1-20-26.csv gam user "~Owner" add
drivefileacl "~id" "~permission.type" "~permission.emailAddress" role
"~permission.role"
Ross
--
Ross Scroggs
ross.s...@gmail.com
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to google-apps-man...@googlegroups.com.