From 3826a315671c344abdb79aa683c6a1e4c0a819b1 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Mon, 24 Mar 2025 14:54:12 +0000 Subject: [PATCH 1/5] fix(admin_manual/occ_command): remove duplicating `user:keys:verify` Signed-off-by: Grigorii K. Shartsev --- admin_manual/occ_command.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/admin_manual/occ_command.rst b/admin_manual/occ_command.rst index 8ed4a218226..eb384c8832b 100644 --- a/admin_manual/occ_command.rst +++ b/admin_manual/occ_command.rst @@ -1420,8 +1420,6 @@ report showing how many users you have, and when a user was last logged in:: user:report shows how many users have access user:resetpassword Resets the password of the named user user:setting Read and modify user settings - user:keys:verify Verify that the stored public key matches - the stored private key user:add From adb9b420f493a45f48e8fa38fcdb05bec3f49dc4 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Mon, 24 Mar 2025 15:15:31 +0000 Subject: [PATCH 2/5] feat(admin_manual/occ_command): add `user:sync-account-data` Signed-off-by: Grigorii K. Shartsev --- admin_manual/occ_command.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/admin_manual/occ_command.rst b/admin_manual/occ_command.rst index eb384c8832b..1ac3d60deb9 100644 --- a/admin_manual/occ_command.rst +++ b/admin_manual/occ_command.rst @@ -1420,6 +1420,7 @@ report showing how many users you have, and when a user was last logged in:: user:report shows how many users have access user:resetpassword Resets the password of the named user user:setting Read and modify user settings + user:sync-account-data sync user backend data to accounts table for configured users user:add @@ -1589,6 +1590,16 @@ user:list You can use the command ``user:list`` to list users. By default it will limit the output to 500 users but you can override that with options ``--limit`` and ``--offset``. Use ``--disabled`` to only list disabled users. +user:sync-account-data +^^^^^^^^^^^^^^^^^^^^^^ + +Usually, the account data in the Nextcloud instance database (``oc_accounts``) is updated once a change on another user backend (for example, SAML) is detected. +However, in case of an error or bugs in the past, the state between the user backend and the ``oc_accounts`` table might become inconsistent. + +You can manually sync user backend data to accounts table with the ``user:sync-account-data`` command:: + + user:sync-account-data [-l|--limit=500] [-o|--offset=0] + .. _group_commands_label: Group commands From ffd5cd09926afa4157e6696d1081dbac6247109d Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Tue, 25 Mar 2025 20:14:22 +0000 Subject: [PATCH 3/5] feat(admin_manual/occ_command): add `user:welcome` Signed-off-by: Grigorii K. Shartsev --- admin_manual/occ_command.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/admin_manual/occ_command.rst b/admin_manual/occ_command.rst index 1ac3d60deb9..235fcb9d487 100644 --- a/admin_manual/occ_command.rst +++ b/admin_manual/occ_command.rst @@ -1421,6 +1421,7 @@ report showing how many users you have, and when a user was last logged in:: user:resetpassword Resets the password of the named user user:setting Read and modify user settings user:sync-account-data sync user backend data to accounts table for configured users + user:welcome Sends the welcome email user:add @@ -1600,6 +1601,21 @@ You can manually sync user backend data to accounts table with the ``user:sync-a user:sync-account-data [-l|--limit=500] [-o|--offset=0] +user:welcome +^^^^^^^^^^^^ + +When you need to manually send the welcome email (for example, if the user was added via LDAP but hasn't logged in yet), you can use the ``user:welcome`` command. The syntax is:: + + user:welcome [-r|--reset-password] + +For example:: + + user:welcome alice@nextcloud.ltd + +Or, if it should contain the reset password link:: + + user:welcome --reset-password bob@nextcloud.ltd + .. _group_commands_label: Group commands From e1fe5c8f9bae2ce7f6744862df2fe43890e45902 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Tue, 25 Mar 2025 22:39:31 +0100 Subject: [PATCH 4/5] fixup! feat(admin_manual/occ_command): add `user:sync-account-data` Co-authored-by: Anna Signed-off-by: Grigorii K. Shartsev --- admin_manual/occ_command.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_manual/occ_command.rst b/admin_manual/occ_command.rst index 235fcb9d487..b51978be034 100644 --- a/admin_manual/occ_command.rst +++ b/admin_manual/occ_command.rst @@ -1595,7 +1595,7 @@ user:sync-account-data ^^^^^^^^^^^^^^^^^^^^^^ Usually, the account data in the Nextcloud instance database (``oc_accounts``) is updated once a change on another user backend (for example, SAML) is detected. -However, in case of an error or bugs in the past, the state between the user backend and the ``oc_accounts`` table might become inconsistent. +However, in case of an error, the state between the user backend and the ``oc_accounts`` table might become inconsistent. You can manually sync user backend data to accounts table with the ``user:sync-account-data`` command:: From 99beccafbe0f0a3b2f0b308dc33a8793e07181d8 Mon Sep 17 00:00:00 2001 From: rakekniven <2069590+rakekniven@users.noreply.github.com> Date: Thu, 1 May 2025 19:04:30 +0200 Subject: [PATCH 5/5] Update admin_manual/occ_command.rst Co-authored-by: Anna Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com> --- admin_manual/occ_command.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_manual/occ_command.rst b/admin_manual/occ_command.rst index b51978be034..bb6818485ea 100644 --- a/admin_manual/occ_command.rst +++ b/admin_manual/occ_command.rst @@ -1420,7 +1420,7 @@ report showing how many users you have, and when a user was last logged in:: user:report shows how many users have access user:resetpassword Resets the password of the named user user:setting Read and modify user settings - user:sync-account-data sync user backend data to accounts table for configured users + user:sync-account-data Sync user backend data to accounts table for configured users user:welcome Sends the welcome email