Bulk upload user photos

3,110 views
Skip to first unread message

Justin W

unread,
Oct 29, 2014, 12:59:56 PM10/29/14
to google-ap...@googlegroups.com
I'm hoping to get some help here..I do see a couple other people asking similar questions, but none of them have answers either - so I'm hoping someone with knowledge of this will be able to help this time..

I'm looking for a way to import user photos in bulk. The user accounts already exist. 

I've got GAM installed and configured, but can't seem to get find the syntax to make this work.

Ideally, it'd cover all users regardless of group/OU

I've got the photos in a single local directory, and have currently labeled them with the user's email/login  and .jpg - so for example - smi...@mydomain.com.jpg

I see a few references to a solution that makes it sound easy, but that method doesn't work (as noted by some of the other posts here from people looking for help).  
That method says it's as simple as :

 Assuming all your photos are named us...@domain.com.jpg and stored in c:\photos you can run a GAM command like:
gam all users update photo c:\photos\#user#.jpg
GAM will subsitute #user# with the user name for each user

However, from the result of that, it appears that the variable #user# isn't working properly on my system.

Is there a correct equivalent variable? 


 

Justin W

unread,
Oct 31, 2014, 3:22:02 PM10/31/14
to google-ap...@googlegroups.com
A more simple way to attempt to fix this issue would be to just ask:

What is the syntax for the variable for usernames? 

Is there a list of variables somewhere? I'm not seeing it in the wiki

+KimNilsson

unread,
Nov 1, 2014, 9:57:30 AM11/1/14
to google-ap...@googlegroups.com
If it works to do it manually for a single user, then just do it in a batch.
One line for each user. That can also be pulled from a csv. So just export all your usernames and add the link to the photo as the second variable.
Message has been deleted

Brian Gray

unread,
Nov 1, 2014, 8:37:44 PM11/1/14
to google-ap...@googlegroups.com

You can use the GAM CSV file command format to upload photos for multiple users.  In my Drive folder http://goo.gl/HJPsQm  I have added an example of using a CSV file for uploading photos to the end of the file named "Apply a command to many users"

Samuel Chueh

unread,
Jun 24, 2022, 2:11:29 AM6/24/22
to GAM for Google Workspace
A little late to the party here but I'm hoping to use GAM to individually change the profile picture of everyone in my domain. The Drive link posted by Brian Gray on November 2, 2014 is empty. Does anyone have an example I can work off of?

Any help is much appreciated.

James SEYMOUR

unread,
Jun 24, 2022, 2:37:42 AM6/24/22
to GAM for Google Workspace
Hi Samuel,

The command example is in the Apply a command to many users Doc.

Cheers

Trần Thông

unread,
Apr 14, 2023, 12:54:51 AM4/14/23
to GAM for Google Workspace
He bro, are u solved your problem??? i also want to upload bulk image for user. but same owner, not working. do u have any insuction??

Vào lúc 13:11:29 UTC+7 ngày Thứ Sáu, 24 tháng 6, 2022, Samuel Chueh đã viết:
Reply all
Reply to author
Forward
0 new messages