print list of files that are "shared" to determine if a user has shared files or not

392 views
Skip to first unread message

jensm

unread,
Nov 14, 2017, 9:04:05 AM11/14/17
to GAM for G Suite
hello
i want to determine if a user has shared files or not.
This is to determine if i have to transfer drive ownership before account deletion.

so i tried something like this whith no luck:

gam user us...@domain.com show filelist query "privacy_level=shared"

or 

gam user us...@domain.com show filelist permissions fullquery "shared=True" todrive




Ross Scroggs

unread,
Nov 14, 2017, 9:22:05 AM11/14/17
to google-ap...@googlegroups.com
There is no query that will get you what you want, you have to list all of the files and then process that.
This command will give you all the data you need.

gam user us...@domain.com print filelist id title permissions shared > userfiles.csv

id and title identify the file
permissions will give you sharing details
shared indicates whether the file is shared

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/01a87ad2-6fe0-4f67-ac68-1ed64aad6e85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jensm

unread,
Nov 14, 2017, 9:58:22 AM11/14/17
to GAM for G Suite
thanks Ross


On Tuesday, November 14, 2017 at 3:22:05 PM UTC+1, Ross Scroggs wrote:
There is no query that will get you what you want, you have to list all of the files and then process that.
This command will give you all the data you need.
gam user us...@domain.com print filelist id title permissions shared > userfiles.csv

id and title identify the file
permissions will give you sharing details
shared indicates whether the file is shared

Ross

On Nov 14, 2017, at 6:04 AM, jensm <mal...@intosite.de> wrote:

hello
i want to determine if a user has shared files or not.
This is to determine if i have to transfer drive ownership before account deletion.

so i tried something like this whith no luck:

gam user us...@domain.com show filelist query "privacy_level=shared"

or 

gam user us...@domain.com show filelist permissions fullquery "shared=True" todrive





--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages