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

# PrincipalPermission

> Reference for the PrincipalPermission table in the ABBYY FlexiCapture reports database: columns granting role-based access to projects and batch types.

## Purpose

Contains permissions for users or user groups. Allows connections with certain role types. Access blocks are not used in this version.

[Diagram of relationships between access control tables](/flexi-capture/reports/database/users-reports-database)

## List of columns

<table width="100%"><tbody><tr><td><p><strong>Key</strong></p></td><td><p><strong>Name</strong></p></td><td><p><strong>Type</strong></p></td><td><p><strong>Required</strong></p></td><td><p><strong>Description</strong></p></td></tr><tr><td><p>PK</p></td><td><p>Id</p></td><td><p>int</p></td><td><p>yes</p></td><td><p>Entry identifier.</p></td></tr><tr><td rowspan="5"> </td><td><p>BatchTypeId</p></td><td><p>int</p></td><td><p>no</p></td><td><p>Batch type identifier. Corresponds to the entry identifier in the <a href="/flexi-capture/reports/database/batch-type">BatchType</a> table.</p><ul><li>"<strong>0</strong>" means permissions are granted for "Default " type batches.</li><li>"<strong>Null</strong>" means that permissions are granted for all types of packets.</li></ul></td></tr><tr><td><p>IsAllowed</p></td><td><p>bit</p></td><td><p>yes</p></td><td><p>Indicates that access is allowed. Currently access blocks are not used, instead permissions are issued to all users that require access.</p></td></tr><tr><td><p>PrincipalId</p></td><td><p>int</p></td><td><p>yes</p></td><td><p>User identifier. Corresponds to the entry identifier in the <a href="/flexi-capture/reports/database/principal">Principal</a> table.</p></td></tr><tr><td><p>ProjectId</p></td><td><p>int</p></td><td><p>no</p></td><td><p>Batch type identifier. Corresponds to the entry identifier in the <a href="/flexi-capture/reports/database/project-reports-database">Project</a> table. The value "<strong>null</strong>" gives access permissions to all projects.</p></td></tr><tr><td><p>RoleType</p></td><td><p>int</p></td><td><p>yes</p></td><td><p>Role types for which a user or user group has permissions. Possible values are listed in <a href="/flexi-capture/reports/database/role-type-enum">User Role Type</a>.</p></td></tr></tbody></table>
