Shared Drive folders marked as limited access - finding and removing

35 views
Skip to first unread message

Duncan Nash

unread,
Jun 2, 2026, 7:03:10 PM (5 days ago) Jun 2
to GAM for Google Workspace
Hi there,
in migrating data from MS365 SharePoint into Google Shared Drives, we have seen a number of folders within the shared drive being flagged / marked as restricted 'limited access' folders even though we did not choose to migrate any file/folder permissions from MS365 SharePoint.

Until we get a fix from the migration tool provider I was hoping to try and get GAM to fix the issue post migration by:

  • for each shared drive have GAM print the file/folder list, ideally filtering on those that have the 'limited access' flag enabled.
  • For each of the folders identified, have GAM remove the flag.
The main question, is there flag for the Limited Access' I can potentially target.

Current Set up
GAM v7.39.00 on Windows 11
 

Ross Scroggs

unread,
Jun 2, 2026, 8:01:22 PM (5 days ago) Jun 2
to google-ap...@googlegroups.com
First, upgrade, current version is 7.44.03

Find limited access folders; replace sdma...@domain.com with an actual Shared Drive manager.

gam config csv_output_row_filter "inheritedPermissionsDisabled:boolean:true" redirect csv ./LimitedAccessFolders.csv user sdma...@domain.com print filelist select shareddriveid <SharedDriveID> showmimetype gfolder fields id,name,inheritedpermissionsdisabled


Turn off the flag

gam config num_threads 10 redirect stdout ./DeleteLimitedAccess.txt multiprocess redirect stderr stdout csv LimitedAccessFolders.csv gam user "~Owner" update drivefile "~id" inheritedpermissionsdisabled false


Ross

----
Ross Scroggs



--
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 visit https://groups.google.com/d/msgid/google-apps-manager/b93fbed6-49e9-4dce-a1ec-12fcbbabd927n%40googlegroups.com.

Duncan Nash

unread,
Jun 2, 2026, 9:40:50 PM (5 days ago) Jun 2
to GAM for Google Workspace
Thanks Ross, much appreciated
Reply all
Reply to author
Forward
0 new messages