Google Drive Activity Service
The Google Drive Activity service allows you to use the
Google Drive Activity API in Apps Script. This API
allows users programmatic access to retrieve information about their Google Drive activity.
Reference
For detailed information on this service, see the
reference documentation for the Google
Drive Activity API. Like all advanced services in Apps Script, the Google Drive Activity service uses the same objects, methods, and parameters as the
public API. For more information, see How method signatures are determined.
To report issues and find other support, see the
Google Drive Activity support guide.
Sample code
The sample code below uses version 2 of
the API.
Get activity in Google Drive
This sample gets recent activity in a user's Google Drive and logs information about the time, actor, action, and target of each activity.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-19 UTC.
[null,null,["Last updated 2024-12-19 UTC."],[[["The Google Drive Activity service enables programmatic access to Google Drive activity data using the Google Drive Activity API within Apps Script."],["This advanced service requires enabling before use and mirrors the functionality of the public API, using the same objects, methods, and parameters."],["Comprehensive reference documentation, support resources, and sample code are available to guide developers in utilizing this service effectively."],["The provided sample code demonstrates retrieving and logging recent Drive activity, including time, actor, action, and target information, using version 2 of the API."]]],[]]