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

# AddUserIfNotExist

> AddUserIfNotExist in the ABBYY FlexiCapture web services API returns the current user ID and creates a database record for the user if one does not exist.

## What it does

Returns the ID of the current user. If there is no database record for the user, a record is created.

## Definition

```
int AddUserIfNotExist();
```

## Parameters

None.

## Returned value

| **Type** | **Description** |
| -------- | --------------- |
| int      | User ID         |
