Monitor & restrict data access Stay organized with collections Save and categorize content based on your preferences.
Google Workspace users grant access to levels of data, known as scopes, whenthey run scripts or use apps like add-ons or web apps. This page explains howyou can monitor or revoke the scopes that users grant access to within theirGoogle Workspace account.
Monitor OAuth grant events by scope
To view events where users grant access to a specific scope or scopes, take thefollowing steps:
In the Google Admin console, go to Menu>Security>Security center>Investigation tool.
ClickData Source and selectOAuth log events.
ClickAdd condition>Attributeand selectEvent.
ClickEvent and selectGrant.
ClickAdd condition>Attributeand selectScope.
ForScope, enter the scope you want to monitor. For a list of scopes,refer toOAuth 2.0 Scopes for Google APIs.
ClickSearch. A list of grant events displays for the scopes youspecified.
Revoke OAuth grants
Important: After you revoke access to a scope, users can re-grant access. Werecommend that you set up alerts for scopes that you don't want users to grantaccess to so that you can revoke access as needed. Refer toCreate an alertfor OAuth grants.
To revoke access to a scope, follow the steps forMonitor OAuth grant events byscope, then select the events you want to revoke and clickRevoke accesstokens for users.
Create an alert for OAuth grants
To receive an alert when someone grants access to a specific scope, follow thesteps forMonitor OAuth grant events by scope,then take the following steps:
- At the top of the search, clickCreate activity rule.
- ForRule name, enter a name for the alert.
- ClickNext: View Conditions. The conditions automatically populatefrom the search parameters. You can edit them if needed, then clickNext: Add Actions.
- InThreshold 1, select a time frame and threshold for the rule and checktheSend to alert center box.
- ClickAdd email recipients and enter the email addresses that shouldreceive alerts. ClickDone.
- ClickNext: Review.
- Review the details and clickCreate Rule
For more information, refer toCreate and manage activity rules.
Restrict access to high-risk OAuth scopes
You can restrict access to most Google Workspace services. For Gmailand Google Drive, you can restrict access to high-risk OAuthscopes while allowing users to give access to OAuth scopes that aren'tclassified as high-risk. If an app requests access to a restricted high-riskOAuth scope, and you haven't specifically trusted the app, users can’t authorizeit.
To restrict access to high-risk OAuth scopes, refer toRestrict or unrestrictGoogle services.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-04 UTC.