- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2016 05:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2016 08:29 PM
Sunny,
var gr = new GlideRecord('sys_user');
//The below query will reset the password for all users whose date of password is dated more than 20 days before.Change accordingly.
gr.addQuery('u_date_of_password','<','gs.daysAgo(-20))');
gr.query();
while (gr.next())
{
gr.password_needs_reset = true;
gr.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2016 11:16 PM
Please go through below link. It describes details about force password reset for 90 days.Change it to 30 days.
Force Password Reset 90 Days After Last Change - ServiceNow Wiki
Thanks,
Mihir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2021 04:46 AM
mihir mohanta link is not opening.
Could you please give me step by step for password reset change for 90 days.