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

# UserPreference table

> Preference system. If deflevel is set to 5; the user may change the preferences

## UserPreference Table (56)

Preference system. If deflevel is set to 5; the user may change the preferences

## Fields

| Name                      | Description                                                                | Type                                                | Nullable |
| ------------------------- | -------------------------------------------------------------------------- | --------------------------------------------------- | :------: |
| userpreference\_id        | Primary key                                                                | PK                                                  |    No    |
| deflevel                  | The level: 0=hard default, 1=systemwide, 2=database, 3=group, 4=individual | Enum [PreferenceLevel](./enums/preferencelevel.mdx) |    No    |
| maxlevel                  | Highest override level allowed                                             | Enum [PreferenceLevel](./enums/preferencelevel.mdx) |    No    |
| owner\_id                 | level=3: group; level=4: associate                                         | Id                                                  |    No    |
| prefsection               | Preference section name                                                    | String(199)                                         |    No    |
| prefkey                   | Preference key name                                                        | String(199)                                         |    No    |
| prefvalue                 | Preference value                                                           | String(2046)                                        |    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/i6M2qZmvMNH7UTeu/media/loc/en/database/tables/UserPreference.png?fit=max&auto=format&n=i6M2qZmvMNH7UTeu&q=85&s=f5bd63d4342d9055286081786628b0a2" alt="UserPreference table relationship diagram" width="647" height="59" data-path="media/loc/en/database/tables/UserPreference.png" />

## Indexes

| Fields                                    | Types                              | Description |
| ----------------------------------------- | ---------------------------------- | ----------- |
| deflevel                                  | Enum                               | Index       |
| owner\_id                                 | Id                                 | Index       |
| prefsection                               | String(199)                        | Index       |
| prefkey                                   | String(199)                        | Index       |
| prefsection, prefkey, deflevel, owner\_id | String(199), String(199), Enum, Id | Index       |

## Relationships

| Table                    | Description                                                        |
| ------------------------ | ------------------------------------------------------------------ |
| [associate](./associate) | Employees, resources and other users - except for External persons |
| [text](./text)           | Long text fields from all over the system                          |

## Replication Flags

* Area Management controlled table. Contents replicated to satellites and traveller databases.
* Replicate changes UP from satellites and travellers back to central.
* Copy to satellite and travel prototypes.

## Security Flags

* No access control via user's Role.


## Related topics

- [User preferences](/en/admin/user-preferences/index.md)
- [SuperOffice.WebApi.Data.UserPreferenceStrings](/en/api/reference/webapi/SuperOffice.WebApi.Data.UserPreferenceStrings.md)
- [What's new in version 11.10.705.0](/release-notes/database/changes-11.10.705.md)
- [What's new in version 11.7.727.0](/release-notes/database/changes-11.7.727.md)
- [What's new in version 11.8.788.0](/release-notes/database/changes-11.8.788.md)
- [What's new in version 11.9.1204.0](/release-notes/database/changes-11.9.1204.md)
