# EsbDeleteUser

Description

EsbDeleteUser() deletes an existing user.

Syntax

    EsbDeleteUser (hCtx, userName)

    ByVal hCtx     As Long
    ByVal userName As String

Parameters

hCtx | Essbase VB API context handle.
userName | Name of a user to delete.

Return Value

None.

Notes

- The caller may not delete either their own user or the last supervisor on the server.

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 "ESBAPIW" (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

EsbCreateUser()
EsbListUsers()
EsbRenameUser()