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

# ej_role table

> Define access rights, memberships and other properties for role user members

## ej\_role Table (323)

Define access rights, memberships and other properties for role user members

## Fields

| Name             | Description                                   | Type                            | Nullable |
| ---------------- | --------------------------------------------- | ------------------------------- | :------: |
| id               | The primary key (auto-incremented)            | PK                              |    No    |
| name             | This is the name of the role                  | String(255)                     |    Yes   |
| use\_user\_group | Override user user group with role            | Bool                            |    Yes   |
| user\_group      | The group this user is member of              | FK [hierarchy](./hierarchy.mdx) |    No    |
| access\_mask     | Access mask for users using this role         | Int                             |    Yes   |
| access\_values   | Access values for users using this role       | Int                             |    Yes   |
| use\_categories  | Override user categories with role categories | Bool                            |    Yes   |

<img src="https://mintcdn.com/superofficeas/i6M2qZmvMNH7UTeu/media/loc/en/database/tables/ej_role.png?fit=max&auto=format&n=i6M2qZmvMNH7UTeu&q=85&s=341300c2f3173a3a006d22d7497539d4" alt="ej_role table relationship diagram" width="811" height="736" data-path="media/loc/en/database/tables/ej_role.png" />

## Indexes

| Fields      | Types | Description |
| ----------- | ----- | ----------- |
| user\_group | FK    | Index       |

## Relationships

| Table                             | Description                                                               |
| --------------------------------- | ------------------------------------------------------------------------- |
| [hierarchy](./hierarchy)          | This table contains folders used to group the extra tables in the system. |
| [role\_category](./role-category) | Category membership associated with a role                                |
| [role\_element](./role-element)   | Profiles associated with a role                                           |
| [role\_member](./role-member)     | Users linked to a role. Deprecated.                                       |
| [role\_workflow](./role-workflow) | Knowledge base workflow access rights associated with a role              |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [role_member table](/en/database/tables/role-member.md)
- [role_category table](/en/database/tables/role-category.md)
- [role_element table](/en/database/tables/role-element.md)
- [role_workflow table](/en/database/tables/role-workflow.md)
- [ej_message table](/en/database/tables/ej-message.md)
- [ej_category table](/en/database/tables/ej-category.md)
