--- title: "Roles" slug: "base-role" updated: 2026-05-28T07:02:49Z published: 2026-05-28T07:02:49Z canonical: "docs.lobstersoftware.com/base-role" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Roles The [Roles](/v1/docs/en/base-role) menu item can be found in the [Main menu](/v1/docs/en/gui-main-menu) via the "Administration/Accounts" menu node, provided there are sufficient permissions. By default, it opens an overview for the "Role" (`Role`) entity type, which lists all [Roles](/v1/docs/en/base-role) that the [Role of session](/v1/docs/en/base-session-role-value) can access. - **View name:** `de.lobster.scm.base.security.role::Role|listDetailsWindow` - **Menu node name:** `admin/accounts/roleOverview` Access to [Roles](/v1/docs/en/base-role) is regulated by the permissions for the "Administration/Accounts/Roles" node ((`administration/accounts/role`). - The [Roles](/v1/docs/en/base-role) menu item only appears if the permission "Show" (`show`) is available for [Roles](/v1/docs/en/base-role). - In contrast to other entities, only their position in the role hierarchy is decisive for accessing [Roles](/v1/docs/en/base-role). - Although an "owner" (`ownerId`) is formally identified for each entity of the "Role" type, there are effectively no owner restrictions for this entity type. - If the [Role of session](/v1/docs/en/base-session-role-value) takes owner restrictions into account, there is only access to [Roles](/v1/docs/en/base-role) that belong to the hierarchy downwards from this one because they are directly or indirectly subordinate to it. > [!WARNING] > **IMPORTANT:** Write access restricted for [Role of session](/v1/docs/en/base-session-role-value) > > Write access for the [Role of session](/v1/docs/en/base-session-role-value) is not permitted if it does not have the "Ignore owner restrictions" permission for [Roles](/v1/docs/en/base-role). > > - Without this permission, the "Save" and "Delete" *ribbon buttons* appear disabled if the [Role of session](/v1/docs/en/base-session-role-value) is selected. On the other hand, "Update" is also prevented in the automation context (e.g. via [Save changes later](/v1/docs/en/core-merge-later-once-actor) ) if it affects the [Role of session](/v1/docs/en/base-session-role-value) . > - Even with the "Ignore owner restrictions" permission for [Roles](/v1/docs/en/base-role) , updates to the [Role of session](/v1/docs/en/base-session-role-value) are restricted. Changes to the "Parent role" ( `parentRole` ) field and to the permissions ( `flatPermissions` ) are ignored on "Update". As already described in the [Users](/v1/docs/en/base-user) section, the effective access rights within a session result from the permissions for the [Role of session](/v1/docs/en/base-session-role-value) and – if owner restrictions are relevant – the ownership structure and, if applicable, [Company authorizations](/v1/docs/en/base-company-release) for the [Company of session](/v1/docs/en/base-session-company-account-value). The [Role of session](/v1/docs/en/base-session-role-value) categorically decides which permissions should always be available and, above all, which are always excluded. In order for permissions that relate to entities (such as "Update" for [Users](/v1/docs/en/base-user)) to be used effectively, access by the [Company of session](/v1/docs/en/base-session-company-account-value) to the individual entity must be guaranteed in addition to the basic permission for the [Role of session](/v1/docs/en/base-session-role-value). This is of course only the case for entities for which the [Company of session](/v1/docs/en/base-session-company-account-value) is the "owner". All access to entities owned by *other* [Companies/Clients](/v1/docs/en/base-company-account) requires [Company authorizations](/v1/docs/en/base-company-release). Special cases are entities to which no owner is assigned and special entity types (certain master data, e.g. also the "roles") for which no "owner restrictions" apply by definition. In both cases, permissions granted by the [Role of session](/v1/docs/en/base-session-role-value) can be exercised regardless of the [Company of session](/v1/docs/en/base-session-company-account-value). With regard to entity types for which ownership restrictions are fundamentally relevant, the [Company of session](/v1/docs/en/base-session-company-account-value) (via ownership and, if applicable, [Company authorizations](/v1/docs/en/base-company-release)) determines the scope in which the associated permissions of the [Role of session](/v1/docs/en/base-session-role-value) can be exercised. The permission structures for the definition of [Roles](/v1/docs/en/base-role) and [Company authorizations](/v1/docs/en/base-company-release) are largely similar, so that the overlaps (see example) can be easily understood and efficiently managed. However, the role definition also includes purely functional permissions (e.g. access to administrative tools) that are not covered by [Company authorizations](/v1/docs/en/base-company-release). Conversely, approvals can occasionally be granted for permissions that are contained in the permission structure of [Roles](/v1/docs/en/base-role). Specific example: - A [Role of session](/v1/docs/en/base-session-role-value) is used that allows a user to **Read** and **View** entities of the "Aircraft" ([Custom entity type](/v1/docs/en/custom-custom-entity-type) in *namespace* `custom`) type, but not to "Update", "Create", "Delete" (etc.). - The [Company of session](/v1/docs/en/base-session-company-account-value) is authorised by another company to not only **Read** but also **Update** the data of "Aircraft" entities in its possession. In this constellation, the user effectively has the following accesses for "Aircraft" entities in the context of the logged-in session: - The **View** role permission allows the user to open an overview for the "Aircraft" type. - Due to the **Read** company authorization, the overview lists not only custom "Aircraft" entities (owned by the [Company of session](/v1/docs/en/base-session-company-account-value)), but also those owned by the releasing company. - The **Update** company authorization is effectively ineffective, as the user is not allowed to update *custom* "Aircraft" entities without the corresponding role permission. | Permissions for [Role of session](/v1/docs/en/base-session-role-value) | [Company authorizations](/v1/docs/en/base-company-release) **for** [Company of session](/v1/docs/en/base-session-company-account-value) | | --- | --- | | [Role of session](/v1/docs/en/base-session-role-value) permissions for "Aircraft" entities : ![images/download/attachments/201682611/image-2025-6-3_18-8-1-version-1-modificationdate-1748966880628-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-6-3_18-8-1-version-1-modificationdate-1748966880628-api-v2.png) | Another company grants the [Company of session](/v1/docs/en/base-session-company-account-value) the following permissions, among others, for the "Aircraft" entities in its possession in the context of a company release: ![images/download/attachments/201682611/image-2025-6-3_18-6-12-version-1-modificationdate-1748966772202-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-6-3_18-6-12-version-1-modificationdate-1748966772202-api-v2.png) | | ![images/download/attachments/201682611/image-2025-6-3_18-2-28-1-version-1-modificationdate-1748966547784-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-6-3_18-2-28-1-version-1-modificationdate-1748966547784-api-v2.png) Permissions granted by [Company authorizations](/v1/docs/en/base-company-release) (*here*: **Read**, **Update**) can only extend the scope for permissions granted by the [Role of session](/v1/docs/en/base-session-role-value), which relate to access to entities with owner restrictions, quantitatively (*here*: **Read**) but cannot supplement qualitatively "missing" role permissions (*here*: **Update**). **NOTE:** The permission to **View** only controls access to menu entries in the [Main menu](/v1/docs/en/gui-main-menu) for the "Aircraft" entity type, so owner restrictions for individual entities do not play a role. Otherwise, this permission would also exist in the tree for company authorizations. | By default, the interactive administration for [Roles](/v1/docs/en/base-role) is based on a combined view (`listDetailsWindow`), which can be opened via the [Roles](/v1/docs/en/base-role) menu item in the [Main menu](/v1/docs/en/gui-main-menu). The following screenshot shows the default *ribbon* (for a role with all relevant permissions), below the default input form with the details of the role selected in the list area (at the bottom). ![](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-UWFY8DQS.png) ## Contents of the default input form The data input form provided as default for [Roles](/v1/docs/en/base-role) maps the contents of the data structure for [Roles](/v1/docs/en/base-role) relevant for direct interactive maintenance via [Form elements](/v1/docs/en/fre-form-elements). | Field | Data field path | Example values | Contents | | --- | --- | --- | --- | | **Active** | `active` | `$true (boolean)` | The **Active** checkbox must be ticked so that a role can be used to log in to a session. | | **Role name** | `roleName` | "Admin (accounts)" | The **Role name** must be unique throughout the system. Saving is otherwise rejected with an error message. | | **Login via DMZ** | `loginViaDmz` | `$true (boolean)` *Default value* | The **Login via DMZ** checkbox must be selected in order for a role to be used to log in to a session *via DMZ* (see [DMZ-Server](/v1/docs/intro-dmz)). For a *direct* login ("without DMZ"), the role is available regardless of this flag. The *default value* `$true` allows a role to be used without restriction with or without a DMZ, which corresponds to the behavior prior to the implementation of this feature (as of version 25.1). When upgrading from an earlier version, this feature is set for existing [Roles](/v1/docs/en/base-role). --- **NOTE:** The **Login via DMZ** flag is only relevant if **Lobster Data Platform** is running in a DMZ environment. In that case, sessions can be established via two different URLs, either *directly* or *via DMZ* Direct access is generally available only to a privileged group of users, who typically also have administrative [Roles](/v1/docs/en/base-role) roles with extensive permissions. If the **Login via DMZ** flag is cleared for such roles, they can only be used to establish sessions via the URL for *direct* access. In contrast, appropriately restricted [Roles](/v1/docs/en/base-role) can be specifically enabled for **Login via DMZ** by setting the appropriate flag, thereby allowing a "wider audience" to log in via the DMZ server’s URL, which is typically easier to access. --- **NOTE:** The **Login via DMZ** flag is not a permission. Selecting or deselecting it has an effect independent of the setting for the parent [Roles](/v1/docs/en/base-role). | | *Localizations* **German** **English** **French** | [Localization](/v1/docs/en/core-localization-entry) or [Company specific localization](/v1/docs/en/core-owner-based-localization-overrides) can be used to optionally define localizations for role names that override the **Role names** in selected contexts (e.g. role selection when logging in for [Users](/v1/docs/en/base-user)). The associated *bundle* is called role name. The **Role name** (`roleName`) is used as a *resource*. Localization entries for [Roles](/v1/docs/en/base-role) are not automatically generated. To make it easier to localize [Roles](/v1/docs/en/base-role), the input form provides a text field for each supported [Locale](/v1/docs/en/core-locale), which can be used to create, update and delete localizations. --- - Localizations are not contained in the data model for [Roles](/v1/docs/en/base-role), but relate to localization entries in the [Localization](/v1/docs/en/core-localization-entry). - Adjustments made in the input form nevertheless only take effect when the relevant role is "saved". - The text fields for localizations only appear if the [Role of session](/v1/docs/en/base-session-role-value) has the permissions to "Create" and "Update" for "Administration/configuration/localization". **NOTE:** [Company specific localization](/v1/docs/en/core-owner-based-localization-overrides) is not mapped to the text fields in the input form, but may still influence the output in the **Translation** column in the list area if it affects the [Current locale](/v1/docs/en/core-current-locale-resolver). Maintenance is carried out exclusively via the [Company specific localization](/v1/docs/en/core-owner-based-localization-overrides) menu item. | | **Parent role** | `parentRole` | "QTIP", "Hidden role" | Single selection for the **Parent role** that localises a role in the *role hierarchy*. | | **NOTE:** The label "Hidden role" appears in the [Combobox](/v1/docs/en/fre-combo-box-vo) element for [Roles](/v1/docs/en/base-role) that are already assigned and can therefore be removed in the context of the current session but cannot be selected again afterwards. If owner restrictions are relevant for the [Role of session](/v1/docs/en/base-session-role-value), only [Roles](/v1/docs/en/base-role) from the *role hierarchy* downwards from the [Role of session](/v1/docs/en/base-session-role-value) are available as **Parent roles**. **IMPORTANT:** A role with a **Parent role** indicated as "Hidden role", may be updated but not created. This may be a relevant constraint for copying an existing role. It may be necessary to replace a hidden **Parent role** by one that can be selected, to enable saving the copied role. **NOTE:** The **Parent role** column in the list area will always feature the **Role name*,*** even for roles indicated as "Hidden role" in the [Combobox](/v1/docs/en/fre-combo-box-vo). This may sound strange, but that’s the way it is. After all, the intention of hiding a role is not to conceal the **Role name**, but to limit eligible options. | | **Role description** | `roleDescription` | "Administration of user accounts" | A **Role description** describing the designation of a role in plain text is optional*.* | | **Mode** | `flatPermissions[]` | "All" (`*`) --- "All but consider owner restriction" (`~`) | - The **Mode** "All" (`*`) forwards all permissions granted to the **Parent role**. --- - The **Mode** "All but consider owner restriction" (`~`) forwards all permissions granted to the **Parent role** except "Ignore owner restriction" (`ignoreOwnerRestriction`). | | **Permissions** | "Custom" | - The **Mode** "Custom" features all permissions granted to the **Parent role** in a tree view under **Permissions** for (de-)selection. Initially, allpermissions are deselected. | ### Details for permission mode "Custom" Permissions are granted or denied by checkingor unchecking them in the *permission tree*. The tree view applies the individual permissions over several levels, which can also be selected or deselected as a whole. | ![images/download/attachments/201682611/image-2025-6-3_18-4-11-version-1-modificationdate-1748966651055-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-6-3_18-4-11-version-1-modificationdate-1748966651055-api-v2.png) | One of the following three status applies for each group node in the tree: - A "tick" indicates that all child permissions below are granted (checked). - An "empty box" indicates that all child permissions below are denied. (unchecked). - A "completed box" indicates that the child permissions below are partially granted and partially denied. **IMPORTANT:** The tree view only contains permissions (and parent group nodes), that are "granted" to the parent role, according to its current definition. The indication of group node status – as described above – considers only elements of the tree that are present in the current structure. This restriction also applies, when the the tree is filtered by a search as described below. By entering a string into the *search field* triggers a search for permissions or group nodes with matching labels. The search is started by the "Enter" key and reduces the tree view to branches containing a match. Permissions or group nodes presented as search results can be checked or unchecked. The full tree view can be restored by clearing the *search field* and pressing "Enter" or clicking the "x" symbol, that replaces the magnifying glass icon left of the *search field*, when search results are displayed. | | --- | --- | | **NOTE:** As show in the screenshot, the string in the *search field* may contain RegExp control characters `^` (for beginning of text) and `$` (for end of text), to control the matching logic of a search: | | ![images/download/attachments/201682611/image-2025-6-3_18-5-17-version-1-modificationdate-1748966717184-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-6-3_18-5-17-version-1-modificationdate-1748966717184-api-v2.png) | Without control characters, elements in the permission tree are considered as matches if their label contains a given search string (*here:* aircraft) with non-case-sensitive matching. As shown in the screenshot on the left, this produces additional matches, since the tree contains another node with permissions for the [Input forms](/v1/docs/en/base-entity-form) for the "Aircraft" entity type in the "Configuration" group. To avoid the unwanted match of "custom_Aircraft", entering `^air` as a *search string* (→begins with "air") would have been effective. In contrast, entering `craft$` as a *search string* (→end with "craft") would have produce the same two matches as shown in the screenshot. **NOTE:** Even if the two control characters used in the example might suggest otherwise, more complex regular expressions are not processed as *search* *strings*. | > [!CAUTION] > **CAUTION****:** Roles may contain "latent" permissions > > If the scope of permissions granted to a role is reduced, respective permissions are also effectively denied for direct and indirect child roles. Consequently, these roles disappear from the tree views for those roles. However, if a child role had been explicitly granted a certain permission before, that definition remains latently assigned, as long as the child role definition is not updated. In this case, reassigning the permission to the parent role or assigning a new parent role with the respective permission granted, will immediately grant any "latent" permissions to the child role again.