This package can be used to bulk-update users of a Google Workspace.
Usefull links:
⚠️ This needs to be used inside it's own directory (eg.~/GWBulkEdit)⚠️
Setup (see HELP.md)
- run
git clone https://github.com/TijlS/GWBulkEdit.gitto a folder - Run
npm install - Rename
config/config.sample.jsontoconfig/config.json - Create a project on Google Cloud and enable the 'Admin SDK API' (https://developers.google.com/workspace/guides/create-project)
- Authorization credentials for a desktop application. (https://developers.google.com/workspace/guides/create-credentials#desktop-app) (HELP.md)
- Place the credentials.json in this folder
- Make sure the Google Workspace domain has API access enabled (https://support.google.com/a/answer/60757)
- Sign in with the Google Workspace administrator account
- Make sure that the credentials.json is in the
config/folder - Run
npm run start - The app will open a browser window for signing in with your Google account
- Log in using your Google Workspace Admin account
- Follow the instructions in the terminal
| Command | Description |
|---|---|
npm run start |
Run the program and sign the users out after an update |
npm run start:signout |
Sign the users out after their account has been updated |
npm run start:dev |
Run the program, but don't interact with the Google API |
npm run dev |
Run the program with nodemon. Used for testing |
© Tijl Schipper 2022