0

I have a list newly creates users in my domain. I want to reset all of their password. But I don't want to do it using admin console. How can I do this using admin SDK and Google App script?

My idea is get a list of user whose password I need to reset, and then assign some random strings to those email id's and update it as their password.

I this possible? If not, is there any better idea? (I have tried using GAM, But I don't want to do it through CSV files each time.)

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
Kanchan
  • 1
  • 1
  • 2

1 Answers1

1

Resetting a password is possible via the Directory API within the Admin SDK; therefore, you would be able to do this via Apps Script.

Depending how comfortable you are with coding, you might want to use Google Apps Manager to complete this and other tasks. The command to change a password can be found here. These types of commands can be run in bulk by either reading a CSV of all users (can also be created with GAM) or writing a small script to go through a group, OU, etc. and reset only those users.

miketreacy
  • 1,120
  • 1
  • 11
  • 17