# EssAddToGroup

Description

EssAddToGroup() adds a user to the list of group members.

Syntax

    ESS_FUNC_M EssAddToGroup (hCtx, GroupName, UserName);

ESS_HCTX_T | hCtx
ESS_STR_T | GroupName
ESS_STR_T | UserName

Parameters

hCtx | Essbase API context handle.
GroupName | Group name.
UserName | Name of user to add to group list.

Return Value

None.

Notes

- This function also adds the user to the list of group members and the group to the user's own list of groups.

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_AddUser (ESS_HCTX_T    hCtx)
    {
       ESS_FUNC_M     sts = ESS_STS_NOERR;
       ESS_STR_T     GroupName;
       ESS_STR_T     UserName;
       GroupName = "PowerUsers";
       UserName = "Jim Smith";

       sts = EssAddToGroup (hCtx, GroupName, UserName);

       return (sts);
    }

See Also

EssDeleteFromGroup()
EssGetGroupList()
EssListGroups()
EssSetGroupList()