- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- ApplicationName
- Activity
- Try it!
Retrieves a list of activities for a specific customer's account and application such as the Admin console application or the Google Drive application. For more information, see the guides for administrator and Google Drive activity reports. For more information about the activity report's parameters, see the activity parameters reference guides.
HTTP request
GET https://admin.googleapis.com/admin/reports/v1/activity/users/{userKey or all}/applications/{applicationName}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
user |
Represents the profile ID or the user email for which the data should be filtered. Can be |
application |
Application name for which the events are to be retrieved. |
Query parameters
Parameters | |
---|---|
actor |
The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity is being reported. This IP address may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. This parameter supports both IPv4 and IPv6 address versions. |
customer |
The unique ID of the customer to retrieve data for. |
end |
Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts:
endTime is not specified, the report returns all activities from the startTime until the current time or the most recent 180 days if the startTime is more than 180 days in the past.
|
event |
The name of the event being queried by the API. Each |
filters |
The These event parameters are associated with a specific In the following Drive activity examples, the returned list consists of all
A
Note: The API doesn't accept multiple values of the same parameter. If a parameter is supplied more than once in the API request, the API only accepts the last value of that parameter. In addition, if an invalid parameter is supplied in the API request, the API ignores that parameter and returns the response corresponding to the remaining valid parameters. If no parameters are requested, all parameters are returned. |
max |
Determines how many activity records are shown on each response page. For example, if the request sets |
org |
ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational unit. |
page |
The token to specify next page. A report with multiple pages has a |
start |
Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from |
group |
Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will contain activities for only those users that are a part of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456" |
Request body
The request body must be empty.
Response body
JSON template for a collection of activities.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"kind": string,
"etag": string,
"items": [
{
object ( |
Fields | |
---|---|
kind |
The type of API resource. For an activity report, the value is |
etag |
ETag of the resource. |
items[] |
Each activity record in the response. |
next |
Token for retrieving the follow-on next page of the report. The |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/admin.reports.audit.readonly
For more information, see the Authorization guide.
ApplicationName
Enums | |
---|---|
access_transparency |
The Google Workspace Access Transparency activity reports return information about different types of Access Transparency activity events. |
admin |
The Admin console application's activity reports return account information about different types of administrator activity events. |
calendar |
The Google Calendar application's activity reports return information about various Calendar activity events. |
chat |
The Chat activity reports return information about various Chat activity events. |
drive |
The Google Drive application's activity reports return information about various Google Drive activity events. The Drive activity report is only available for Google Workspace Business and Enterprise customers. |
gcp |
The Google Cloud Platform application's activity reports return information about various GCP activity events. |
gplus |
The Google+ application's activity reports return information about various Google+ activity events. |
groups |
The Google Groups application's activity reports return information about various Groups activity events. |
groups_enterprise |
The Enterprise Groups activity reports return information about various Enterprise group activity events. |
jamboard |
The Jamboard activity reports return information about various Jamboard activity events. |
login |
The Login application's activity reports return account information about different types of Login activity events. |
meet |
The Meet Audit activity report returns information about different types of Meet Audit activity events. |
mobile |
The Device Audit activity report returns information about different types of Device Audit activity events. |
rules |
The Rules activity report returns information about different types of Rules activity events. |
saml |
The SAML activity report returns information about different types of SAML activity events. |
token |
The Token application's activity reports return account information about different types of Token activity events. |
user_accounts |
The User Accounts application's activity reports return account information about different types of User Accounts activity events. |
context_aware_access |
The Context-aware access activity reports return information about users' access denied events due to Context-aware access rules. |
chrome |
The Chrome activity reports return information about Chrome browser and Chrome OS events. |
data_studio |
The Data Studio activity reports return information about various types of Data Studio activity events. |
keep |
The Keep application's activity reports return information about various Google Keep activity events. The Keep activity report is only available for Google Workspace Business and Enterprise customers. |
vault |
The Vault activity reports return information about various types of Vault activity events. |
Activity
JSON template for the activity resource.
JSON representation |
---|
{ "kind": string, "etag": string, "ownerDomain": string, "ipAddress": string, "events": [ { "type": string, "name": string, "parameters": [ { "messageValue": { "parameter": [ { object ( |
Fields | |
---|---|
kind |
The type of API resource. For an activity report, the value is |
etag |
ETag of the entry. |
owner |
This is the domain that is affected by the report's event. For example domain of Admin console or the Drive application's document owner. |
ip |
IP address of the user doing the action. This is the Internet Protocol (IP) address of the user when logging into Google Workspace, which may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. The API supports IPv4 and IPv6. |
events[] |
Activity events in the report. |
events[]. |
Type of event. The Google Workspace service or feature that an administrator changes is identified in the |
events[]. |
Name of the event. This is the specific name of the activity reported by the API. And each
For more information about eventName properties, see the list of event names for various applications above in applicationName .
|
events[]. |
Parameter value pairs for various applications. For more information about |
events[]. |
Nested parameter value pairs associated with this parameter. Complex value type for a parameter are returned as a list of parameter values. For example, the address parameter may have a value as |
events[]. |
Parameter values |
events[]. |
The name of the parameter. |
events[]. |
String value of the parameter. |
events[]. |
String values of the parameter. |
events[]. |
Integer value of the parameter. |
events[]. |
Integer values of the parameter. |
events[]. |
Boolean value of the parameter. |
events[]. |
activities.list of |
events[]. |
Parameter values |
id |
Unique identifier for each activity record. |
id. |
Time of occurrence of the activity. This is in UNIX epoch time in seconds. |
id. |
Unique qualifier if multiple events have the same time. |
id. |
Application name to which the event belongs. For possible values see the list of applications above in |
id. |
The unique identifier for a Google Workspace account. |
actor |
User doing the action. |
actor. |
The unique Google Workspace profile ID of the actor. This value might be absent if the actor is not a Google Workspace user, or may be the number 105250506097979753968 which acts as a placeholder ID. |
actor. |
The primary email address of the actor. May be absent if there is no email address associated with the actor. |
actor. |
The type of actor. |
actor. |
Only present when |