Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(admin_manual/occ_command): add user:sync-account-data
Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Mar 25, 2025
commit adb9b420f493a45f48e8fa38fcdb05bec3f49dc4
11 changes: 11 additions & 0 deletions admin_manual/occ_command.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down