# EsbResetUser

Description

EsbResetUser() resets the user's security structure to its initial state.

Syntax

      EsbResetUser (hCtx, UserName)

    ByVal hCtx     As Long
    ByVal UserName As String

Parameters

hCtx | Essbase API context handle
UserName | User name

Return Value

Returns zero (0) if successful.

Notes

The following user security parameters are reset to their initial state:

- LockedOut
- PwdChgNow
- Failcount
- LastLogin
- LastPwdChg
- Expiration

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

EsbInit()
EsbLogin()
EsbLogout()