Hi Folks
Having an issue using GAM to remove link sharing permissions. Here's the setup:
An '
Examp...@example.com' has 3 files that are domain link shared:
1 x Anyone in the domain can view
1 x Anyone in the domain can comment
1 x Anyone in the domain can comment
First step... find all the user's domain linkshared files:
gam redirect csv DomainWithLink.csv user ExampleUser print filelist fields id,name,permissions pm type domain withlink true
Side note: The above command only works writing to .csv for some reason...
Using the following results in an error:
gam user ssmart print filelist fields id,name,permissions pm type domain withlink true todrive
Error:
Command: /home/ssmart/bin/gamadv-xtd3/gam user ExampleUser print filelist fields "id,name,permissions" pm type domain withlink true >>>todrive<<<
ERROR: Invalid argument
Help: Syntax in file /home/ssmart/bin/gamadv-xtd3/GamCommands.txt
Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wikiAnyway... so we have the .csv with all the domain link shared files now. (view, comment and edit). We now want to remove all the domain link shared ACLs. So I've used the following command:
gam csv DomainWithLink.csv gam user ExampleUser delete drivefileacl ~id domainwithlink
GAM Accepts the command and begins to run however for each attempt at removing the permission it results in the following error:
User: Examp...@example.com, Delete 1 Drive File/Folder ACL User: Examp...@example.com, Drive File/Folder ID: 1Jg-jHg93z-9UXue2Rv-8SEljOV1Y-1z17g2PU3g8MiU, Permission ID: 14446376714780686973i, Does not exist
GAM is looking for the permission ID '14446376714780686973i' on every file but not finding it. Checking the output from the CSV earlier it looks like the permission ID across all the files is actually '14950697747332164386k'
Think Google might have changed this value at some point and GAM is using the older one?
Anyway any insight on the error otherwise guidance on best practice moving forward if I'm doing this wrong would be appreciated.
Thanks in advance
Simon