Drive Audit Activity Events

This document lists the events and parameters for various types of Drive Audit activity events. These events can be retrieved by calling Activities.list() with applicationName=drive.

Access

Events of this type are returned with type=access.

Add to folder

Document add to folder.

Event details
Event name add_to_folder
Parameters
destination_folder_id

string

Destination folder Id.

destination_folder_title

string

Destination folder title.

doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=add_to_folder&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} added an item to {destination_folder_title}

Create

Document create.

Event details
Event name create
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=create&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} created an item

Delete

Document delete.

Event details
Event name delete
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=delete&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} deleted an item

Download

Document download.

Event details
Event name download
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=download&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} downloaded an item

Edit

Document edit.

Event details
Event name edit
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=edit&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} edited an item

Move

Document move.

Event details
Event name move
Parameters
destination_folder_id

string

Destination folder Id.

destination_folder_title

string

Destination folder title.

doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
source_folder_id

string

Source folder Id.

source_folder_title

string

Source folder title.

team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=move&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} moved an item from {source_folder_title} to {destination_folder_title}

Preview

Document preview.

Event details
Event name preview
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=preview&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} previewed an item

Print

Document print.

Event details
Event name print
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=print&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} printed an item

Remove from folder

Document remove from folder.

Event details
Event name remove_from_folder
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
source_folder_id

string

Source folder Id.

source_folder_title

string

Source folder title.

team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=remove_from_folder&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} removed an item from {source_folder_title}

Rename

Document rename.

Event details
Event name rename
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
new_value

string

New Value.

old_value

string

Old Value.

originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=rename&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} renamed {old_value} to {new_value}

Restore

Document restore.

Event details
Event name untrash
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=untrash&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} restored an item

Trash

Document trash.

Event details
Event name trash
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=trash&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} trashed an item

Upload

Document upload.

Event details
Event name upload
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=upload&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} uploaded an item

View

Document view.

Event details
Event name view
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=view&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} viewed an item

ACL changed

ACL Changed. Events of this type are returned with type=acl_change.

Editor Settings Change

Editor Settings Changed.

Event details
Event name change_acl_editors
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
new_value

string

New Value. Possible values:

  • owner
    The person modifying the access on the file is the Owner of the file.
  • writers
    The person modifying the access on the file is a Writer (Editor) of the file.
old_value

string

Old Value. Possible values:

  • owner
    The person modifying the access on the file is the Owner of the file.
  • writers
    The person modifying the access on the file is a Writer (Editor) of the file.
old_visibility

string

Old Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
visibility_change

string

Change in overall visibility of the file. Possible values:

  • external
    Overall visibility changed from internal to external.
  • internal
    Overall visibility changed from external to internal.
  • none
    No change in overall visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=change_acl_editors&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} changed editor settings from {old_value} to {new_value}

Link Sharing Access Type Change

Change in link sharing access type of document.

Event details
Event name change_document_access_scope
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
new_value

string

New Value. Possible values:

  • can_comment
    Can comment.
  • can_edit
    Can edit.
  • can_view
    Can view.
  • can_view_published
    Can view published.
  • none
    Scope none.
  • organizer
    Organizer.
  • owner
    Is a owner.
old_value

string

Old Value. Possible values:

  • can_comment
    Can comment.
  • can_edit
    Can edit.
  • can_view
    Can view.
  • can_view_published
    Can view published.
  • none
    Scope none.
  • organizer
    Organizer.
  • owner
    Is a owner.
old_visibility

string

Old Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
target_domain

string

Optional. The domain for which the acccess scope was changed. This can also be the alias all to indicate the access scope was changed for all domains that have visibility for this document.

team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
visibility_change

string

Change in overall visibility of the file. Possible values:

  • external
    Overall visibility changed from internal to external.
  • internal
    Overall visibility changed from external to internal.
  • none
    No change in overall visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=change_document_access_scope&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} changed link sharing access type from {old_value} to {new_value} for {target_domain}

Link Sharing visibility change

Change in link sharing visibility of document.

Event details
Event name change_document_visibility
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
new_value

string

New Value. Possible values:

  • people_with_link
    Anyone with the link on the web can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access, apart from possible sharing with individual users/groups outside the domain.
  • private
    Document link not exposed, apart from possible sharing with individual users/groups (even outside the domain).
  • public_in_the_domain
    Anyone within the domain can access, apart from possible sharing with individual users/groups outside the domain.
  • public_on_the_web
    Public on the web.
old_value

string

Old Value. Possible values:

  • people_with_link
    Anyone with the link on the web can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access, apart from possible sharing with individual users/groups outside the domain.
  • private
    Document link not exposed, apart from possible sharing with individual users/groups (even outside the domain).
  • public_in_the_domain
    Anyone within the domain can access, apart from possible sharing with individual users/groups outside the domain.
  • public_on_the_web
    Public on the web.
old_visibility

string

Old Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
target_domain

string

Optional. The domain for which the acccess scope was changed. This can also be the alias all to indicate the access scope was changed for all domains that have visibility for this document.

team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
visibility_change

string

Change in overall visibility of the file. Possible values:

  • external
    Overall visibility changed from internal to external.
  • internal
    Overall visibility changed from external to internal.
  • none
    No change in overall visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=change_document_visibility&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} changed link sharing visibility from {old_value} to {new_value} for {target_domain}

Team Drive Membership Change

Event details
Event name team_drive_membership_change
Parameters
added_role

string

Added membership role of a user/group in a Team Drive. Possible values:

  • commenter
    Team Drive role Commenter.
  • content_manager
    Team Drive role Content manager.
  • editor
    Team Drive role Editor.
  • none
    No role in Team Drive.
  • organizer
    Team Drive role Organizer.
  • viewer
    Team Drive role Viewer.
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
membership_change_type

string

Type of change in Team Drive membership of a user/group. Possible values:

  • add_to_team_drive
    Addition to a Team Drive.
  • change_roles
    Change of a member's role in a Team Drive.
  • re_share
    Re-share of a member's role in a Team Drive.
  • remove_from_team_drive
    Removal from a Team Drive.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
removed_role

string

Removed membership role of a user/group in a Team Drive. Possible values:

  • commenter
    Team Drive role Commenter.
  • content_manager
    Team Drive role Content manager.
  • editor
    Team Drive role Editor.
  • none
    No role in Team Drive.
  • organizer
    Team Drive role Organizer.
  • viewer
    Team Drive role Viewer.
target

string

Target User or Group.

team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=team_drive_membership_change&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} made a membership change of type {membership_change_type} for {target} by removing role(s) {removed_role} and adding role(s) {added_role}

Team Drive Settings Change

Event details
Event name team_drive_settings_change
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
new_settings_state

string

New state of Team Drive settings. Possible values:

  • none
    Team Drive settings change value None.
  • restricted
    Team Drive settings change value Restricted.
  • unrestricted
    Team Drive settings change value Unrestricted.
old_settings_state

string

Old state of Team Drive settings. Possible values:

  • none
    Team Drive settings change value None.
  • restricted
    Team Drive settings change value Restricted.
  • unrestricted
    Team Drive settings change value Unrestricted.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
target

string

Target User or Group.

team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

team_drive_settings_change_type

string

Type of change in Team Drive settings. Possible values:

  • cross_domain_sharing
    A Team Drive settings change that restricts or unrestricts the ability for the contents within the Team Drive to be shared outside the domain.
  • direct_acl
    A Team Drive settings change that restricts or unrestricts the ability to add users directly onto a file when they're not a member.
  • download
    A Team Drive settings change that restricts or unrestricts a user's ability to download files from the Team Drive.
  • drive_fs
    A Team Drive settings change that restricts or unrestricts access to Drive File Stream.
visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=team_drive_settings_change&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} changed {team_drive_settings_change_type} setting from {old_settings_state} to {new_settings_state}

User Sharing Permissions Change

User Sharing Permissions Changed.

Event details
Event name change_user_access
Parameters
doc_id

string

Document Id.

doc_title

string

Document title.

doc_type

string

Document type. Possible values:

  • document
    Doc type document.
  • drawing
    Doc type drawing.
  • folder
    Doc type folder.
  • form
    Doc type form.
  • html
    Doc type HTML.
  • jpeg
    Doc type JPEG.
  • mp4
    Doc type MP4.
  • mpeg
    Doc type MPEG.
  • msexcel
    Doc type MS Excel.
  • mspowerpoint
    Doc type MS Powerpoint.
  • msword
    Doc type MS Word.
  • pdf
    Doc type PDF.
  • png
    Doc type PNG.
  • presentation
    Doc type presentation.
  • quicktime
    Doc type Quicktime.
  • sites
    Doc type is Google Sites.
  • spreadsheet
    Doc type spreadsheet.
  • team_drive
    Doc type is a Team Drive.
  • txt
    Doc type txt.
  • unknown
    Doc type unknown.
new_value

string

New Value. Possible values:

  • can_comment
    Can comment.
  • can_edit
    Can edit.
  • can_view
    Can view.
  • can_view_published
    Can view published.
  • none
    Scope none.
  • organizer
    Organizer.
  • owner
    Is a owner.
old_value

string

Old Value. Possible values:

  • can_comment
    Can comment.
  • can_edit
    Can edit.
  • can_view
    Can view.
  • can_view_published
    Can view published.
  • none
    Scope none.
  • organizer
    Organizer.
  • owner
    Is a owner.
old_visibility

string

Old Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
originating_app_id

string

The Google Cloud Project ID of the application that performed the action. Use the Drive REST API to retrieve the app title.

owner

string

Email address of the document's owner. For items contained in a Team Drive, the owner is the name of the Team Drive.

owner_is_team_drive

boolean

Boolean flag denoting whether owner is a Team Drive.

primary_event

boolean

Whether this is a primary event. A single user action in Drive may generate several events. Of these, one is the primary event (primary_event=true) and the rest are side effects of that event (primary_event=false). For example, when a user creates a document, several events are generated, with only the create event having primary_event=true. All other events from this action have primary_event=false. Possible values:

  • false
    Boolean value false.
  • true
    Boolean value true.
target_user

string

The email address of the user or group whose access permissions were changed, or the name of the domain for which access permissions were changed.

team_drive_id

string

The unique identifier of the Team Drive. Only populated for for events relating to a Team Drive or item contained inside a Team Drive.

visibility

string

Visibility of Target File. Possible values:

  • people_with_link
    Anyone with the link can access.
  • people_within_domain_with_link
    Anyone with the link within the domain can access.
  • private
    Private.
  • public_in_the_domain
    Anyone within the domain can access.
  • public_on_the_web
    Public on the web.
  • shared_externally
    Shared with explicit users/groups external to the domain.
  • shared_internally
    Shared with explicit users/groups internal to the domain.
  • unknown
    Unknown visibility.
visibility_change

string

Change in overall visibility of the file. Possible values:

  • external
    Overall visibility changed from internal to external.
  • internal
    Overall visibility changed from external to internal.
  • none
    No change in overall visibility.
Sample request
GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?eventName=change_user_access&maxResults=10&access_token=YOUR_ACCESS_TOKEN
Admin Console message format
{actor} changed sharing permissions for {target_user} from {old_value} to {new_value}

Send feedback about...

Reports API
Reports API
Need help? Visit our support page.