User Password?

98 views
Skip to first unread message

Jason Komendat

unread,
Aug 5, 2022, 4:30:53 PM8/5/22
to GAM for Google Workspace
Is there a way to force all users in an OU and sub Ous to have t change their password at next login?

Ross Scroggs

unread,
Aug 5, 2022, 4:33:55 PM8/5/22
to google-ap...@googlegroups.com
Jason,

gam ou_and_children "/Path/to/Ou" update user changepassword true

Ross

On Fri, Aug 5, 2022 at 1:31 PM Jason Komendat <jkom...@crschools.us> wrote:
Is there a way to force all users in an OU and sub Ous to have t change their password at next login?

--
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/761850c0-fa84-4d2f-b906-f6989206749fn%40googlegroups.com.


--

Jason Komendat

unread,
Aug 5, 2022, 4:34:36 PM8/5/22
to GAM for Google Workspace
Awesome, thanks and have a good weekend

James SEYMOUR

unread,
Aug 6, 2022, 3:40:59 AM8/6/22
to GAM for Google Workspace
Hi Jason,

I may be wrong, butI have a note that when using "changepassword true" that the users are logged out straight away.

So in this case it would be probably better to use;-

gam update users ou </Path/To/OU> changepasswordatnextlogin

Ross Scroggs

unread,
Aug 6, 2022, 10:00:11 AM8/6/22
to google-ap...@googlegroups.com
The twoarguments are synonyms; from the code:

UPDATE_USER_ARGUMENT_TO_PROPERTY_MAP = {
...
  'changepassword': 'changePasswordAtNextLogin',
  'changepasswordatnextlogin': 'changePasswordAtNextLogin',
...


changePasswordAtNextLogin

boolean

Indicates if the user is forced to change their password at next login. This setting doesn't apply when the user signs in via a third-party identity provider.


Ross
--

Jerudong International School
https://www.jerudonginternationalschool.com
Follow us on:
http://www.facebook.com/jisbruneidarussalam http://www.twitter.com/jisbrunei http://www.instagram.com/jisbrunei https://www.youtube.com/user/JISBrunei https://www.flickr.com/photos/133960569@N03/albums

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

James SEYMOUR

unread,
Aug 8, 2022, 4:08:12 AM8/8/22
to GAM for Google Workspace
Hi Ross,

OK, noted, thanks. After a quick (test account in Firefox on Xubuntu) check it looks like both options (which are the same, as you confirmed) sign users out straight away and force them to change the password.

Jason Komendat

unread,
Aug 8, 2022, 7:12:00 AM8/8/22
to GAM for Google Workspace
Thank you
Reply all
Reply to author
Forward
0 new messages