> ## 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.

# AddPermission

> AddPermission-Methode in der ABBYY FlexiCapture Web Services API: erteilt einem Benutzer oder einer Gruppe die Berechtigung, einen angegebenen Rollentyp in einem bestimmten Project und Batch-Typ zu verwenden.

<div id="what-it-does">
  ## Was es bewirkt
</div>

Erteilt Benutzern oder Gruppen Berechtigungen, die angegebene Rolle im angegebenen Project zu verwenden.

<div id="definition">
  ## Definition
</div>

```
void AddPermission( int principalId, int projectId, int batchTypeId, int roleType );
```

<div id="parameters">
  ## Parameter
</div>

<table width="100%"><tbody><tr><td><p><strong>Name</strong></p></td><td><p><strong>Typ</strong></p></td><td><p><strong>Beschreibung</strong></p></td></tr><tr><td><p>principalId</p></td><td><p>int</p></td><td><p>Benutzer- oder Gruppen-ID</p></td></tr><tr><td><p>projectId</p></td><td><p>int</p></td><td><p>Project-ID</p><ul><li>-1 - alle Projects</li></ul></td></tr><tr><td><p>batchTypeId</p></td><td><p>int</p></td><td><p>Batch-ID</p><ul><li>-1 - alle Batch-Typen</li><li>0 - Standard-Batch</li></ul></td></tr><tr><td><p>roleType</p></td><td><p>int</p></td><td><p>Benutzerrollentyp.<br />Mögliche Werte finden Sie unter <a href="/de/flexi-capture/reports/database/role-type-enum">Benutzerrollentypen</a>.</p></td></tr></tbody></table>

<div id="returned-value">
  ## Rückgabewert
</div>

Entfällt
