Skip to content

Commit b39b2ba

Browse files
committed
feat(admin_manual/occ_command): add user:sync-account-data
1 parent 289395c commit b39b2ba

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

admin_manual/occ_command.rst

+11
Original file line numberDiff line numberDiff line change
@@ -1420,6 +1420,7 @@ report showing how many users you have, and when a user was last logged in::
14201420
user:report shows how many users have access
14211421
user:resetpassword Resets the password of the named user
14221422
user:setting Read and modify user settings
1423+
user:sync-account-data sync user backend data to accounts table for configured users
14231424

14241425

14251426
user:add
@@ -1589,6 +1590,16 @@ user:list
15891590

15901591
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.
15911592

1593+
user:sync-account-data
1594+
^^^^^^^^^^^^^^^^^^^^^^
1595+
1596+
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.
1597+
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.
1598+
1599+
You can manually sync user backend data to accounts table with the ``user:sync-account-data`` command::
1600+
1601+
user:sync-account-data [-l|--limit=500] [-o|--offset=0]
1602+
15921603
.. _group_commands_label:
15931604

15941605
Group commands

0 commit comments

Comments
 (0)