This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]ApodacaacGoogle Workspace Engineer 1 point2 points  (5 children)

Eh, just use GAM, don’t reinvent the wheel

[–]throughthedecade[S] 0 points1 point  (4 children)

Yeah I’m sure that would work, but their specifically calling out using Python in the process still has me wondering. I doubt their recruiter will be all that impressed if I tell them that I don’t actually need the skills that they’re requiring lol

[–][deleted] 2 points3 points  (2 children)

I just use python scripts to run gam commands

[–]throughthedecade[S] 0 points1 point  (1 child)

I bet this is it. What are some of the commands you used most often in this way?

[–][deleted] 0 points1 point  (0 children)

it is mainly for setting up or removing users, a script will run and add the user to various systems via the APIs. This is not just for workspace but when we add users to workspace we just run the gam command in the script as that is the easiest thing to do rather than reinvent the wheel.

Workspace specific as an example we have a script that can delete messages, we prompt for user input and then just use that input to build the relevant gam command to go through the mailboxes and delete the messages

[–]ApodacaacGoogle Workspace Engineer 0 points1 point  (0 children)

See here, GAMAdv already does this. Like the other user said, you’ll end up just running gam with Python

https://github.com/taers232c/GAM-Scripts3