
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2017 09:02 PM
Hi All,
How to copy password from the record producer of user table?
My requirement: I want to create record producer of user table.
I am able to get the all the details from record producer to user but except the password field.
Could any one has faced this type issue?
ServiceNow Commnunity MVP -2018 class.
Solved! Go to Solution.
- Labels:
-
Best Practices
-
Instance Configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2017 09:14 PM
Hello Karthik,
To set the password from the record producer script which is on user table should be like:
current.user_password.setDisplayValue(producer.field_name);
This will create a password from the field value on record producer.
Thanks,
Surya Amara
PS: Hit like, Helpful or Correct depending on the impact of the response

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2017 09:47 PM
Hi Sneha
Could you please help you to solve this thread.@
ServiceNow Commnunity MVP -2018 class.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2017 10:01 PM
Hi Karthik,
Even I agree with Sachin. Go ahead with LDAP Integration.
You can even try exploring Password reset functionality of serviceNow.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2017 10:03 PM
Hello Sneha,
Thanks for the response,
My bad sorry for the confusing requirement. Actually i want to give a field for the user where the user can set a password of his choice. I want to map this password with the user table password. But when we are mapping this field user is not saving/updating.
We are all to map the field values to the user table except the password .
I am able to do the password validation(password and confirm password).
ServiceNow Commnunity MVP -2018 class.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2017 09:54 PM
You won't be able to get the password for the user. It's stored in sys_user but, I believe, is a one-way encrypted string. In other words, when a user logs on and verifies the password internally, the password entered is re-encrypted and compared against the encrypted password string. If they match, it's the same password. However, there's no way to get the plain text version of the password within the system.
You shouldn' t ever require the user password. If the user password needs resetting, then type over the password field and save the record (also ticking the change password on login). If the requirement is an integration, set up a common source of authentication such as LDAP. If you need to have an integration log in to the ServiceNow instance, use the Basic authentication token over a user/password string. This is an encoded string that you can get through the REST web services explorer.
Regards,
Sachin