https://drive.google.com/file/d/1xpzUV5tIn1rbPaLsfeUTTKcGR_AUgKe0/view
- Set up Google organization
- payments
- domain
- structure
- Set up the local environment
- Bash - run an example to check bash works
- Python - ensure it is installed
- Understand Service Accounts and scope for resources
- API Documentation
- https://console.cloud.google.com/
- Google Workspaces → Enable Admin SDK API → IAM & Admin - create service account → create and download keys to be used in script, copy client id
- https://admin.google.com/ → Security → Access and Data Control → API Controls → Domain-wide Delegation
- add new API client(client ID from service account) and scopes needed
- Bash Script used as an entry point
- load CSV into the same folder
- run bash script to output parse_data.txt, python scripts will utilize this
- Check parse_data.txt is created
- Python Scripts needed to access Google APIs
- createUsers.py run to create users from data
- updateAdminUsers.py run to update a user to super admin
- createGroups.py run to create groups from data
- allow 1-2 minutes after group creation before adding users to groups
- addUserToGroup.py run to add created users to their respective groups
- Logging and error handling
- script.log - all successful calls and errors logged here for debugging and auditing
- where useful, you will see print statements in the command line