Set the default password to the last 4 characters of their SSN?

When provisioning a new user, is it possible to set the default password to the last 4 characters of their SSN?

So if the SSN is 123-45-6789

I want the default password to be:: 6789

This expression can be used to set the default password to the last 4 characters of the SSN:

Person.SSN.Substring(Person.SSN.Length - 4, 4)

1 Like

if the password policy doesn’t allow such a short password, you can try something like:

Person.LastName + Person.SSN.Substring(Person.SSN.Length - 4, 4)

1 Like