How to control the "Set Password" feature in user record?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-21-2023 05:37 AM - edited ā09-21-2023 06:21 AM
Enhance security around user account password resets
How can we set some security around the "Set Password" feature?
We should control and notify specific users when the password change feature used on the user record
a) Disabling edit rights to the Password from the user list grid currently available to admins
b) Disabling Set Password to admins on their own account
c) Sending an SMS to a nominated list of users whenever an admin password is reset via the Set Password feature
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-21-2023 10:05 AM
a) Disabling edit rights to the Password from the user list grid currently available to admins
Create a list edit ACL on the password field
b) Disabling Set Password to admins on their own account
add additional condition on the Set Password UI action "current.isValidRecord(); && current.sys_id != gs.getUserID()
c) Sending an SMS to a nominated list of users whenever an admin password is reset via the Set Password feature
Configure a notification when >>> password field changes and check to see if updated record has admin
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-21-2023 10:56 AM
Hi @Shantharao ,
Hope you are doing great.
To enhance security around user account password resets in ServiceNow, follow these steps:
-
Disable Password Editing for Admins:
- Restrict admin access to edit passwords from the user list grid.
- This can be achieved through ACLs (Access Control Lists) to control who can modify the password field.
-
Restrict Admins from Setting Their Own Password:
- Prevent admins from using the "Set Password" feature on their own accounts.
- This can be enforced through a business rule or a client script that checks if the user is an admin and restricts this action.
-
Implement SMS Notifications:
- Set up a notification system to send SMS alerts to nominated users whenever an admin resets a password using the "Set Password" feature.
- Use an SMS gateway service and integrate it with ServiceNow using REST APIs or a dedicated integration app.
Regards,
Riya Verma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-22-2023 12:06 AM
Dear Shantharao,
@Shantharao , hope you're doing great!
A) Disabling edit rights to the Password from the user list grid currently available to admins:
- Navigate to System Administration > Security > Roles.
- Open the role that you want to disable edit rights for.
- Click the Table Access tab.
- Find the sys_user table and click the Edit button.
- In the Table Fields section, find the Password field and check the Read Only checkbox.
- Click the Update button.
B) Disabling Set Password to admins on their own account:
- Navigate to System Administration > Security > Scripts.
- Click the New button.
- Enter a name and description for the script.
- Select the Business Rule script type.
- Add the following code to the Script field:
if (current.user.hasRole('admin') && current.sys_id == current.user.sys_id) {
current.addInfoMessage('Administrators are not allowed to reset their own passwords.');
current.setAbortAction(true);
}
6. Click the Save button.
7. Attach the business rule to the sys_user table.
C) Sending an SMS to a nominated list of users whenever an admin password is reset via the Set Password feature:
- Navigate to System Administration > Notifications.
- Click the New button.
- Enter a name and description for the notification.
- Select the Email notification type.
- In the Recipients section, click the Add button and select the users that you want to send the SMS to.
- In the Message section, add the following text:
An administrator password was reset via the Set Password feature on [date and time].
7. Click the Save button.
Once you have implemented these security measures, you can be more confident that your user accounts are protected from unauthorized password resets.
Kindly, please mark my solution as Helpful/Correct, if applicable. If I could help you with your Query then, please hit the Thumb Icon and mark as Correct!!!
Thanks & Regards,
Revanth. K
Product Test Automation Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-22-2023 01:25 AM
Hello @Shantharao ,
To control the "Set Password" feature in a user record in ServiceNow, you can follow these steps:
1. Navigate to the User table by typing "sys_user.list" in the left navigation filter.
2. Open the user record for which you want to control the "Set Password" feature.
3. In the user record, you will see a "Password" field. This field is used to set or change the password for the user.
4. To control who can set or change the password, you need to modify the ACL (Access Control List) rules for the "Password" field.
5. Navigate to "System Security > Access Control (ACL)".
6. Search for the ACL rule that controls the "Password" field in the User table. The name of the ACL rule would be something like "sys_user.password".
7. Open the ACL rule and modify the "Roles" field to control who can set or change the password. For example, if you want only admins to be able to set or change the password, you can add the "admin" role to the "Roles" field.
8. Save the ACL rule.
Please note that modifying ACL rules requires security_admin rights (you need to elevate role)
Please mark this answer correct & helpful, if it resolves your query
Thank you
Thank you
G Ramana Murthy
ServiceNow Developer
