Kaspersky Security Center Automation  10.0
HRESULT IKlAkGroups::AddGroup ( [in] IKlAkParams pInfo,
[out, retval] long *  pnGroupId 
)

Create new administration group.

Creates new group with the specified attributes and returns its Id. If such group already exists returns Id of existing group.

Parameters:
pInfo IKlAkParams container with group attributes. May contain following attributes (see List of group attributes).
  • "name"
  • "parentId"
Return values:
pnGroupId id of created group (or of existing one)
See JScript call sample below.
	...
	var oGroups = new ActiveXObject("klakaut.KlAkGroups");
	oGroups.AdmServer = ...
	...
	//Fill container with group name and parent group id
	var oProps = new ActiveXObject("klakaut.KlAkParams");
	oProps.Add("name", "TestGroup");
	oProps.Add("parentId", oGroups.GroupIdGroups);
	// create new group
	var lCreatedGroup = oGroups.AddGroup(oProps);

See also Creating group structure based on AD organization units sample and Creating group structure based on cached AD organization units structure sample.