> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AddToGroup

> AddToGroup method in the ABBYY FlexiCapture group management API adds a user or nested group to a specified group using principal and group IDs.

## What it does

Adds users and groups to the specified group.

## Definition

```
void AddToGroup( int principalId, int groupId );
```

## Parameters

| **Name**    | **Type** | **Description**  |
| ----------- | -------- | ---------------- |
| principalId | int      | User or group ID |
| groupId     | int      | Group ID         |

## Returned value

N/A
