Questions about a few Drive Audit Activity Events

45 views
Skip to first unread message

Johnny Kovacs

unread,
Aug 13, 2023, 3:24:10 PM8/13/23
to Google Apps Script Community
Hi all, 

I found this documentation here which is very interesting and seems to be on the surface what I am looking for in regards to an un-started project of mine. It is unclear to me if I have interpreted these requests from that documentation correctly:

1. View - Does this request give me the ability to call it on a particular google file living in my google drive and see all the times it was viewed and by whom? Also, how is this different from Preview?
2. Sheets Importrange - Does this request give me the ability to call it on a particular google file living in my google drive and see all the times it was imported to a different file with the Importrange function? Also - how is this different from Connected Sheets Query?
3. Edit - Does this request give me the ability to call it on a particular google file living in my google drive and see all the times it was edited by anyone?
4. Copy - It seems pretty clear that this request gives me the ability to call it on a particular google file living in my google drive and see all the times it was copied by anyone, but how is this different from Source Copy?

Moreover, I guess my main question is whether or not these requests are able to be built into a google script that runs periodically, generating reports for me on the various google file links that I put in? I have just a regular google account, and this documentation is called "Admin SDK API" - does that mean that for me to utilize these API requests, I actually have to be an admin of a Google Workspace company account like my larger clients are?

I didn't see any way to request all the times that some content (and what content it was) of a google file was copied to someones clipboard (and who it was that copied it). Is that even possible?

Thank you all for the help!

DimuDesigns

unread,
Aug 14, 2023, 7:09:56 AM8/14/23
to Google Apps Script Community
On Sunday, August 13, 2023 at 3:24:10 PM UTC-4 Johnny Kovacs wrote:
I have just a regular google account, and this documentation is called "Admin SDK API" - does that mean that for me to utilize these API requests, I actually have to be an admin of a Google Workspace company account like my larger clients are?

You need a business-grade account to use AdminSDK APIs. Regular google accounts (consumer-grade) do not have access to the AdminSDK APIs. 

Johnny Kovacs

unread,
Aug 14, 2023, 2:05:00 PM8/14/23
to Google Apps Script Community
I appreciate the heads up on that, DimuDesigns. If I were to upgrade to a business-grade account, would I be able to complete this project as I have described above? Like, is my interpretation of the above requests accurate? And would there be a way to know if anyone copied content from within a document and who it was?
Reply all
Reply to author
Forward
0 new messages