logo

NJP

New Set Password feature on User form lay-out (San Diego)

Import · Feb 10, 2022 · article

User form lay-out Rome

Below is how out-of-the-box the User form lay-out looks like in the Rome release.

image

User form lay-out San Diego

Below is how out-of-the-box the User form lay-out looks like in the San Diego release. Notice the missing Password field.

image

Set Password

Also visible on the out-of-the-box User form lay-out for San Diego, a UI Action Set Password. Clicking the UI Action, a modal is presented on which you can generate a password. The two icons shown are to (un)mask the password and to copy the password.

image

image

Note: When the User ID on the form lay-out is empty, the password generation does not work and will error.

System Properties involved

When looking into how the Password field is made visible/hidden, I noticed a new Client Script "hide password field". Please don't look into the Client Script yourself, I think ServiceNow forgot to perform a proper quality assurance on this image.

Anyway, the Client Script queries for System Property "glide.user.show.password.field". So changing the value of this System Property, will influence the visibility of the Password field.

"glide.user.show.password.field

Enables the Password field on the sys_user form."

Another System Property involved is "glide.password.policy.generate.password.field.disabled". Out-of-the-box this System Property is set to true, which makes the generated password to be read-only and manually changing the generated password impossible. Changing the value of this System Property, will allow you to manually change the generated password.

"glide.password.policy..generate.password.field.disabled

Disables the Password field on the set password pop-up on the sys_user form."

image

---

And that's it. Hope you like it. If any questions or remarks, let me know!

Kind regards,

Mar k Roethof

ServiceNow Technical Platform Architect @ Eraneous

3x ServiceNow Developer MVP

3x ServiceNow Community MVP

---

LinkedIn

image

View original source

https://www.servicenow.com/community/developer-articles/new-set-password-feature-on-user-form-lay-out-san-diego/ta-p/2301455