Deletes an existing user.
Syntax
EsbDeleteUser (hCtx, userName) ByVal hCtx As Long ByVal userName As String
Parameter | Description |
---|---|
hCtx | VB API context handle. |
userName | Name of a user to delete. |
Notes
The caller may not delete either their own user or the last administrator on the server.
Return Value
None.
Access
This function requires the caller to have Create/Delete User privilege (ESB_PRIV_USERCREATE) for the logged in server.
Example
Declare Function EsbDeleteUser Lib "ESBAPIN" (ByVal hCtx As Long, ByVal User As String) As Long Sub ESB_DeleteUser () Dim sts As long Dim User As String User = "Joseph" '************ ' Delete user '************ sts = EsbDeleteUser (hCtx, User) End Sub
See Also