| MainLibraryMaintainUserGroupFromReferenceProperty Method |
Method maintains the members of a user group.
The members of the group is found by inspecting all the users in the system.
Each user must reference another user through a reference property (typically a manager).
After execution, the user group will have all the selected users (managers) as members.
Namespace:
Omada.OE.UtilityCodeAssembly.Library
Assembly:
Omada.OE.UtilityCodeAssembly (in Omada.OE.UtilityCodeAssembly.dll) Version: 15.0.0.0
Syntaxpublic static bool MaintainUserGroupFromReferenceProperty(
CodeMethodInvokeContext context,
int propertyId,
int groupId
)
Parameters
- context
- Type: Omada.OE.ModelCodeMethodInvokeContext
Object contains neccessary information for executing the code method. - propertyId
- Type: SystemInt32
Reference property for selecting a single user.
Reference property must be present on the user data object type. - groupId
- Type: SystemInt32
Id of the user group whos members will be maintained.
Return Value
Type:
Boolean
See Also