Is it possible to check in user information whether a password has been set?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2025 09:56 PM - edited ‎07-09-2025 09:58 PM
Hi
When SSO is enabled, probably set a password for users log in locally, but not for users log in with SSO.
Is it possible to check in user information whether a password has been set?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2025 09:37 PM - edited ‎07-14-2025 09:37 PM
Hi @HS7
Can you please check this question? I have already answered the same question in detail here. Please let me know if you have any queries.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2025 10:04 PM
Yes, it’s possible to check whether a password has been set for a user in ServiceNow—but with some caveats when SSO is enabled.
For SSO users, the password field in the sys_user table typically remains empty, since authentication is handled externally and ServiceNow doesn’t store or update their password.
For local login users, if a password has been set, the password field will contain encrypted data. If it’s blank, no password is set.
You can query the sys_user table and inspect the password field to determine if a password exists. However, due to encryption, you won’t see the actual password—just whether the field is populated.
If you want to prevent SSO users from setting or using local passwords, you can:
Add a Business Rule on the sys_user table to block password updates for non-admins.
Modify the Change Password UI Action to only show for users with specific roles.
Use Adaptive Authentication policies to enforce login restrictions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2025 06:22 PM
Thank you @kalpanashar
>Add a Business Rule on the sys_user table to block password updates for non-admins.
Could you tell me how do I set up the business rules?