Skip to content

Takes a list of return delimited email addresses and moves them to a different target domain.

License

Notifications You must be signed in to change notification settings

RussellSageCollege/GoogleSubDomainManager

Repository files navigation

Takes a list of return delimited email addresses and moves them to a different target domain.

Google Setup

  1. Create a new "Super Admin" account in google.
  2. Create new project in the API console.
  3. Create a new service account with the following settingd enabled.
    • Enable Google Apps Damian-wide Delegation
    • Furnish a new private key
  4. Open the JSON key file with a text editor and copy the client_id value.
  5. Return to the Admin Console and navigate to "Security" > "Show More" > "Advanced Settings" > "Manage API client access"
  6. Paste the client_id value that you copied in the "Client Name" box.
  7. Paste the following "API Scopes" in the box labeled "One or More API Scopes".
    • https://www.googleapis.com/auth/admin.directory.user
    • https://www.googleapis.com/auth/admin.directory.user.alias
  8. Click Authorize.

Installation

# Clone project
git clone https://github.com/TheSageColleges/GoogleSubDomainManager.git
cd GoogleSubDomainManager
# Checkout to the latest tag
git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
# Install python requirements
sudo pip install -r requirements.txt
# Create a new configuration
cp config.example.yml config.yml
# edit the config
vi config.yml

Make the script executable:

chmod +x domain-manager

Updating

cd /path/to/GoogleSubDomainManager
# Checkout to the latest tag
git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
# Install python requirements
sudo pip install -r requirements.txt

Then compare the differences from config.example.yml to your customized config.yml. Add any new options from config.example.yml to your config.yml.

About

Takes a list of return delimited email addresses and moves them to a different target domain.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages