| PasswordGenerationSendPasswordMail Method |
Sends email(s) with a generated password.
The action object must hold a property with an encrypted password.
The method overrides all security.
Sent mails are not logged.
Throws an exception if no valid receiver can be found.
Codemethod usage | |
---|
Designed to be used in a process only | No |
Action Object (data object type) | Any |
Security | Overridden |
Namespace:
Omada.OE.Solution.OIM.Assembly
Assembly:
Omada.OE.Solution.OIM.Assembly (in Omada.OE.Solution.OIM.Assembly.dll) Version: 15.0.0.0
Syntaxpublic void SendPasswordMail(
CodeMethodInvokeContext context,
string path,
string passwordProperty,
string encryptionRegKey,
string mailTemplateUId,
string receiver
)
Parameters
- context
- Type: Omada.OE.ModelCodeMethodInvokeContext
An invoke context object.
- path
- Type: SystemString
States the path to the object that holds the passwordProperty and that will be used to format the email.
If path is "." then the action object will be used.
If not then path must hold the system name of a reference property (present on the action object).
The object referred in this property will then be used.
- passwordProperty
- Type: SystemString
System name of a property on the action object which holds the encrypted password.
- encryptionRegKey
- Type: SystemString
Registry key (below Omada Enterprise).
Example: "PswEncryptionKey".
The value of the registry key is used to decrypt the password.
- mailTemplateUId
- Type: SystemString
Mail template used to format the mail.
The data object type of the mail template must correspond to the action object.
- receiver
- Type: SystemString
The receiver of the email.
Can be one of the following values:
Value | Description |
---|
ACTIVEUSER | Receiver is the user who executes the code method. |
ACTIVEUSERMANAGER | Receiver is the manager(s) of the user who executes the code method. |
REFERREDUSER:PROPERTY SYSTEM NAME | Receiver is the user group/user/identity referred in the stated reference property which must be present on the action object. |
REFERREDUSERMANAGER:PROPERTY SYSTEM NAME | Receiver is the manager(s) of the user/identity referred in the stated reference property which must be present on the action object. |
ACTIONOBJECTCREATOR | Receiver is the user who created the action object. |
ACTIONOBJECTMANAGER | Receiver is the manager(s) of the action object which in this case must be a user or an identity. |
An email address. | Mail is sent to this specific email address. |
See Also