Thess scripts generate a read-only access audit report for all Shared Drives in your Google Workspace domain. They lists roles, access types, file counts, and external sharing status to help teams enforce RBAC policies.
- Create a Google Cloud project and service account with domain-wide delegation.
- Authorize the following scopes:
https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.readonlyhttps://www.googleapis.com/auth/drive.metadata.readonly
- Replace
ADMIN_EMAILandKEY_FILEin the script with your own values. - Run the script in Google Cloud Shell or any Python 3 environment.
The script prints a Markdown-formatted table suitable for pasting into Confluence or Google Docs.