EssGetUser() gets a user information structure, which contains security information for the user.
ESS_FUNC_M EssGetUser (hCtx, UserName, ppUserInfo);
ESS_HCTX_T | hCtx |
ESS_STR_T | UserName |
ESS_PPUSERINFO_T | ppUserInfo |
hCtx | Essbase API context handle. |
UserName | User name. |
ppUserInfo | Address of pointer to receive allocated user info structure. |
If successful, returns the user information structure in ppUserInfo.
This function requires the caller to have Create/Delete User privilege (ESS_PRIV_USERCREATE) for the logged in server, unless they are getting their own user information.
ESS_FUNC_M ESS_GetUserInfo (ESS_HCTX_T hCtx, ESS_HINST_T hInst ) { ESS_FUNC_M sts = ESS_STS_NOERR; ESS_PUSERINFO_T User = NULL; sts = EssGetUser (hCtx, "Jim Smith", &User); if (!sts) { if (User) EssFree (hInst, User); } return (sts); }EssGetApplicationAccess()