CloneGroup Method
- Last UpdatedNov 06, 2025
- 1 minute read
The CloneGroup() method adds a new group name record to the Grp_Name table that is based on a specified existing user group.
'Declaration
Public Shared Sub CloneGroup( _
ByVal sessionId As Integer, _
ByVal sourceUserGroupId As Integer, _
ByVal description As String, _
ByRef newGrpId As Integer _
)
public static void CloneGroup(
int sessionId,
int sourceUserGroupId,
string description,
out int newGrpId
)
Parameters
- sessionId
Required. Holds the session ID and thus the user who is making this method call.
- sourceUserGroupId
Required. Holds the ID of the source user group on which to base the new user group that is being added.
- description
Required. Holds the description for the new user group.
- newGrpId
Output. Holds the ID of the new user groups that is returned.
This method clones all the data from the specified existing group to the new group name, except for the new user group's description. Additionally, this method automatically inserts the new record into the Grp_Ent_Link, Grp_Priv_Link, and User_Grp_Link tables. If the specified source user group does not exist, then a cloned group name record will not be created.