Click or drag to resize

PasswordGenerationGeneratePassword Method

Generates a random password - typically for a new identity.
Codemethod usage
Designed to be used in a process onlyNo
Action Object (data object type)Any
SecurityExecuting user

Namespace:  Omada.OE.Solution.OIM.Assembly
Assembly:  Omada.OE.Solution.OIM.Assembly (in Omada.OE.Solution.OIM.Assembly.dll) Version: 15.0.0.0
Syntax
C#
public void GeneratePassword(
	CodeMethodInvokeContext context,
	string encryptionRegKey,
	int passwordLength,
	out string result
)

Parameters

context
Type: Omada.OE.ModelCodeMethodInvokeContext
encryptionRegKey
Type: SystemString
Registry key (below Omada Enterprise). Example: "PswEncryptionKey". The value of the registry key is used to encrypt the generated password.
passwordLength
Type: SystemInt32
result
Type: SystemString
Returns an encrypted ramdom password as a Base64 string.
See Also