--- title: "Has permission" slug: "core-has-permission-rule" updated: 2026-04-13T08:27:49Z published: 2026-04-13T08:27:49Z canonical: "docs.lobstersoftware.com/core-has-permission-rule" --- > ## 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. # Has permission > [!NOTE] > **Rule types – Abstract** > > **Purpose:** Is considered 'passed' if at least one of the **Permissions** statically defined in the configuration of the rule is present in the context of the [Role of session](/v1/docs/en/base-session-role-value). > > > [!TIP] > > Tooltip > > > > - **Usage**: In the **Permissions** text field, *permission checks* (e.g. 'read' for read access) can be entered via text input, which can be formulated either absolutely or relatively (to the class of the *reference* *object*). The **Select** button opens an editor with the familiar tree view for permissions. The selection made there generates absolute paths for *permission checks* in the text field when closing. > > - **Parameter**: The **Permissions** text field with relative and absolute *permission checks*, can also be filled via the **Select** button using the editor. > > - **NOTE:** The check refers only to role permissions and not access to a specific object (depending on ownership or company approval). > > - **WARNING:** The *permission check* is always considered 'failed' if the specified *absolute* path does not exist or a *relative* path does not exist in the context of the entity type determined at runtime. ![images/download/attachments/201666070/image2021-9-20_15-33-12-version-1-modificationdate-1743176164599-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-9-20_15-33-12-version-1-modificationdate-1743176164599-api-v2.png) The [Has permission](/v1/docs/en/core-has-permission-rule) rule is considered 'passed' if at least one of the **Permissions** statically defined in the rule's configuration is present in the context of the [Role of session](/v1/docs/en/base-session-role-value). Each individual permission can be noted, either *absolutely* (e.g. `/businessObjects/shipment/workingState/create`) or *relatively* (e.g. `update` or `workingState/create`) (for details see 'Configuration'). **IMPORTANT:** The rule only checks whether the [Role of session](/v1/docs/en/base-session-role-value) grants a 'role permission' and not, for example, whether this permission can also be applied to a possibly existing specific *reference object* in the context of the [Company of session](/v1/docs/en/base-session-company-account-value) (taking ownership and [Company authorizations](/v1/docs/en/base-company-release) into account).. ## Configuration | The **Permissions** parameter is a [Text field](/v1/docs/en/custom-custom-text-field) that supports line breaks. Each text line defines a specific *permission check*, which is evaluated as either 'passed' or 'failed'. The rule as a whole is considered to be 'passed' if at least one *permissions* *check* is considered 'passed'. A single *permission check* can be noted either *absolutely* (by a 'path' starting from the root of the permissions tree) or *relatively* (by a 'path' starting from the permissions node for a given context). A *permissions check* in the *relative* notation can only be 'passed' if the data context provides a specific entity as a *reference object* or at least a type reference (`entityClass`) (see [Check type](/v1/docs/en/core-check-type-rule)). **CAUTION****:** The *permissions check* is always considered 'failed' if the specified *absolute* and *relative* path does not exist in the context of the entity type determined at runtime. The **Select** [Button](/v1/docs/en/fre-button-vo) opens an editor (see top right) that can be used to interactively select elements of the permissions tree. When **Apply** is clicked, the existing selection is converted to text format for **Permissions** and inserted into the [Text field](/v1/docs/en/custom-custom-text-field). The entries can be edited afterwards, e.g. to convert *absolute* paths into *relative* ones. | The following example shows three absolute paths followed by three relative ones: ![images/download/attachments/201666070/image2021-9-20_15-34-23-version-1-modificationdate-1743176164597-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-9-20_15-34-23-version-1-modificationdate-1743176164597-api-v2.png) ![images/download/attachments/201666070/image2021-9-20_15-34-50-version-1-modificationdate-1743176164594-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-9-20_15-34-50-version-1-modificationdate-1743176164594-api-v2.png) | Absolute paths for system tools: ![images/download/attachments/201666070/image2021-9-20_15-36-19-version-1-modificationdate-1743176164589-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-9-20_15-36-19-version-1-modificationdate-1743176164589-api-v2.png) | | --- | --- | --- | | An *absolute* permissions path always starts with a slash ('/') and refers to a specific permission or a specific node in the permissions tree. The *permissions check* for an *absolute* path is considered 'passed' if the [Role of session](/v1/docs/en/base-session-role-value) grants the specific permission or at least one permission below the addressed node. | In the example above, the first line addresses the permissions node for the [File manager](/v1/docs/en/ac-environment-filemanager), which bundles various permissions together. The following two rows concern specific permissions for the [Search builder](/v1/docs/en/administration-system-search-builder) and the 'Create' of general business objects of the 'MEMO' type. | Absolute path for a predetermined entity type: ![images/download/attachments/201666070/image2021-9-20_15-37-44-version-1-modificationdate-1743176164584-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-9-20_15-37-44-version-1-modificationdate-1743176164584-api-v2.png) | | A *relative* permissions path always starts with the name of a node that should address either a specific permission or a permission node that exists in the context of the entity type determined at runtime. The *permissions check* for a relative path is considered 'passed' if the [Role of session](/v1/docs/en/base-session-role-value) grants the specific permission or at least one permission below the addressed node. **IMPORTANT:** The *relative* notation is effective only in conjunction with appropriate entity types. In the context of portals and data objects that are not entities, only absolute permission checks are effective. | In the example above, rows 4 and 5 concern specific permissions ('Read', 'Delete') for an entity type *arbitrary* from the configuration point of view. The last row defines a check that is considered 'passed' if this entity type is authorized to 'print' tracking state entries in any print format. **NOTE:** The tree display on the right is only intended here to schematically reflect the criteria for the *relative* permissions checks in the example. The editor cannot be used directly to output *relative* paths without reference to an entity type. However, absolute paths can be created and then converted to relative ones. | Relative path for an 'arbitrary' `entityClass`: ![images/download/attachments/201666070/image2021-9-20_15-38-53-version-1-modificationdate-1743176164582-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-9-20_15-38-53-version-1-modificationdate-1743176164582-api-v2.png) | ## Example ### Simple example An association criterion should be considered 'passed' if the logged-in user has permission to choose the [Current locale](/v1/docs/en/core-current-locale-resolver) via the settings for the session ([Change locale](/v1/docs/en/gui-user-menu-locale)). Configuration: | The rule for the association criterion is configured as shown on the right: - In the **Permissions** parameter, the absolute path for the [Change locale](/v1/docs/en/gui-user-menu-locale) permission is entered. **NOTE:** The system does not require a configurator to know the complete permissions tree and the internal names of all contained nodes by heart and to type them in without error when configuring a [Has permission](/v1/docs/en/core-has-permission-rule) rule. The **Select** [Button](/v1/docs/en/fre-button-vo) opens an editor instead (see below), which can be used to specify absolute permissions paths by making a selection in the tree instead of entering text. | ![images/download/attachments/201666070/image2021-9-20_15-40-0-version-1-modificationdate-1743176164580-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-9-20_15-40-0-version-1-modificationdate-1743176164580-api-v2.png) | | --- | --- | | The editor for selecting **Permissions** contains – as usual (see [Roles](/v1/docs/en/base-role)) – a search function that can be used to filter the possibly quite extensive content in a targeted way. In the example on the right, after entering the text 'Localization' in the search field, only a manageable number of permissions nodes are visible, so that the permission searched for to [Change locale](/v1/docs/en/gui-user-menu-locale) can be quickly and reliably detected and transferred to the [Text field](/v1/docs/en/custom-custom-text-field) of the configuration via **Apply**. | ![images/download/attachments/201666070/image2021-9-20_15-40-51-version-1-modificationdate-1743176164568-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-9-20_15-40-51-version-1-modificationdate-1743176164568-api-v2.png) | ### More complex example An association criterion shall be considered 'passed' whenever the [Role of session](/v1/docs/en/base-session-role-value) in the context of any entity: - EITHER the permission to 'Show XML' AND at least one of the permissions 'Show details' OR 'Update' provides, - OR access granted to the [Search builder](/v1/docs/en/administration-system-search-builder) AND 'read' allowed for the entity type. Configuration: ![images/download/attachments/201666070/image2021-9-20_15-42-1-version-1-modificationdate-1743176164563-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-9-20_15-42-1-version-1-modificationdate-1743176164563-api-v2.png)