0

I have Admin access to a Google domain. I want to do bulk password reset of user account and also if possible make them change their password after first sign in. Currently im doing this using GAM. is there any way to do this using App script or python script?

i have generated random password and tried to reset the password but its not happening.. I dont know how to connect with Admin SDK.

Kanchan
  • 1
  • 1
  • 2

1 Answers1

0

This can be done with both Python (how GAM does it) or Apps Script. From my POV, unless you need to move this process into the cloud (Apps Script) you might as well use GAM to complete the task.

That being said, in both instances, you're going to want to use the Directory API (within the Admin SDK) as this has access to change passwords and set change password at next login to true. I recommend taking a look at this Apps Script page making note of the additional steps needed to use the Admin SDK within Apps Script.

miketreacy
  • 1,120
  • 1
  • 11
  • 17