Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IUserGroupManager.AddMemberGroups Method

Adds groups to a group.

void AddMemberGroups(
int parentGroupID,
int[] memberGroupIDs
);

#### Parameters

parentGroupID
  parent group to add the groups to
memberGroupIDs
  an array of groups to add to the parent group

#### Remarks

Any invalid memberGroupIDs will be silently ignored. Passing a non-existent parentGroupID will result in a PortalException. Note: As this method performs multiple operations, any exception thrown relating to these will have details of each failure.

#### Exceptions

Exception Type | Condition
--- | ---
PortalException | if the operation resulted in an error on the portal
ArgumentException | if passed an invalid parent group ID

#### See Also

IUserGroupManager Interface | Plumtree.Remote.PRC Namespace