This repository contains Python and JavaScript scripts designed to automate tasks related to managing Google Workspace, including shared drive management, user settings export, and license notifications.
Here’s a list of all the scripts in this repository along with their descriptions:
- gw_export_shared_drives_acls.py: Exports the Access Control List (ACL) settings for all shared drives in the Google Workspace environment.
- gw_export_users_with_forwarding.py: Exports a list of all users who have email forwarding enabled.
- gw_gg_settings_backup.py: Backs up the settings of Google Groups in the organization, including visibility and member settings.
- gw_groups_backup.py: Exports a backup of all Google Groups and their members in the domain.
- gw_license_notifier.js: Monitors and sends notifications related to Google Workspace licensing, notifying admins when licenses reach specific thresholds.
- Python 3.x (for Python scripts): Ensure that Python 3 is installed on your system.
- Google Apps Script API (for JavaScript scripts): Install the required libraries to interact with Google Workspace APIs.
- API Keys: You will need OAuth credentials and Google Workspace Admin API access tokens to authenticate API requests.
- Clone this repository:
git clone https://github.com/your-repo-name/google-workspace-automation-scripts.git
- Install the required dependencies:
pip install -r requirements.txt
- Set up your OAuth credentials or Google Workspace API tokens in environment variables:
export GOOGLE_API_TOKEN="your-token-here"
Run the desired script from the command line or integrate it into your Google Workspace workflows.
Example:
python3 gw_export_shared_drives_acls.py
Contributions are welcome! Feel free to submit issues or pull requests to improve the functionality or add new features.
This project is licensed under the MIT License.