Creates a new user.
Syntax
EsbCreateUser (hCtx, userName, Password) ByVal hCtx As Long ByVal userName As String ByVal Password As String
Parameter | Description |
---|---|
hCtx | VB API context handle. |
userName | Name of user to create. See User Name Limits. |
Password | Security password for new user. See Password Limits. |
Notes
The specified user must not already exist.
The user's access level and other parameters may be set with the EsbSetUser() function.
You program should ensure that the password has been entered correctly (for example, by requiring the user to type it twice) before calling this function. Once entered, it is not possible to retrieve a password. However, a password can be changed using the EsbSetPassword() function.
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 EsbCreateUser Lib "ESBAPIN" (ByVal hCtx As Long, ByVal User As String, ByVal Password As String) As Long Sub ESB_CreateUser () Dim sts As Long Dim User As String Dim Password As String User = "Joseph" Password = "Password" '************ ' Create user '************ sts = EsbCreateUser (hCtx, User, Password) End Sub
See Also