Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8878891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:49:20+00:00 2026-06-14T19:49:20+00:00

I’m using version 3 (yes I know there is google drive API) and I’m

  • 0

I’m using version 3 (yes I know there is google drive API) and I’m trying to batch ACL requests as per here.

I’ve run a test in the google playground (as well as in my own code) to add 150 users as “writer” (role) to a document.

The xml looks something like:

<feed xmlns="http://www.w3.org/2005/Atom"
    xmlns:gAcl="http://schemas.google.com/acl/2007"
    xmlns:batch="http://schemas.google.com/gdata/batch">
  <category scheme="http://schemas.google.com/g/2005#kind"
      term="http://schemas.google.com/acl/2007#accessRule"/>
  <entry>
<id>https://docs.google.com/feeds/default/private/full/document:1111/acl/user:owner@example.com</id>
    <batch:operation type="query"/>
  </entry>
<entry><batch:id>1</batch:id><batch:operation type="insert"/><gAcl:role value="writer"/><gAcl:scope type="user" value="test1@example.com"/></entry>
<entry><batch:id>2</batch:id><batch:operation type="insert"/><gAcl:role value="writer"/><gAcl:scope type="user" value="test2@example.com"/></entry>
....
<entry><batch:id>150</batch:id><batch:operation type="insert"/><gAcl:role value="writer"/><gAcl:scope type="user" value="test150@example.com"/></entry>
</feed>

Processing this takes > 60 seconds and then the response comes back with a 500 error. It does seem to add all 150 but it takes a while. If I was to directly add 150 email addresses in the text area right in the google sharing dialog it takes a shorter period (8-10).

Am I not using the API correctly? Does the API not mimic the google sharing UI interface?

UPDATE: In looking at this further it looks like the batch api is really just saving you time “across the wire” but on the server side (google) it’s just sending in the requests one at a time. I can see that if I directly add the 150 email addresses in the text area right in the google sharing dialog it takes 8-10 seconds, then if I add 151 it take 8-10 seconds. This tells me that google is validating the new entry against the existing list. With direct online interaction it’s taking all 150 at once; with batch it’s taking one at a time and validating after each one- which comes out to 5+ minutes total time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:49:21+00:00Added an answer on June 14, 2026 at 7:49 pm

    If you are making these changes to a large number of files and the list of users to add is at least sometimes the same, you should consider putting the users into a Google Group. Then you can simply add the google group to the file ACL significantly cutting down on the number of API calls and time taken.

    So if 2 files need to be shared with 150 users, using your current method is going to take the equivalent of 150 API calls (even though the network traffic is batched). This results in about 300 API calls.

    If 2 files are shared using the group method, sharing the 1st file will take 152 API calls (1 API call to provision the group, 150 API calls to add the users as members and 1 API call to share the file with the group). But sharing the 2nd file will only take 1 API call. This results in only 153 API calls.

    You could also lump your files into collections and share the collection instead of individual files to cut down on the number of API calls needed.

    The Group Provisioning API call is documented at:
    https://developers.google.com/google-apps/provisioning/#creating_a_group

    The Add Member to Group API call is documented at:
    https://developers.google.com/google-apps/provisioning/#adding_a_member_to_a_group

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a simple page using Google Maps API 3. My first. One marker
I know there's a lot of other questions out there that deal with this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.