Learn how the GSuite admin can change the Google account passwords of multiple users in their organization automatically with Google Apps Script.
You can use Google Apps Script to automatically reset the password of users in your GSuite domain. This script can only be executed under the Suite admin account. You also need to enable the AdminDirectory Advanced Service in your Apps Script Editor.
Source: How to Force Reset GSuite Users’ Passwords with Apps Script – Digital Inspiration