--- title: "Mail address guest user" slug: "base-guest-user-mail-address-resolver" updated: 2026-04-16T07:06:43Z published: 2026-04-16T07:06:43Z canonical: "docs.lobstersoftware.com/base-guest-user-mail-address-resolver" --- > ## 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. # Mail address guest user *See also:* [Mail address user](/v1/docs/en/base-user-mail-address-resolver) value reolver > [!NOTE] > Value resolver – Abstract > > **Purpose:** Reads the "E-mail address" property of a guest user account, either optionally as an *input value* or as a [User of session](/v1/docs/en/base-session-user-value), and returns this address (if present) as an element of a string list. > > > [!TIP] > > Tooltip > > > > - **Usage**: The value resolver evaluates a guest user account defined either as *input value* (see **Use input** **value** parameter) or as [User of session](/v1/docs/en/base-session-user-value). The "E-mail address" property is read there and returned as the only entry of a string list, if available. > > - **Parameter**: If the **Use input value** option is selected, the value resolver expects a guest user account as *input value*. In the absence of a selection, the [User of session](/v1/docs/en/base-session-user-value) is assumed to be a guest user for the evaluation. > > - **NOTE:** Access is granted without regard to access restrictions for the guest user account in question. ![images/download/attachments/91132152/image2022-1-24_10-27-28-version-1-modificationdate-1643016448952-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-1-24_10-27-28-version-1-modificationdate-1643016448952-api-v2.png) The [Mail address guest user](/v1/docs/en/base-guest-user-mail-address-resolver) value resolver returns the "E-mail address" (`emailAddress`) field of a guest user account (see [Guest users](/v1/docs/en/base-guest-user)) that is optionally defined using one of the following methods: - If the **Use input value** option is not selected (default), then it is assumed that a guest user is logged in for the current session. Its account is evaluated if it is considered as the [User of session](/v1/docs/en/base-session-user-value) in the execution context of the value resolver. - If the **Use input value** option is selected, then it is assumed that the guest user account evaluated is the input value for the value resolver. If successful, the *return value* of the value resolver is a list of strings (`string[]`) containing exactly one entry for [Guest users](/v1/docs/en/base-guest-user), namely the value from the "E-mail address" (`emailAddress`) field of the evaluated guest user. **NOTE:** Even a single match is returned as an element of a list, so a value resolver (e.g. [List item](/v1/docs/en/core-list-item-resolver) or [Rule list resolver](/v1/docs/en/core-list-rule-resolver)) may have to be used to access the single value directly. However, this does not matter in the typical environment within a [E-mail](/v1/docs/en/core-send-mail-actor) event action, since strings or lists of strings are accepted there when addressing e-mails (in the "Recipient", "CC" and "BCC" parameters) The *return value* of the resolver, on the other hand, is "no value" (`null`) if at least one of the following conditions applies: - The method selected to determine a guest user account, depending on the **Use input value** option, does not return a guest user account. This is true in the following cases: - The **Use input value** option is selected, but at runtime the input value for the value resolver is not a guest user. - The **Use input value** option is deselected, but at runtime the [User of session](/v1/docs/en/base-session-user-value) is not a guest user in the context of the value resolver. This occurs when one of the following conditions is met: - A full user (see [Users](/v1/docs/en/base-user) and, if applicable, [Mail address user](/v1/docs/en/base-user-mail-address-resolver)) is logged in to the current session. - In the current session, a guest user (see [Guest users](/v1/docs/en/base-guest-user)) is logged in, but the value resolver is executed (directly or indirectly) within a [Run as](/v1/docs/en/base-run-as-actor) event action that temporarily defines a full user (see [Users](/v1/docs/en/base-user)) as [User of session](/v1/docs/en/base-session-user-value). - The evaluated guest user account does not contain a value in the "E-mail address" (`emailAddress`) field. **NOTE:** The evaluation of a guest user account by the [Mail address guest user](/v1/docs/en/base-guest-user-mail-address-resolver) value resolver is performed without any regard to access restrictions that apply in the execution context ([Role of session](/v1/docs/en/base-session-role-value), [Company of session](/v1/docs/en/base-session-company-account-value), [Run as](/v1/docs/en/base-run-as-actor)) for the relevant guest user account. The value resolver can therefore also access any [Guest users](/v1/docs/en/base-guest-user) communication information that does not appear, for example, in a [Search](/v1/docs/en/core-search) or overview with the same login data. ## Configuration | If the **Use input value** option is selected, then the value resolver expects a data object of the "Guest user account" type as an *input value*. This can also be volatile (unsaved) data of a new guest user, as passed to the `createdGuestUser` variable, for example, in the context of the [Create guest user](/v1/docs/en/base-create-guest-user-actor) event action. | ![images/download/attachments/91132152/image2022-1-24_10-28-6-version-1-modificationdate-1643016486772-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-1-24_10-28-6-version-1-modificationdate-1643016486772-api-v2.png) | | --- | --- | | If the **Use input value** option is selected, then a guest user is expected as the [User of session](/v1/docs/en/base-session-user-value) in the context of the value resolver. This is only true if the current session is being run with a guest user login and no [Execute with](/v1/docs/en/core-with-actor) event action has been used in the direct or indirect execution context of the value resolver, which refers to a full user (see [Users](/v1/docs/en/base-user)) defined as the [User of session](/v1/docs/en/base-session-user-value). | ![images/download/attachments/91132152/image2022-1-24_10-27-38-version-1-modificationdate-1643016459037-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-1-24_10-27-38-version-1-modificationdate-1643016459037-api-v2.png) | ## Examples ## Example: Access to the e-mail address of the logged-in guest user When a particular interaction causes an e-mail notification to be sent to affected entities in a business object, the "trigger" itself should also receive a "blind copy" (BCC) of the message. This process should generally apply to both [Users](/v1/docs/en/base-user) and [Guest users](/v1/docs/en/base-guest-user). [Users](/v1/docs/en/base-user) should only be notified if an e-mail address for the "BCC" context is saved in the user account. Configuration: | Within the configuration of a [E-mail](/v1/docs/en/core-send-mail-actor) event action, which regulates the notification, the **Bcc** tab is opened in the image, which defines the recipients for the "blind copy": - Via the ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/add.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/add(47).svg) icon two entries for recipient definitions have been added here: - The first entry uses the [Mail address user](/v1/docs/en/base-user-mail-address-resolver) value resolver, which only returns one or more recipient addresses in the context of a regular login, as far as specified in the user account for the "BCC" context. - The second entry uses the [Mail address guest user](/v1/docs/en/base-guest-user-mail-address-resolver) value resolver with the **Use input value** option deselected, so that in the context of a guest user login, the e-mail address from the guest user account used is added as the addressee for a blind copy. **NOTE:** At runtime – depending on whether the [User of session](/v1/docs/en/base-session-user-value) is a user or a guest user – only exactly one of the two configured value resolvers will "deliver" e-mail address data at any time. | ![images/download/attachments/91132152/image2022-1-24_10-30-9-version-1-modificationdate-1643016609526-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-1-24_10-30-9-version-1-modificationdate-1643016609526-api-v2.png) | | --- | --- | **NOTE:** If the [E-mail](/v1/docs/en/core-send-mail-actor) is executed in a context where a [Run as](/v1/docs/en/base-run-as-actor) event action explicitly refers to a user different from the actual login, the user is considered the [User of session](/v1/docs/en/base-session-user-value). Then only the [Mail address user](/v1/docs/en/base-user-mail-address-resolver) value resolver can provide an e-mail address if it is stored in the specified user account. The actual logged in [Users](/v1/docs/en/base-user) or [Guest users](/v1/docs/en/base-guest-user) will then not be notified. ### Example: Access to the e-mail address of any guest user account An event handler in **Lobster Data Platform/Orchestration** triggered every night by a Lobster_data CronJob sends an e-mail warning to all [Guest users](/v1/docs/en/base-guest-user) whose accounts are due to expire within the next 48 hours, according to the time specified for the "Valid to" (`validTo`) field. | Within event handling, the two event actions shown on the right are configured: - First of all, a [Search (Event action)](/v1/docs/en/core-search-actor) is executed, which will not be discussed in detail here. A [Search](/v1/docs/en/core-search) is executed which passes a list of all [Guest users](/v1/docs/en/base-guest-user) into a variable named `expiringGuestUsers` for which the following conditions are true: - The guest user account is currently "active". - The number of registrations granted is unlimited or not yet used up. - There is an entry for "Valid until" that is still in the future, but no more than 48 hours after the "Begin of today". - Subsequently, a [For each loop](/v1/docs/en/core-for-each-entity-actor) is executed, which runs through all entries in the list determined by the [Search (Event action)](/v1/docs/en/core-search-actor): - The **Resolver for entities** is a [Variable](/v1/docs/en/core-storage-value) value resolver that expects a list of entities of the "Guest user" type. - Within the loop, a [E-mail](/v1/docs/en/core-send-mail-actor) event action is executed, which sends the notification to the listed [Guest users](/v1/docs/en/base-guest-user). The screenshot shows the **Recipient** tab, where the [Mail address guest user](/v1/docs/en/base-guest-user-mail-address-resolver) value resolver is used to determine the "E-mail address". The **Use input value** option specifies that the evaluated guest user account should be available as an *input value* for the value resolver. This is guaranteed here within the loop without further measures. **NOTE:** Basically, all access restrictions applicable in the login context apply to the [Search (Event action)](/v1/docs/en/core-search-actor). The list passed as the "search value" can therefore only contain [Guest users](/v1/docs/en/base-guest-user) entities for which at least read access is guaranteed. In the present context, the event is triggered periodically starting from Lobster_data via a CronJob, where a [Single import](/v1/docs/en/core-import) triggers the `DISPATCH_EVENT` action for a [Custom action event](/v1/docs/en/core-custom-action-events). The login context for event processing in **Lobster Data Platform/Orchestration** is defined within the profile definition (response path or mapping, if applicable). Depending on the specific objective, a combination of [Role](/v1/docs/en/base-role-value) and [Company value](/v1/docs/en/base-company-account-value) can be selected to control whether the notification is executed for all [Guest users](/v1/docs/en/base-guest-user) that will soon expire or only for accounts that are "visible" from the perspective of a specific [Company of session](/v1/docs/en/base-session-company-account-value) due to ownership and, if applicable, [Company authorizations](/v1/docs/en/base-company-release). **NOTE:** It should be considered that the [Company of session](/v1/docs/en/base-session-company-account-value) selected for the login context is also the owner of any [E-mails](/v1/docs/en/administration-system-mail) generated, if they are saved as an object in **Lobster Data Platform/Orchestration**. | ![images/download/attachments/91132152/image2022-1-24_10-34-7-version-1-modificationdate-1643016847170-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-1-24_10-34-7-version-1-modificationdate-1643016847170-api-v2.png) | | --- | --- |