I am pulling a list of email addresses from a 3rd party system into Powershell using the RESTApi. This is a group inside of the 3rd party system and I want to keep a Google Group in sync with that group.
Since I can already get these email addresses into powershell as an object is there a way i can simply pass that object into the "gam update group <group email> sync members" command?
I would much rather keep this inside of the script as opposed to exporting the list as a CSV and then redirecting the csv back into the gam command.
Any ideas would be much appreciated!
Thanks