I manage a domain and I want to force all users to change their password every 3 months.
Is there a way to do this?
google-appsgoogle-apps-script
I manage a domain and I want to force all users to change their password every 3 months.
Is there a way to do this?
Best Answer
Provision API has gone the way of the Dodo and now you have to rewrite your script and add some extra security approvals along the way.
I got the info finally after a whole bunch of searching, after my script failed to day from here: http://thegapps.com/7/how-can-i-force-my-users-to-reset-the-password?show=8#a8
below is a summary (without the pretty pictures) for posterity.... along with my final code (with other additional enhancements I found I needed):
Start Excerpt from thegapps.com -=-
-=-
End Excerpt from thegapps.com
You can then specify an automated time for it to kick off using the trigger.
(NOTE: you have to do all the special stuff above to approve security to run this... oh, and remember to change example.com to your domain!! duh) This is my final solution Code below that updates Waqar Ahmad's script using the info above (which sends an email confirmation to remind you the script fired): fix for more than 100 users, has the ability to exempt a specific user from the global change: