gam csv testfile.csv gam user ~email update photo ~photofile
ERROR 403: not authorized to access this resource/api - forbidden
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/4c40f917-8fd1-4d9d-afcc-2c3e13c62912%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Doug,This works for me. Is this all of the output?gam csv testfile.csv gam user ~email update photo ~photofileERROR 403: not authorized to access this resource/api - forbiddenI would expect something like this:
c:\GamTest>gam csv testfile.csv gam user ~email update photo ~photofileUsing 3 processes...
Updating photo for test...@rdschool.org with c:\Photo\testuser1@rdschool.org.jpg (1/1)Updating photo for test...@bogus.com with c:\Photo\testuser9@rdschool.org.jpg (1/1)Updating photo for test...@rdschool.org with c:\Photo\testuser2@rdschool.org.jpg (1/1)
ERROR: 403: Not Authorized to access this resource/api - forbiddenc:\GamTest>
Now the question is, for whom did the error message apply? So, we serialize:
c:\GamTest>set GAM_THREADS=1c:\GamTest>gam csv testfile.csv gam user ~email update photo ~photofileUsing 1 processes...
Updating photo for test...@rdschool.org with c:\Photo\testuser1@rdschool.org.jpg (1/1)
Updating photo for test...@bogus.com with c:\Photo\test...@bogus.com.jpg (1/1)ERROR: 403: Not Authorized to access this resource/api - forbidden
Aha! The invalid user is revealed.By using my advanced Gam (https://github.com/taers232c/GAMADV-X) you don't have to serialize,you'll get an error message indicating the invalid user.
c:\GamTest>gam redirect stdout - multiprocess csv testfile.csv gam user ~email update photo ~photofileUsing 3 processes...User: test...@bogus.com, Service not applicable/Does not exist
User: test...@rdschool.org, Photo: c:\Photo\testuser1@rdschool.org.jpg, UpdatedUser: test...@rdschool.org, Photo: c:\Photo\testuser2@rdschool.org.jpg, Updatedc:\GamTest>
This "redirect stdout - multiprocess" tells advanced Gam to intelligently merge the output from all of the processes.Ross
On Sep 2, 2017, at 10:35 AM, Doug Roehm <roe...@gmail.com> wrote:
Trying to update pictures on our google domain
Not sure why this would happen but:
if I run the command
gam user joea...@domain.com update photo c:\googlepic\1234.jpg .... it works just fine
from the same computer if I run:
gam csv testfile.csv gam user ~email update photo ~photofile ... I get the following error:
ERROR 403: not authorized to access this resource/api - forbidden
the csv file has 2 fields:; one column named email and 1 column named photofile (ie joea...@domain.com, c:\photo\1315.jpg)
any ideas on why I get this message using a csv file but dont get it when using a command line for each user--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/4c40f917-8fd1-4d9d-afcc-2c3e13c62912%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--