EssSetUser

Description

EssSetUser() sets a user information structure, which contains security information for the user.

Syntax

ESS_FUNC_M EssSetUser (hCtx, pUserInfo); 
ESS_HCTX_ThCtx
ESS_PUSERINFO_T pUserInfo

Parameters

hCtxEssbase API context handle.
pUserInfoPointer to user info structure.

Return Value

Returns zero (o) if successful.

Notes

Access

This function requires the caller to have Create/Delete User privilege (ESS_PRIV_USERCREATE) for the logged in server.

Example

ESS_FUNC_M
ESS_SetUser (ESS_HCTX_T  hCtx)
{
   ESS_FUNC_M        sts  = ESS_STS_NOERR;
   ESS_USERINFO_T   User;
   
   strcpy(User.Name,"Jim Smith");
   strcpy(User.AppName,"Sample");
   strcpy(User.DbName,"Basic");
   User.Access = ESS_ACCESS_SUPER;
  
   sts = EssSetUser (hCtx,&User);
   return (sts);
}

See Also

EssGetUser()
EssListUsers()
EssSetApplicationAccess()
EssSetPassword()