--- title: "Create password reset token" slug: "core-reset-user-password-actor-configuration" updated: 2026-04-01T08:28:53Z published: 2026-04-01T08:28:53Z canonical: "docs.lobstersoftware.com/core-reset-user-password-actor-configuration" --- > ## 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. # Create password reset token > [!NOTE] > Event action – Abstract > > **Purpose:** Assigns a newly generated 'Password token' (base64 string) to a user account, which can be used to assign a new password without logging in. > > > [!TIP] > > Tooltip > > > > - **Usage:** The event action expects a user account as a *reference object*, which must have at least one communication information with [Communication type](/v1/docs/en/base-communication-type) 'E-mail' (`EMAIL`). If this is the case, a base64 string is assigned to the hidden 'Password reset token' property (`lastResetPasswordToken`) of the user account and this is marked for saving at the end of the transaction. The **Dispatch Password-Request-Event** option can also be used to trigger the event 'Password: Reset requested' for the user account, to which an event handling for notifying the user is typically linked (see ['Forgot password' function](/v1/docs/en/administration-forgot-password)). For this context, a default should be defined for the **Application Base URL**. > > - **Parameter:** > > - The **Dispatch Password-Request-Event** option defines whether the 'Password: Reset requested' event should be triggered for the user account. > > - In conjunction with this option, the **Application Base URL** should be specified, otherwise the event for links will use the text 'null' as the base URL. > > - **NOTE:** The generated token can be used for a limited time (by default: 24 hours) as a value for the URL parameter `pwdRequestToken` in order to be able to assign a new password to the associated user account without logging in. ![images/download/attachments/153256746/image-2024-5-22_9-31-53-version-1-modificationdate-1716363113042-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-5-22_9-31-53-version-1-modificationdate-1716363113042-api-v2.png) > [!NOTE] > Background: What is a password token used for? > > Typically, the **Lobster Data Platform/Orchestration** client is started with a token string for the URL parameter `pwdRequestToken` after a user uses the ['Forgot password' function](/v1/docs/en/administration-forgot-password) in the login dialog to request an e-mail with a corresponding link. The user can use the link with the 'Password token' to set a new password for their user account within a limited validity period from the time of creation (*default*: 24 hours). > > The [Create password reset token](/v1/docs/en/core-reset-user-password-actor-configuration) event action does not actually play a role in this interactively triggered process. Rather, it is used to automatically set a user account to a state in which a 'Password token' can be used to change the password. > > Optionally, the event 'Password; Reset requested' (see [Password action (Events)](/v1/docs/en/base-pass-word-action-event)) can also be triggered, which usually causes an e-mail message with a link (incl. token) to be sent to the user (see ['Forgot password' function](/v1/docs/en/administration-forgot-password)). The [Create password reset token](/v1/docs/en/core-reset-user-password-actor-configuration) event action expects a user account (see [Users](/v1/docs/en/base-user)) as the *reference object* to which a new Base64-encoded password token is assigned. The character string for the created token is assigned as a value to the hidden property 'Password reset token' (`lastResetPasswordToken`) in this user account. --- **CAUTION****:** A token is only created if the relevant user account has at least one communication information attribute with the [Communication type](/v1/docs/en/base-communication-type) 'E-mail' (`EMAIL`). --- When a new password is set for the user account, the token becomes invalid and the 'Password reset token' (`lastResetPasswordToken`) field is deleted again. If the validity of an unused token expires, the text value in the 'Password reset token' (`lastResetPasswordToken`) property is retained. However, the token can no longer be used to change the password. --- **IMPORTANT:** The user account available as a *reference object* is flagged for saving (see [Save changes later](/v1/docs/en/core-merge-later-once-actor)) so that the change for the 'Password reset token' (`lastResetPasswordToken`) field is retained in the *commit*. - If there is no write access for the user account in the execution context, an error with *rollback* occurs for the transaction. - The save flag also applies to all changes to the relevant user account that are made before and after the [Create password reset token](/v1/docs/en/core-reset-user-password-actor-configuration) event action is executed in the context of the transaction. --- The **Dispatch Password-Request-Event** option can be used to additionally trigger the 'Password: Reset requested' event (see [Password action (Events)](/v1/docs/en/base-pass-word-action-event)) for the user account available as a *reference object*, which is also triggered in the context of the ['Forgot password' function](/v1/docs/en/administration-forgot-password). If the **Dispatch Password-Request-Event** option is selected, the **Application Base URL** parameter should be used to define the base URL for the **Lobster Data Platform/Orchestration** client to which the user in question should be referred for the password change via link. ## Configuration The user account for which a password token is to be created must exist as a *reference object* for the [Create password reset token](/v1/docs/en/core-reset-user-password-actor-configuration) event action. If this is not guaranteed by the triggering event (e.g. create or change), this reference must be established via a suitable event action – e.g. [Execute with](/v1/docs/en/core-with-actor) or [For each loop](/v1/docs/en/core-for-each-entity-actor). **NOTE:** If there is no user account as a *reference object* in the context of the [Create password reset token](/v1/docs/en/core-reset-user-password-actor-configuration) event action, the event action has no effect. However, no error will occur. | Parameter | Description | Example | | --- | --- | --- | | **Dispatch Password-Request-Event** *option* | The **Dispatch Password-Request-Event** option is unchecked by default. It can be checked to trigger the 'Password: Reset requested' event (see [Password action (Events)](/v1/docs/en/base-pass-word-action-event)) for the user account specified as the *reference* *object* in order to execute workflows created for the ['Forgot password' function](/v1/docs/en/administration-forgot-password). | **![images/download/attachments/153256746/image-2024-5-22_9-34-48-version-1-modificationdate-1716363288537-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-5-22_9-34-48-version-1-modificationdate-1716363288537-api-v2.png)** **NOTE:** If required, the base URL applicable in the execution context of the event action can be determined via the [Session information](/v1/docs/en/core-session-information-resolver) value resolver from the `additionalData`-*Map* with the key (or via [Object property](/v1/docs/en/core-property-resolver)) `serverURL`. | | **Application Base URL** *text value* | If the **Dispatch Password-Request-Event** option is checked, this parameter should be used to specify the 'base URL' for accessing **Lobster Data Platform/Orchestration**, which the user should use to establish a new password. By default, the optional **Application Base URL** parameter allows the direct input of text. By clicking on the small gray arrow (bottom left in the text field), the user interface switches to the *value configuration*. **IMPORTANT:** Even if the parameter appears optional, a value assignment (via direct input or value resolver) should not be omitted if the [Create password reset token](/v1/docs/en/core-reset-user-password-actor-configuration) event is triggered. Otherwise, the text 'null' will appear in the links that this event provides via variables instead of a base URL. A link such as `null?pwdRequestToken=... `is then effectively useless. | ## Example A custom overview (see [Custom overviews](/v1/docs/en/administration-designer-client-preferences-overview)) only shows [Users](/v1/docs/en/base-user) for whom the following conditions are met: - The 'active' property has the value `false`. The user account is therefore 'inactive'. - The account address contains at least one piece of communication information of the [Communication type](/v1/docs/en/base-communication-type) 'E-mail' (`EMAIL`). A button is offered for the 'Administrator' role in the overview ribbon, which triggers a [Custom action event](/v1/docs/en/core-custom-action-events) 'Reactivate user' (`REACTIVATE_USER`) for a single or multiple selection. An event handling for this event should 'Reactivate' the user account and ensure that the user in question receives a link with a 'Password token' by e-mail, which can be used to assign a new password for the account: - For general users, the link should use the base URL '`https://common.doma.in`'. - For users in whose address the flag attribute 'VIP' (`VIP`) is set, the base URL in the link should be '`https://vip.doma.in`'. Configuration: | The **Triggering event** is a [Custom action event](/v1/docs/en/core-custom-action-events) ('Reactivate user') that has been set up specifically for this workflow and is called up via a ribbon macro. --- A **Validating rule** is a [Check type](/v1/docs/en/core-check-type-rule) for the 'User' entity type. Further checks can be omitted here, as the context of the custom overview with the ribbon marker contains the corresponding restrictions (only 'inactive' users with e-mail address as 'communication information'). --- The following two event actions are executed under the **Action on passed rule**: - A [Set value](/v1/docs/en/core-set-value-actor) event action 'activates' the user account available as a *reference object* by assigning the Boolean value `true` to the 'active' (`active`) property. - The [Create password reset token](/v1/docs/en/core-reset-user-password-actor-configuration) event action generates a token that is automatically assigned as a value to the user account in the 'Password reset token' property (`lastResetPasswordToken`). At the same time, this user account is marked for saving when the transaction is completed. Everything else is regulated by the parameters: - The **Dispatch Password-Request-Event** option ensures that the 'Password: Reset requested' event is triggered for the user account available as a *reference object*. We assume that this event triggers a notification of the 'reactivated' user by e-mail (in another event handling). - The **Application Base URL** parameter assigns the 'appropriate' URL (stored as static text for each branch in the case differentiation) for the link in the message, depending on the VIP status of the user: - First, the [Object property](/v1/docs/en/core-property-resolver) value resolver resolves the address (`address`) as the *input value* for the case differentiation. - The [Conditional value](/v1/docs/en/core-conditional-value-resolver) resolver can evaluate the **Flag type** 'VIP' (`VIP`) directly via a [Flag attribute rule](/v1/docs/en/base-flag-attribute-rule). | ![images/download/attachments/153256746/image-2024-5-23_10-14-29-version-1-modificationdate-1716452069030-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-5-23_10-14-29-version-1-modificationdate-1716452069030-api-v2.png)![images/download/attachments/153256746/image-2024-5-23_10-16-41-version-1-modificationdate-1716452201058-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-5-23_10-16-41-version-1-modificationdate-1716452201058-api-v2.png) | | --- | --- |