| MainAddUsersToUserGroups Method |
Adds several users from a reference property to some user groups in another reference property, and if
removeOldUsers = true, then it will remove the existing users first.
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
Syntaxpublic void AddUsersToUserGroups(
CodeMethodInvokeContext context,
string usersRefPropertySysName,
string groupsRefPropertySysName,
bool removeOldUsers
)
Parameters
- context
- Type: Omada.OE.ModelCodeMethodInvokeContext
An invoke context object.
- usersRefPropertySysName
- Type: SystemString
The system name for a single-value reference property for choosing a user.
The property must be found on the action object.
- groupsRefPropertySysName
- Type: SystemString
The system name for a multi-value reference property for choosing a user group.
The property must be found on the action object.
- removeOldUsers
- Type: SystemBoolean
See Also