Generating custom passwords
You can use the YCPGeneratePasswordUE user exit to generate custom passwords. A custom password can be generated when you require longer passwords, more number of special characters in the password or, any other.
About this task
The user exit is implemented only if the attribute GeneratePassword
in createUserHierarchy API is set to true. If this
flag is set to true and the user exit is also implemented, the system
generates a custom password.
If
the user exit is not found but GeneratePassword is set to true the
system generates a random password.
package com.yantra.ycp.japi.ue;
public interface YCPGeneratePasswordUE {
Document generatePassword(YFSEnvironment env, Document inXML);
}inXML is the input XML template containing a list of required parameters to be passed to the user exit. The user exit API generates a password based on the parameters and stores the result in <UserGeneratedPassword="..." />.
When a user password changes or is reset, an event RESET_PASSWORD.ON_SUCCESS is triggered. You can configure this event to send an e-mail to users when there is a change in the password or when a random password is generated.