prompt password reset for a specific OU

281 views
Skip to first unread message

Tommy Hills

unread,
Feb 8, 2017, 12:11:34 PM2/8/17
to GAM for G Suite
my understanding is that this will prompt all users to change their password the next time they login:

gam all users update user changepassword on

but I would like to know how to specify this to just a specific OU - for example an OU called "Highschool" and it's children

 

Jay Lee

unread,
Feb 8, 2017, 12:15:05 PM2/8/17
to GAM for G Suite

Try:

gam print users query "orgUnitPath='/HighSchool'"

Which should print out only account in or under High School OU. If that's working you can do the force password change with:

gam print users query "orgUnitPath='/HighSchool'" | gam csv - gam update user ~primaryEmail changepassword on

Which will pull that same list and then force the password change attribute for those users.

Jay


--
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/cb245cd8-617d-44ba-9e06-60530feb71f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Jay

Edward Crist

unread,
Feb 8, 2017, 12:17:26 PM2/8/17
to google-ap...@googlegroups.com
I use this command

gam print users query "orgUnitPath='/2019'" | gam csv - gam update user ~primaryEmail password Password9911 changepassword on

Of course, replace 2019 and Password9911 with your specifics



Edward Crist
Technology Manager
City Charter High School
__________________________
201 Stanwix St.
Pittsburgh, PA 15222

"Humility is not thinking less of yourself, but thinking of yourself less" - C. S. Lewis

The optimist believes we live in the best possible world....the pessimist fears this is true.


--
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.

Ross Scroggs

unread,
Feb 8, 2017, 12:29:13 PM2/8/17
to google-ap...@googlegroups.com
This would also work: gam ou_and_children /HighSchool update user changepassword on

This would run single threaded so the time may matter if there are many email addresses.

Ross

On Wed, Feb 8, 2017 at 9:16 AM, Edward Crist <cr...@cityhigh.org> wrote:
I use this command

gam print users query "orgUnitPath='/2019'" | gam csv - gam update user ~primaryEmail password Password9911 changepassword on

Of course, replace 2019 and Password9911 with your specifics



Edward Crist
Technology Manager
City Charter High School
__________________________
201 Stanwix St.
Pittsburgh, PA 15222

"Humility is not thinking less of yourself, but thinking of yourself less" - C. S. Lewis

The optimist believes we live in the best possible world....the pessimist fears this is true.

On Wed, Feb 8, 2017 at 11:43 AM, Tommy Hills <thi...@lelandschool.com> wrote:
my understanding is that this will prompt all users to change their password the next time they login:

gam all users update user changepassword on

but I would like to know how to specify this to just a specific OU - for example an OU called "Highschool" and it's children

 

--
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+unsubscribe...@googlegroups.com.

--
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.

For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages