Enables you to find the application access type for a user.
Syntax
ESS_FUNC_M EssGetUserType (hCtx, UserName, UserType)
| Parameter | Data Type | Description |
|---|---|---|
hCtx | ESS_HCTX_T | Essbase API context handle. |
UserName | ESS_STR_T | Name of user. |
UserType | ESS_PUSER_TYPE_T | Application access type defined for the UserName specified. |
Return Value
Returns the status of the API.
Example
ESS_FUNC_M
ESS_GetUserType (ESS_HCTX_T hCtx)
{
ESS_FUNC_M sts = ESS_STS_NOERR;
ESS_STR_T UserName="jsmith";
ESS_PUSER_TYPE_T UserType;
sts = EssGetUserType (hCtx, UserName, UserType);
printf("user type for the user %s is %d\n", UserName, *UserType);
return (sts);
}See Also