Change group permissions for multiple folders/files

116 views
Skip to first unread message

Kayata Yanase

unread,
Apr 24, 2023, 6:18:54 AM4/24/23
to GAM for Google Workspace
Hi all,

I want to change the folder and file permissions of Google Shared Drive from Group A to Group B.
I followed the steps in the Python script below, but it's taking a long time following "5: Get the ACLs of all team drive files".
There are over 10,000 shared drives. The number of folders and files is too large to obtain.
https://github.com/taers232c/GAM-Scripts3/blob/master/GetSharedWithGroupTeamDriveACLs.py

Is there a way to change the group permissions set on folders/files in a short time?
For example, is it possible to implement the following method?
1. A GAM command that allows you to get a list of folders and files to which group A has permissions, instead of getting ACLs from folders and files to check for group permissions.
2. GAM command to replace group permissions

Thank you
Kayata Yanase

Ian Crew

unread,
Apr 24, 2023, 9:53:31 AM4/24/23
to google-ap...@googlegroups.com
Thinking a little creatively:

One thing you possibly could do is to remove everyone from group a, and then add group b as the sole member of group a. 

Maybe that’d get you where you want to be?

Cheers,

Ian



--
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/9fd547cf-3e30-40da-85f9-eda36fb082a6n%40googlegroups.com.
--
Ian Crew

Solutions Architect
Productivity & Collaboration Services
Information Services and Technology

Ross Scroggs

unread,
Apr 24, 2023, 10:25:16 AM4/24/23
to google-ap...@googlegroups.com
Is it the case that individual files and folders on the Shared Drives have had an ACL referencing Group A explicitly added to them
as opposed to the case where Group A is a member of the Shared Drive?

The first case is not common but is certainly possible. If this is true, then you'll have to break the 10,000 Shared Drives into sections
and process the sections.

In the second case you simply delete the Group A ACL from the Shared Drive and add the Group B ACL to the Shared Drive.

Ross



On Mon, Apr 24, 2023 at 3:18 AM Kayata Yanase <kayata...@gmail.com> wrote:
--
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/9fd547cf-3e30-40da-85f9-eda36fb082a6n%40googlegroups.com.


--

Kayata Yanase

unread,
Apr 24, 2023, 10:34:07 PM4/24/23
to GAM for Google Workspace
Ian and Ross
Thank you for your reply.


> One thing you possibly could do is to remove everyone from group a, and then add group b as the sole member of group a.
Group A will be deleted, so I want to migrate the permissions set for folders and files.


> Is it the case that individual files and folders on the Shared Drives have had an ACL referencing Group A explicitly added to them as opposed to the case where Group A is a member of the Shared Drive?
Yes, There are folders/files with permissions set without inheritance.


・Group A and Group B are already in operation
・I want to delete group A
・Group A and Group B have different folder and file permissions
・I want to set equivalent permissions in Group B to folders and files that have permissions set in Group A.

Is there any other way than splitting the shared drive to handle it?

Kind regards


2023年4月24日月曜日 23:25:16 UTC+9 Ross Scroggs:

omi

unread,
Sep 4, 2023, 5:33:41 AM9/4/23
to GAM for Google Workspace
Hi, Katyata

I am facing a similar problem.
The difference is that the target is not only the shared drive, but also the my drives.

Ias this thread been resolved?

Thanks,
2023年4月25日火曜日 11:34:07 UTC+9 Kayata Yanase:
Reply all
Reply to author
Forward
0 new messages