From 700bdfe8f8d6b73d9b7d7ca821b66911f32c4865 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Tue, 25 Nov 2025 11:20:49 -0800 Subject: [PATCH] Update Users-Shared-Drives.md --- wiki/Users-Shared-Drives.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/wiki/Users-Shared-Drives.md b/wiki/Users-Shared-Drives.md index 54a900e3..16d447c0 100644 --- a/wiki/Users-Shared-Drives.md +++ b/wiki/Users-Shared-Drives.md @@ -15,6 +15,7 @@ - [Display Shared Drive Counts](#display-shared-drive-counts) - [Display Shared Drive Organizers](#display-shared-drive-organizers) - [Manage Shared Drive access](#manage-shared-drive-access) +- [Transfer Shared Drive access](#transfer-shared-drive-access) - [Display Shared Drive access](#display-shared-drive-access) - [Display Shared Drive access for specific Shared Drives](#display-shared-drive-access-for-specific-shared-drives) - [Display Shared Drive access for selected Shared Drives](#display-shared-drive-access-for-selected-shared-drives) @@ -516,6 +517,38 @@ When adding permissions from JSON data, permissions with `deleted` true are neve When deleting permissions from JSON data, permissions with role `owner` true are never processed. +## Transfer Shared Drive access + +These commands are used to transfer ACLs from one Shared Drive to another. +* `copy` - Copy all ACLs from the source Shared Drive to the target Shared Drive. The role of an existing ACL in the target Shared Drive will never be reduced. +* `sync` - Add/delete/update ACLs in the target Shared Drive to match those in the source Shared Drive. +``` +gam copy shareddriveacls to + [showpermissionsmessages []] + [excludepermissionsfromdomains|includepermissionsfromdomains ] + (mappermissionsemail endcsv] + (mappermissionsdomain )* + [adminaccess|asadmin] +gam sync shareddriveacls with + [showpermissionsmessages []] + [excludepermissionsfromdomains|includepermissionsfromdomains ] + (mappermissionsemail endcsv] + (mappermissionsdomain )* + [adminaccess|asadmin] +``` +When `excludepermissionsfromdomains ` is specified, any ACL that references a domain in `` will not be copied. + +When `includepermissionsfromdomains ` is specified, only ACLs that reference a domain in `` will be copied. + +When `mappermissionsemail ` is specifed, an ACL that references the first `` will be modified +to reference the second `` when copied; the original ACL is not modified. The option can be repeated if multiple email addresses are to be mapped. + +Bulk permission email address mapping can be specified with `mappermissionsemailfile endcsv`. +`` must include these columns: `sourceEmail` and `destinationEmail`. + +When `mappermissionsdomain ` is specifed, any ACL that references the first `` will be modified +to reference the second `` when copied; the original ACL is not modified. The option can be repeated if multiple domain names are to be mapped. + ## Display Shared Drive access These commands are used to display the ACLs on Shared Drives themselves, not the files/folders on the Shared Drives.