Resets the user's security structure to its initial state.
Syntax
EsbResetUser (hCtx, UserName) ByVal hCtx As Long ByVal UserName As String
Parameter | Description |
---|---|
hCtx | API context handle |
UserName | User name |
Notes
The following user security parameters are reset to their initial state:
LockedOut
PwdChgNow
Failcount
LastLogin
LastPwdChg
Expiration
Return Value
Returns zero (0) if successful.
Access
This function requires the caller to have Create/Delete User privilege (ESB_PRIV_USERCREATE) for the logged in server.
Example
Declare Function EsbResetUser Lib "esbapin" (ByVal hCtx As Long, _ ByVal UserName As String) As Long Sub ESB_ResetUser () Dim UserName As String Dim sts As Long UserName = "William" sts = EsbResetUser (hCtx, UserName) End Sub
See Also