Skip to content

Commit b03187f

Browse files
authored
Merge pull request #14754 from nextcloud/feat/document-occ-ldap-check-seen-users
2 parents 2425a34 + ea1c051 commit b03187f

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

admin_manual/occ_ldap.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,17 @@ User search attributes are set with ``ldap:set-config``
5353
quickly. For example, you'll find Terri Hanson by searching for ``te ha``.
5454
Trailing whitespaces are ignored.
5555

56+
ldap\:check-user
57+
^^^^^^^^^^^^^^^^
58+
5659
Check if an LDAP user exists. This works only if the Nextcloud server is
5760
connected to an LDAP server::
5861

5962
sudo -E -u www-data php occ ldap:check-user robert
6063

61-
ldap\:check-user
62-
^^^^^^^^^^^^^^^^
64+
Use ``--update`` to update the account fields from LDAP::
65+
66+
sudo -E -u www-data php occ ldap:check-user --update robert
6367

6468
Will not run a check when it finds a disabled LDAP
6569
connection. This prevents users that exist on disabled LDAP connections from
@@ -69,6 +73,9 @@ use the ``--force`` option to force it to check all active LDAP connections::
6973

7074
sudo -E -u www-data php occ ldap:check-user --force robert
7175

76+
You can also use ``--all-seen-users`` to run the check on all users that logged into Nextcloud at least once.
77+
You may use ``--limit`` and ``--offset`` to do so by batch. You can combine this with ``--update`` to update the information of seen users.
78+
7279
ldap\:check-group
7380
^^^^^^^^^^^^^^^^^
7481

@@ -168,5 +175,3 @@ ldap\:show-remnants
168175

169176
Used to clean up the LDAP mappings table, and is
170177
documented in :doc:`../configuration_user/user_auth_ldap_cleanup`.
171-
172-

0 commit comments

Comments
 (0)