diff --git a/code_samples/data_migration/examples/update_user.yaml b/code_samples/data_migration/examples/update_user.yaml new file mode 100644 index 0000000000..b1a052c681 --- /dev/null +++ b/code_samples/data_migration/examples/update_user.yaml @@ -0,0 +1,8 @@ +- + type: user + mode: update + match: + field: login + value: admin + metadata: + password: '###XXX env("ADMIN_PASSWORD") XXX###' diff --git a/docs/content_management/data_migration/importing_data.md b/docs/content_management/data_migration/importing_data.md index d49e9ecd37..a159a64553 100644 --- a/docs/content_management/data_migration/importing_data.md +++ b/docs/content_management/data_migration/importing_data.md @@ -172,14 +172,7 @@ Built-in expression language functions that are tagged with `ibexa.migrations.te - `env` - retrieves the value of an environmental variable. ```yaml - - - type: user - mode: update - match: - field: login - value: admin - metadata: - password: '###XXX env("ADMIN_PASSWORD") XXX###' +[[= include_file('code_samples/data_migration/examples/update_user.yaml') =]] ``` #### Custom functions @@ -319,6 +312,12 @@ You can use an [action](data_migration_actions.md) to assign a role to the user. [[= include_file('code_samples/data_migration/examples/create_user.yaml') =]] ``` +You can also update user information, including passwords: + +``` yaml +[[= include_file('code_samples/data_migration/examples/update_user.yaml') =]] +``` + ### Languages The following example shows how to create a language. diff --git a/docs/ibexa_cloud/install_on_ibexa_cloud.md b/docs/ibexa_cloud/install_on_ibexa_cloud.md index 61003c20af..31e4274a9e 100644 --- a/docs/ibexa_cloud/install_on_ibexa_cloud.md +++ b/docs/ibexa_cloud/install_on_ibexa_cloud.md @@ -99,6 +99,9 @@ You can also use the [[[= product_name_cloud =]] CLI](https://cli.ibexa.cloud/) ibexa_cloud push master ``` +The [database installer](install_ibexa_dxp.md#create-a-database) runs in non-interactive mode and keeps the default password for the `admin` user. +Modify this password after the installation, for example, by using [data migrations](importing_data.md#users) or the [user management command](update_basic_user_data.md#change-password). + !!! note `master` is the Platform.sh name for the production branch.