Click or drag to resize

MainCreateUserFromTemplate Method

Method creates a new user.

The properties of the specified template object will be copied from the action object to the new user,

based on the settings of the specified copy rule.

A property id must be provided containing the username on the action object.

Codemethod usage
Designed to be used in a process only (Yes/No)No
Action Object (data object type)

Namespace:  Omada.OE.UtilityCodeAssembly
Assembly:  Omada.OE.UtilityCodeAssembly (in Omada.OE.UtilityCodeAssembly.dll) Version: 15.0.0.0
Syntax
C#
public bool CreateUserFromTemplate(
	CodeMethodInvokeContext context,
	string copyRuleUIdStr,
	string userNamePropertySysName
)

Parameters

context
Type: Omada.OE.ModelCodeMethodInvokeContext
An invoke context object.
copyRuleUIdStr
Type: SystemString
UId of the copy rule used to copy values to the newly created user
userNamePropertySysName
Type: SystemString
Property system name of a text property value on the action object, which contains the username for the new user to be created

Return Value

Type: Boolean
See Also