Google Workspace audit logs
Login, OAuth token, admin, Drive and account activity from the Google Workspace Reports API, with actor, IP and event parameters.
Why it matters
Account takeover, OAuth consent abuse and Drive data theft in Google Workspace are reconstructed from these logs: suspicious login events, token authorizations and file downloads by user and IP.
How long it lasts
- Most activity logs are kept for about 6 months in the Admin console and Reports API; confirm the current periods for your edition.
- Export to BigQuery (Enterprise and Education editions) or a SIEM for longer retention and joins.
- Events can take hours to appear in the Reports API, so recent activity may be missing during a live response.
Get the data
GET https://admin.googleapis.com/admin/reports/v1/activity/users/[email protected]/applications/login?startTime=2026-01-01T00:00:00Z
# Other applications: token, admin, drive, user_accounts, gmail, samlFields that matter
id.applicationName
Which log: login, token, admin, drive, user_accounts and others.
events[].name
The event, for example suspicious_login, authorize or download.
events[].parameters
Event detail as name/value pairs: login_type, app_name, scope, doc_title and more.
actor.email
The user who performed the action.
ipAddress
Source IP of the action.
id.time
Event time (UTC).
Values to know
name
All values- login_successSign-in succeeded (login)A user signed in.Depends on context
- login_failureSign-in failed (login)A sign-in failed.Depends on context
- login_challengeSign-in challenge (login)The user was challenged during sign-in, for example by 2-Step Verification.Depends on context
- suspicious_loginSuspicious sign-in (login)Google flagged the sign-in as suspicious.High signal
- suspicious_login_less_secure_appSuspicious less secure app sign-in (login)A suspicious sign-in through a less secure app or protocol.High signal
- gov_attack_warningGovernment-backed attack warning (login)Google warned that a government-backed attacker may have targeted the account.High signal
- authorizeOAuth app authorized (token)A user granted an application access to their data.Suspicious
- revokeOAuth access revoked (token)An application's access was revoked.Depends on context
- 2sv_disable2-Step Verification disabled (user accounts)A user turned off 2-Step Verification.High signal
- 2sv_enroll2-Step Verification enrolled (user accounts)A user enrolled in 2-Step Verification.Depends on context
Traps
- OAuth grants in the token log keep working after a password reset. Revoke the app's access for the user as part of eviction.
- Drive download events can be very high volume. Filter by actor and time first, then by doc_title or doc_id.
- Reports API delays mean an empty result for the last few hours does not prove nothing happened.