Update profile photos by OU

803 views
Skip to first unread message

Lee Setford

unread,
Aug 4, 2015, 3:51:09 AM8/4/15
to Google Apps Manager
Hello. 

I wish to bulk assign profile photos to a specific OU. In the GAM documentation it gives an example for applying this action to all users. 

gam all users update photo c:\photos\#user#.jpg
I don't wish to do this, I would just like to bulk assign profile photos by OU e.g. staff. Is that achievable in 1 command or will I need to run explicit commands for each user?

Many Thanks in adance

Ross Scroggs

unread,
Aug 4, 2015, 10:02:06 AM8/4/15
to google-ap...@googlegroups.com
You select collections of users in the following ways:
All users: gam all users ...
All users directly in an OU: gam ou <PathOfOU> ...
All users in an OU and its sub OUs: gam ou_and_children <PathOfOU> ...
All users in a group: gam group <NameOgGroup> ...
A list of users: gam users <NameOfUser>,<NameOfUser> ...
A single user: gam user <NameOfUser> ...
A list of users based on a query: gam query <Query> ...
A list of users from a flat file: gam file <Filename> ...
  The flat file can be a CSV file, the users are taken from the last column, there should be no header

In your case: gam ou /Staff update photo c:\photos\#user#.jpg

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" 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 http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/6a7d9c3f-1ce2-4fbd-9e14-a80e13dfddc5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages