Adds a user to the list of group members.
Syntax
ESS_FUNC_M EssAddToGroup (hCtx, GroupName, UserName);
Parameter | Data Type | Description |
---|---|---|
hCtx | ESS_HCTX_T | API context handle. |
GroupName | ESS_STR_T | Group name. |
UserName | ESS_STR_T | Name of user to add to group list. |
Notes
This function also adds the user to the list of group members and the group to the user's own list of groups.
Return Value
None.
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