Fixed
Status Update
Comments
de...@lafurniturestore.com <de...@lafurniturestore.com> #2
PLEASE KEEP THIS FEATURE!
Many developers rely on hidden sheets to filter out sheets that they don't need rendered to PDF. Please DO NOT remove it.
Many developers rely on hidden sheets to filter out sheets that they don't need rendered to PDF. Please DO NOT remove it.
ns...@slu.edu <ns...@slu.edu> #3
I'm marking this issue as obsolete because it hasn't received many votes and it's been a while since it was reported. If you still believe that this issue is important, please open a new issue. Thank you!
cc...@google.com <cc...@google.com> #4
The Apps Script method to retrieve all users in a large domain like yours requires a long time to process as it has to repeatedly request a page of users (100 users) and then merge all results. Unfortunately there's no way for a single request to be much faster than this and don't hit timeouts.
A possible solution would be for you to send multiple single-page requests and perform pagination yourself by following the rel="next" links:
https://developers.google.com/google-apps/provisioning/#retrieving_a_list_of_100_users
However, the UserManager service doesn't expose the method that requests a single page of users, so you'll have to implement it yourself using UrlFetch. I understand this is not ideal, perhaps a future release of the service will provide this method.
A possible solution would be for you to send multiple single-page requests and perform pagination yourself by following the rel="next" links:
However, the UserManager service doesn't expose the method that requests a single page of users, so you'll have to implement it yourself using UrlFetch. I understand this is not ideal, perhaps a future release of the service will provide this method.
ko...@gmail.com <ko...@gmail.com> #5
I've converted this into a feature request for pagination in the UserManager service.
ko...@gmail.com <ko...@gmail.com> #6
This is now possible using the Admin SDK Directory advanced service:
https://developers.google.com/apps-script/advanced/admin-sdk-directory#list_all_users
The sample linked to shows how to page through large result sets.
The sample linked to shows how to page through large result sets.
Description
1. Primary Apps Domain is
2. running var users = UserManager.getAllUsers(); against our test domain
3. running var users = UserManager.getAllUsers(); against our primary domain (greater than 100K users) produces the following error:
Start Function Error Message Trigger End
4/19/12 1:18 AM myFunction Exceeded maximum execution time time-based 4/19/12 1:35 AM
On which browser & OS?
Chrome / Firefox