Password Reset After XX Days
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2018 08:41 AM
This is an updated walkthrough since the following is no longer available, and was not ported to the Docs site: https://community.servicenow.com/external-link.jspa?url=http%3A//wiki.servicenow.com/index.php%3Ftit...
Scenario: Customer wants all users to have to reset their password every XX days (in my case, I use 90). Note, this solution is for local accounts accessed without SSO in play.
Solution: You will need
- A custom date/time field called (Password Last Reset). I chose to make mine Read Only.
- A Business Rule (to update the user record with that date/time when the password changes)
- A Scheduled Job (to check to see if that date populated is older than 90 days).
Explanation: The business rule checks on update as to whether the user has changed their password. If so, the custom date/time field you created will be populated with the current date/time. The Scheduled Job (in my case) runs daily in the early AM to see if the date/time in that field is older than 90 days. If so, it will mark the record as "Password Needs Reset = true". This will prompt the user to reset their password upon next login.
Business Rule
Scheduled Job
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2020 09:34 AM
The part of the Business Rule where it sets the field value. Password Last Reset TO ... should that be javascript:gs.nowDateTime() or javascript:gs.nowDateTime();
Thanks,
Mike