Update Users Profile Images

216 views
Skip to first unread message

Tamoor Sohail

unread,
Apr 27, 2023, 2:47:02 PM4/27/23
to GAM for Google Workspace
Hi,

I saw an archived post about using GAM to update multiple users profile images to the same image. 

Is this still possible to do? And, would this work if some users have an image already and others do not?

Thank you in advance.

Kind Regards,

Tamoor

Ross Scroggs

unread,
Apr 27, 2023, 3:20:25 PM4/27/23
to google-ap...@googlegroups.com
Tamoor,

You can certainly use the same image for multiple users; if you update a user's photo, the new photo replaces the old photo.

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/70a2fe09-fcb9-4fee-9856-969c6e6eeed8n%40googlegroups.com.


--

Tamoor Sohail

unread,
Apr 27, 2023, 3:23:24 PM4/27/23
to GAM for Google Workspace
Hi Ross,

Thanks for your reply.

I meant is there a quick way to do this via GAM rather than individually going through each user via the Google Workspace admin page? I would like to update our student users to use the same profile image.

Kind Regards,

Tamoor

Ross Scroggs

unread,
Apr 27, 2023, 3:27:58 PM4/27/23
to google-ap...@googlegroups.com
Tamoor,


gam ou /Students update photo student.jpg

Use ou_and_children /Student is there are sub OUs under /Student.

Ross



--

Tamoor Sohail

unread,
Apr 27, 2023, 5:35:44 PM4/27/23
to GAM for Google Workspace
Hi Ross,

Thank you. That seems to have worked.

I just had two quick follow up questions.
  • Is GAM able to interact/update suspended accounts?
  • During the process of running the update command on several OU's, I received an ERROR: 400: Invalid Input: photoData - invalid message. Although no users were skipped, do you know why this might be?

Kind Regards,

Tamoor

GAM - Update Photos.png

Ross Scroggs

unread,
Apr 27, 2023, 6:40:47 PM4/27/23
to google-ap...@googlegroups.com
Tamor,

  • Is GAM able to interact/update suspended accounts? Yes
What is: gam version

Ross



--

Tamoor Sohail

unread,
Apr 27, 2023, 6:46:35 PM4/27/23
to GAM for Google Workspace
Hi Ross,

For the bulk upload of the profile image, our suspended accounts were not updated with this new image, only active accounts were.

I am currently running GAM version 6.31.

Kind Regards,

Tamoor

Ross Scroggs

unread,
Apr 27, 2023, 6:53:19 PM4/27/23
to google-ap...@googlegroups.com
Tamoor,

6.31 is very old, 6.58 is current.

Send me a Meet/Zoom invitation.

Ross



--

Ross Scroggs

unread,
Apr 27, 2023, 6:58:43 PM4/27/23
to google-ap...@googlegroups.com
The photo was updated, Google doesn't show the photo for suspended users.

Ross
--

Tamoor Sohail

unread,
Apr 28, 2023, 3:19:16 AM4/28/23
to GAM for Google Workspace
Hi Ross,

Thanks for letting me know.

I will update to the latest version and see if the issue appears again when I run the update command.

By the way, is it possible to run the update command on a whole OU, but specify not to update the profile image of users who have already added their own one.

Kind Regards,

Tamoor

Ross Scroggs

unread,
Apr 28, 2023, 10:39:56 AM4/28/23
to google-ap...@googlegroups.com
Tamoor,

Get list of users with no photo set

gam config csv_output_row_filter "thumbnailPhotoUrl:regex:^$" redirect csv ./NoPhoto.csv ou /Students print users photourl

gam csv NoPhoto.csv gam user "~primaryEmail" update photo student.jpg


Ross


Tamoor Sohail

unread,
May 1, 2023, 8:12:21 AM5/1/23
to GAM for Google Workspace
Hi Ross,

Thank you for providing those commands. I really appreciate your help with this.

Kind Regards,

Tamoor
Reply all
Reply to author
Forward
0 new messages