Transfer ownership error

1,563 views
Skip to first unread message

JoelC

unread,
Dec 19, 2022, 10:47:16 AM12/19/22
to GAM for Google Workspace
I'm trying to change ownership on some files/folders which I've done successfully in the past using the add drivefileacl command but now I'm getting the following error:

Temporary error: sharingRateLimitExceeded - Rate limit exceeded. User message: "Sorry, you have exceeded your sharing quota.", Backing off: 60 seconds, Retry: 7/10

I'm using the command:

gam csv file.csv gam user <currentOwner> add drivefileacl user <newOwner> role Owner

Any ideas why this would be happening?

Thanks!
Joel Criger

Ullfig, Roberto Alfredo

unread,
Sep 27, 2023, 11:55:23 AM9/27/23
to GAM for Google Workspace
There appears to be a quota on the number of sharing changes that can be made over a period of time. Does anyone know what the rate limit is? I need to transfer 2600 files and it transferred about 1300 of them before this error started appearing.

---
Roberto Ullfig - rul...@uic.edu
Systems Administrator
Enterprise Applications & Services | Technology Solutions
University of Illinois - Chicago

From: google-ap...@googlegroups.com <google-ap...@googlegroups.com> on behalf of JoelC <jocr...@colorado.edu>
Sent: Monday, December 19, 2022 9:47 AM
To: GAM for Google Workspace <google-ap...@googlegroups.com>
Subject: [GAM] Transfer ownership error
 
--
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/22ca134d-cb33-49ed-bf15-bfc61ce1e5f5n%40googlegroups.com.

JoelC

unread,
Sep 27, 2023, 2:00:05 PM9/27/23
to GAM for Google Workspace
Ross figured out you can get around the limit by adding the new owner as a writer, then another command to update the permission to owner.  So something like this:

gam redirect stdout ./makewriter.txt multiprocess redirect stderr stdout csv files.csv gam user oldowner add drivefileacl ~id user newowner role writer

gam redirect stdout ./makeowner.txt multiprocess redirect stderr stdout csv files.csv gam user oldowner update drivefileacl ~id newowner role owner

Ullfig, Roberto Alfredo

unread,
Sep 28, 2023, 9:19:19 AM9/28/23
to GAM for Google Workspace
Ingenious! Thanks!

---
Roberto Ullfig - rul...@uic.edu
Systems Administrator
Enterprise Applications & Services | Technology Solutions
University of Illinois - Chicago

Sent: Wednesday, September 27, 2023 1:00 PM

To: GAM for Google Workspace <google-ap...@googlegroups.com>
Subject: Re: [GAM] Transfer ownership error
 
Reply all
Reply to author
Forward
0 new messages