It is used to remove user from Group.
Public Function RemoveUserFromGroup(
ByVal userId As Long,
ByVal GroupId As Long) As Long
Parameters
|
In/out |
Name |
Data type |
Description |
|
In |
UserId |
Long |
Index of the User to be deleted from Group. |
|
In
|
GroupId |
Long |
Index of the Group. |
Description
This function is called to delete the User from the Group. This function is invoked from the Omnidocs Admin to delete the membership of the User from the Group.
|
Name |
Description |
|
NG_SUCCESS |
In case of success |
|
-1 |
Invalid cabinet name |
|
-3 |
Invalid operation in read-only cabinet |
|
-201 |
Cabinet not connected |
|
-133 |
Insufficient rights for the current operation |
Example
Private Sub mnuApply_Click ()
Dim lRetVal As Long
Dim lUserId As Long
Dim lGroupId As Long
lRetVal = PanObj.RemoveUserFromGroup(lUserId, lGroupId)
If lRetVal <> 1 Then
MsgBox PanObj.ErrDescription
Else
MsgBox " Success – User Removed from Group "
End If
End Sub