CloneUser Method
- Last UpdatedNov 06, 2025
- 1 minute read
The CloneUser() method purpose of this method is to add a new user to the database based on an existing user.
'Declaration
Public Shared Sub CloneUser( _
ByVal sessionId As Integer, _
ByVal sourceUserId As String, _
ByVal newUserId As String, _
ByVal encryptedPassword As String _
)
public static void CloneUser(
int sessionId,
string sourceUserId,
string newUserId,
string encryptedPassword
)
Parameters
- sessionId
Required. Holds the session ID and thus the user who is making this method call.
- sourceUserId
Required. Holds the ID of the user from which to create the clone.
- newUserId
Required. Holds the ID of the newly added user.
- encryptedPassword
Required. Holds the encrypted password for the newly added user.