Suspended users drive file shares

893 views
Skip to first unread message

Raymond Rogers

unread,
Mar 10, 2022, 2:21:31 PM3/10/22
to GAM for Google Workspace
Is there a command to find suspended users shared files that have been accessed say in the last 6 months. We are looking to delete old accounts but fear there are documents the suspended users still own that are shared and being used.

Ross Scroggs

unread,
Mar 10, 2022, 3:56:39 PM3/10/22
to google-ap...@googlegroups.com
Raymond,

Contact me directly with a Meet/Zoom invitation.

On Mar 10, 2022, at 11:21 AM, Raymond Rogers <raymond...@gilbertschools.net> wrote:

Is there a command to find suspended users shared files that have been accessed say in the last 6 months. We are looking to delete old accounts but fear there are documents the suspended users still own that are shared and being used. 
Under Arizona Law, email to and from public entities may be public records subject to release upon request. This message (including any attachments) contains information intended for a specific individual and purpose. If you are not the intended recipient, please notify the sender immediately by either reply email or by telephone and delete this message from your system.



-- 
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/411d1714-c292-40da-b661-560cecee0801n%40googlegroups.com.

Darrin Tams

unread,
Mar 18, 2022, 3:33:57 PM3/18/22
to GAM for Google Workspace
Our organization is looking for options for this scenario too. I would be happy to hear what may have been discussed.

Darrin

Mike McLoughlin

unread,
Mar 28, 2022, 5:55:25 AM3/28/22
to GAM for Google Workspace
Hi Raymond

I would be interested in any solutions found.

Thanks

- Mike 

Ross Scroggs

unread,
Mar 28, 2022, 1:36:05 PM3/28/22
to google-ap...@googlegroups.com
Mike,

Generate a list of files shared by suspended users; this will have one row per user per shared file
gam config auto_batch_min 1 csv_output_header_drop_filter "'.*photoLink'" redirect csv ./SuspendedUserFiles.csv multiprocess all users_susp print filelist pm not role owner em fields id,name,permissions

To process the ACLs on the files, you need one row per user per shared file per ACL
Edit it:
# Specify specific permission role value(s) ('owner', 'organizer', 'fileOrganizer', 'writer', 'commenter', 'reader'), e.g., ROLE_LIST = ['writer', 'commenter']
# The list should be empty if you want all roles, e.g, ROLE_LIST = []
ROLE_LIST = ['writer', 'commenter', 'reader']

python MakeOneItemPerRowACLs.py ./SuspendedUserFiles.csv ./SuspendedUserFileACLs.csv

Contatc me directly for additional help,

Ross

Reply all
Reply to author
Forward
0 new messages