EssSetPassword
Description
EssSetPassword() sets a user's password, erasing the existing
password.
Syntax
ESS_FUNC_M EssSetPassword (hCtx, UserName, Password);
ESS_HCTX_T | hCtx |
ESS_STR_T | UserName |
ESS_STR_T | Password |
Parameters
hCtx | Essbase API context handle. |
UserName | User name. |
Password | New password for user. |
Return Value
None.
Notes
- To change a password, the caller must either have supervisor
access, or be changing their own password.
- The new password will take effect the next time the user logs
in.
Access
This function requires the caller to have Create/Delete User privilege
(ESS_PRIV_USERCREATE) for the logged in server, unless they are
setting their own password.
Example
ESS_FUNC_M
ESS_SetPassword (ESS_HCTX_T hCtx)
{
ESS_FUNC_M sts = ESS_STS_NOERR;
ESS_STR_T UserName;
ESS_STR_T Password;
UserName = "Jim Smith";
Password = "newpwd";
sts = EssSetPassword (hCtx,UserName, Password);
return (sts);
}
See Also
EssListUsers()
EssSetUser()