Skip to content

TijlS/GWBulkEdit

Repository files navigation

Google Workspace Bulk Edit

Introduction

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)

  1. run git clone https://github.com/TijlS/GWBulkEdit.git to a folder
  2. Run npm install
  3. Rename config/config.sample.json to config/config.json
  4. Create a project on Google Cloud and enable the 'Admin SDK API' (https://developers.google.com/workspace/guides/create-project)
  5. Authorization credentials for a desktop application. (https://developers.google.com/workspace/guides/create-credentials#desktop-app) (HELP.md)
  6. Place the credentials.json in this folder
  7. Make sure the Google Workspace domain has API access enabled (https://support.google.com/a/answer/60757)
  8. Sign in with the Google Workspace administrator account

Instructions

  1. Make sure that the credentials.json is in the config/ folder
  2. Run npm run start
  3. The app will open a browser window for signing in with your Google account
  4. Log in using your Google Workspace Admin account
  5. Follow the instructions in the terminal

Commands

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

⚠️ This is not tested on real data

© Tijl Schipper 2022

About

Bulk edit for Google Workspace

Resources

License

Security policy

Stars

Watchers

Forks

Contributors