Obsolete
Status Update
Comments
bl...@google.com <bl...@google.com> #2
Metadata
- Summary: The Directory API's users.list method is inconsistently returning a nextPageToken when using the query parameter, and the starts with operator is not working for the orgDepartment field.
- Tags:
,directory-api ,users-list ,next-page-token ,query-parameter ,org-department starts-with-operator
Additional resources:
https://issuetracker.google.com/savedsearches/566232?hl=it https://developers.google.com/drive/api/reference/rest/v3/files/list https://developers.google.com/admin-sdk/directory/v1/.../manage-users https://developers.google.com/admin-sdk/directory/reference/rest/v1/.../list https://stackoverflow.com/.../want-admindirectory-users-list-more-then-500... https://stackoverflow.com/.../drive-list-files-doesnt-have-nextpagetoken-wh... https://stackoverflow.com/.../how-to-resolve-the-missing-information-probl...
Description
Description
Hi, I am trying to implement a POC where I want to implement polling mechanism to get the Google Drive events when a file is uploaded/created/edited and analyze the activities. I want to perform this activity every minute.
To achieve this I am using "activities.list" method(https://developers.google.com/admin-sdk/reports/reference/rest/v1/activities/list ) of Reports API from the Admin SDK. While getting the create/edit/upload events, I am experiencing a lag of 1-7 minutes. I have checked this by uploading 100 empty text files every minute and calling the activities.list API every minute. On average the delay is ~5 minutes.
Impact
The POC which I am trying to implement needs to analyze the create/edit/upload event activities within 1-2 minutes of their actual occurrence, hence I am implementing a polling solution by calling activities.list method every minute. Ideally I would like to use webhook implementation instead of polling.
Could you please answer/help with the following queries,
Is this lag in getting the create/edit/upload events for Drive expected? Because I have implemented similar polling solution for getting message created/edited events for Google Chat and I am not experiencing any major lag there(getting the chat events in less than a minute).
Is there a workaround to reduce this lag in activities.list method?
I have also checked the Workspace Events API which provides webhook implementation for Chat and Meet, but there is no support for Drive as of yet. Please correct me if I am wrong.
I have checked the "activities.watch" method(https://developers.google.com/admin-sdk/reports/reference/rest/v1/activities/watch ) which helps to create push notifications. This seems like the closest solution for webhook implementation. Before trying this out I would like to know if this approach is correct? And does this has any lag similar to activities.list? If yes what is the expected lag?
Any help is appreciated, thanks.