List sub-folders of Shared Drives and users access levels

228 views
Skip to first unread message

Dawit Tariku

unread,
Sep 27, 2023, 1:06:24 PM9/27/23
to GAM for Google Workspace
I'm trying to list the sub-folders of a Shared Drive, and to list all the users that have been given access to those sub-folders. 

As a next step, my goal is to remove or modify their permission levels as needed to meet compliance requirements. 

So far, I have this command that lists the Shared Drives and the access levels:

gam print drivefileacls <drive_id> oneitemperrow todrive

I just want to modify it so it reads the sub-folders and the individuals that have been given access to them. 

Thanks in advance!

Dawit Tariku

unread,
Oct 1, 2023, 9:21:41 PM10/1/23
to GAM for Google Workspace
Bumping this up for visibility. 

Thanks! 

Maj Marshall Giguere

unread,
Oct 1, 2023, 11:16:59 PM10/1/23
to google-ap...@googlegroups.com
https://github.com/taers232c/GAMADV-XTD3/wiki/Users-Drive-Files-Display#display-file-list

gam redirect csv ./DriveNameFileList.csv user <driveOr...@example.com> print filelist select teamdrive "Drive Name" fullpath fields id,name,mimetype,permissions oneitemperrow

The above will give you the following information for all of the files and folders on a named shared drive.

Owner,id,name,mimeType,paths,path.0,permission.deleted,permission.displayName,
permission.domain,permission.emailAddress,permission.id,permission.permissionDetails,
permission.permissionDetails.0.inherited,permission.permissionDetails.0.inheritedFrom,permission.permissionDetails.0.permissionType,permission.permissionDetails.0.role,permission.photoLink,permission.role,permission.type



NOTICE: CrowdStreet, Inc. (“CrowdStreet”) offers investment opportunities and financial services on its website. CrowdStreet offers broker dealer services through CrowdStreet Capital LLC (“CrowdStreet Capital”),  a registered broker dealer, Member FINRA/SIPC. Information on all FINRA registered representatives can be found on FINRA’s BrokerCheck. Visit CrowdStreet.com for our Terms of Use, Privacy Policy and CrowdStreet Capital’s Form CRS.

Advisory services are offered through CrowdStreet Advisors, LLC (“CrowdStreet Advisors”), a wholly-owned subsidiary of CrowdStreet and a federally registered investment adviser. CrowdStreet Advisors provides investment advisory services exclusively to privately managed accounts and private funds and does not otherwise provide investment advisory services to the CrowdStreet Marketplace. Visit CrowdStreet.com for a copy of CrowdStreet Advisors’ ADV and Form CRS.

This communication is for informational purposes only and should not be regarded as a recommendation, an offer to sell securities, or a solicitation of an offer to buy any investment products, financial products, or services. Investment opportunities available through CrowdStreet are speculative and involve substantial risk. You should not invest unless you can sustain the risk of loss of capital, including the risk of total loss of capital. All investors should consider their individual factors in consultation with a professional advisor of their choosing when deciding if an investment is appropriate. Private placements are illiquid investments, in that they cannot be easily sold or exchanged for cash, and are intended for investors who do not need a liquid investment.

--
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/fb7cf6b6-9a1e-4639-b90e-54dac3ed9fcan%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages