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

# service_auth table

> Authentication for a service (imap, smtp...)

## service\_auth Table (493)

Authentication for a service (imap, smtp...)

## Fields

| Name                      | Description                                      | Type                                                    | Nullable |
| ------------------------- | ------------------------------------------------ | ------------------------------------------------------- | :------: |
| service\_auth\_id         | Primary key                                      | PK                                                      |    No    |
| server                    | The mail server                                  | String(255)                                             |    Yes   |
| port                      | The server port                                  | Int                                                     |    Yes   |
| auth\_type                | The type of authentication, plain-text, OAuth... | String(255)                                             |    Yes   |
| username                  | The username                                     | String(255)                                             |    Yes   |
| password                  | The (encrypted) password or token                | String(255)                                             |    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    |
| associate\_id             | Associate who owns this authentication entry     | FK [associate](./associate.mdx)                         |    Yes   |
| auth\_status              | The status of this authentication entry          | Enum [ServiceAuthStatus](./enums/serviceauthstatus.mdx) |    Yes   |
| encryptedCheck            | Encrypted hash checksum                          | String(254)                                             |    No    |

<img src="https://mintcdn.com/superofficeas/8-OIGQQJR0VGDXy_/media/loc/en/database/tables/service_auth.png?fit=max&auto=format&n=8-OIGQQJR0VGDXy_&q=85&s=92cebcd0b8277cf57bdab0ce7a38412b" alt="service_auth table relationship diagram" width="705" height="65" data-path="media/loc/en/database/tables/service_auth.png" />

## Indexes

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

## Relationships

| Table                             | Description                                                        |
| --------------------------------- | ------------------------------------------------------------------ |
| [associate](./associate)          | Employees, resources and other users - except for External persons |
| [email\_account](./email-account) | Email account information                                          |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [SuperOffice.WebApi.Data.ServiceAuth](/en/api/reference/webapi/SuperOffice.WebApi.Data.ServiceAuth.md)
- [Enum ServiceAuthStatus](/en/automation/crmscript/reference/CRMScript.NetServer.ServiceAuthStatus.md)
- [Save Service Auth](/en/api/reference/restful/agent/user_agent/save-service-auth.md)
- [Enum values for ServiceAuthStatus](/en/database/tables/enums/serviceauthstatus.md)
- [What's new in version 10.3.9.718](/release-notes/database/changes-10.3.9.md)
- [Released database changes in version 9.8.7717.1401](/release-notes/database/changes-9.2.md)
