Greeting everyone,
Would anyone know why the below BASH script and CSV file would return the following error? I'm using a Mac v12.6.1. and GAM v6.50 - Python 3.11.2
$ ./batch.sh users.csv
ERROR: 404: Resource Not Found: userKey - userNotFound
CSV File:
$ cat users.csv
User One,u....@domain.com
BASH script:
$ cat batch.sh
#!/bin/bash
OLDIFS=$IFS
gam_command()
{
OAUTHFILE=~/bin/gam/oauth2.txt /bin/gam/gam info user "$email"
}
IFS=,
while read name email; do
gam_command $email
done < $1
IFS=$OLDIFS
I also know of the native GAM Bulk Operations command gam csv <csv-filename> gam <regular command>" but I want to use a bash script in my case.
Perhaps I'm missing something simple, but after some extensive searching the GAM Wiki, Google, and Google Groups I can't seem to find an answer.
... any ideas?
Thanks
Shawn
This message and all attachments are confidential. Any unauthorized review, use, disclosure, or distribution is prohibited. If you believe this message has been sent to you by mistake, please notify the sender by replying to this email, and delete the message and its attachments without disclosing them.