Random password generator issue

Hitesh targe
Tera Expert

Hello Experts,

we have a catalog item which creates user in AD and also generates random password and sets in AD.

password generation is working fine and setting in AD also working fine but a notification will trigger to the new user with password.

Here, password characters are ignoring after special characters like .(Dot)(not after all special characters). in activity also not writing after special charecters.

for example:

the generated password is 6sDfR.a$

in AD it is setting as 6sDfR.a$ but in activity it is writing as 6sDfR and same in notification as well.

Any suggestion please.

Password in AD screenshots

find_real_file.pngfind_real_file.pngfind_real_file.png

notification and Activity screenshots

find_real_file.pngfind_real_file.pngfind_real_file.png

Thanks,

1 ACCEPTED SOLUTION

Kostya
Tera Guru

Hello Prasa,



what application do you use for password generation? Any servicenow application / module?


I would suggest to modify the notification or the business rule triggers the email and add <code></code> or <pre></pre> tags where the password is send. I.e. <pre>${userPassword<}/pre>. May be following article would be helpful as well: Using Journal Fields - ServiceNow Wiki



best regards


Hit the Thumb Icon and/or mark as Correct, if my answer was correct. So you help others to see correct responses and I get fame 🙂

Cheers,
Kostya

View solution in original post

3 REPLIES 3

Hitesh targe
Tera Expert

Hello Experts,



Any suggestion please!



Thanks


Kostya
Tera Guru

Hello Prasa,



what application do you use for password generation? Any servicenow application / module?


I would suggest to modify the notification or the business rule triggers the email and add <code></code> or <pre></pre> tags where the password is send. I.e. <pre>${userPassword<}/pre>. May be following article would be helpful as well: Using Journal Fields - ServiceNow Wiki



best regards


Hit the Thumb Icon and/or mark as Correct, if my answer was correct. So you help others to see correct responses and I get fame 🙂

Cheers,
Kostya

conmic
Mega Guru

Hi prasa,



Is the notification send from the workflow that does the reset or when the comment was inserted?


It seems like your password is not stored as string at some point.