| UserGroupAddMember Method (Int32, Boolean) |
Adds a user as member of the group.
Throws an error if the members of the group aren't available.
Throws an error if the group is "Everyone".
Throws an error if the group is a personal group.
Throws an error if the user is already a member of the group - except if ignoreIfAlreadyMember is true.
Namespace:
Omada.OE.Model
Assembly:
Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntaxpublic void AddMember(
int userId,
bool ignoreIfAlreadyMember
)
Parameters
- userId
- Type: SystemInt32
Must be a valid userId greater than zero.
- ignoreIfAlreadyMember
- Type: SystemBoolean
If true the method will not throw an error if the user is already a member of the group.
See Also