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

# HasRightsToBatchType

> HasRightsForBatchType method in the ABBYY FlexiCapture Web Services API checks whether a specified user role has access permissions to a given batch type.

## What it does

Checks if the specified user role has access permissions to certain batch types.

## Definition

```
bool HasRightsForBatchType( int sessionId, int projectId, int batchTypeId, int roleType );
```

## Parameters

<table width="100%"><tbody><tr><td><p><strong>Name</strong></p></td><td><p><strong>Type</strong></p></td><td><p><strong>Description</strong></p></td></tr><tr><td><p>sessionId</p></td><td><p>int</p></td><td><p>The ID of the connection to the Application Server</p></td></tr><tr><td><p>projectId</p></td><td><p>int</p></td><td><p>Project ID</p></td></tr><tr><td><p>batchTypeId</p></td><td><p>int</p></td><td><p>Batch type ID.</p><ul><li><strong>0</strong> - "default" batch type</li><li><strong>-1</strong> - checks for access permissions to at least one batch type.</li></ul></td></tr><tr><td><p>roleType</p></td><td><p>int</p></td><td><p>User role. See <a href="/flexi-capture/api/structures/t-role-type">RoleType</a> for possible values.</p></td></tr></tbody></table>

## Returned value

| **Type** | **Description**                    |
| -------- | ---------------------------------- |
| bool     | Availability of access permissions |
