EssSetGroupList

Description

EssSetGroupList() sets the list of users who are members of a group.

Syntax

ESS_FUNC_M  EssSetGroupList (hCtx, GroupName, Count, pUserList);
ESS_HCTX_ThCtx
ESS_STR_TGroupName
ESS_USHORT_TCount
ESS_PUSERNAME_TpUserList

Parameters

hCtxEssbase API context handle.
GroupNameGroup name or user name.
CountCount of user names.
pUserListPointer to an array of user name strings.

Return Value

None.

Notes

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_SetGroupList (ESS_HCTX_T  hCtx)
{
   ESS_FUNC_M        sts = ESS_STS_NOERR;
   ESS_USERNAME_T   UserList[3];
   ESS_USHORT_T     Count;
   ESS_STR_T        GroupName;
   GroupName = "Powerusers";
   strcpy(UserList[0],"App Designer");  
   strcpy(UserList[1],"Db Designer");  
   strcpy(UserList[2],"User Creator"); 
   Count = 3;
   
   sts = EssSetGroupList (hCtx, GroupName, Count,
         UserList);  
   return (sts);
}

See Also

EssAddToGroup()
EssDeleteFromGroup()
EssListGroups()