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

# ErpConnectionAccess table

> Access control for Erp Connections

## ErpConnectionAccess Table (420)

Access control for Erp Connections

## Fields

| Name                      | Description                                                                                                    | Type                                    | Nullable |
| ------------------------- | -------------------------------------------------------------------------------------------------------------- | --------------------------------------- | :------: |
| erpconnectionaccess\_id   | Primary key                                                                                                    | PK                                      |    No    |
| ErpConnectionId           | Link to Erp connection we're granting access for                                                               | FK [ErpConnection](./erpconnection.mdx) |    No    |
| AssociateId               | If set, then this row grants access for a particular associate                                                 | FK [associate](./associate.mdx)         |    Yes   |
| UserGroupId               | If set, then this row grants access for a particular group of users                                            | FK [UserGroup](./usergroup.mdx)         |    Yes   |
| CanConnect                | If set, then this user/group is allowed to create and break connections between EXISTING actors in ERP and CRM | Bool                                    |    Yes   |
| CanCreateERP              | If set, then this user/group is allowed to create NEW actors in ERP and connect them to CRM                    | Bool                                    |    Yes   |
| registered                | Registered when                                                                                                | UtcDateTime                             |    No    |
| registered\_associate\_id | Registered by whom                                                                                             | FK [associate](./associate.mdx)         |    No    |
| updated                   | Last updated when                                                                                              | UtcDateTime                             |    No    |
| updated\_associate\_id    | Last updated by whom                                                                                           | FK [associate](./associate.mdx)         |    No    |
| updatedCount              | Number of updates made to this record                                                                          | UShort                                  |    No    |

<img src="https://mintcdn.com/superofficeas/zNQa3AO19PFK63SB/media/loc/en/database/tables/ErpConnectionAccess.png?fit=max&auto=format&n=zNQa3AO19PFK63SB&q=85&s=b3308ce2d6d159c4f0db1710e403af06" alt="ErpConnectionAccess table relationship diagram" width="782" height="742" data-path="media/loc/en/database/tables/ErpConnectionAccess.png" />

## Indexes

| Fields | Types | Description |
| ------ | ----- | ----------- |

## Relationships

| Table                            | Description                                                                          |
| -------------------------------- | ------------------------------------------------------------------------------------ |
| [associate](./associate)         | Employees, resources and other users - except for External persons                   |
| [ErpConnection](./erpconnection) | One connection to an ERP connector, specifying Client and other required information |
| [UserGroup](./usergroup)         | Secondary user groups                                                                |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [ErpConnection table](/en/database/tables/erpconnection.md)
- [SuperOffice.WebApi.Data.ErpConnection](/en/api/reference/webapi/SuperOffice.WebApi.Data.ErpConnection.md)
- [Get Connection](/en/api/reference/restful/agent/erpsync_agent/get-connection.md)
- [Save Connection](/en/api/reference/restful/agent/erpsync_agent/save-connection.md)
- [Get All Connections](/en/api/reference/restful/agent/erpsync_agent/get-all-connections.md)
- [ErpConnectionActorType table](/en/database/tables/erpconnectionactortype.md)
