Skip to content

Commit fb42c6e

Browse files
authored
Merge pull request #14503 from nextcloud/enh/occ-group-add-and-removeuser-multiple
doc(occ): extend group:adduser and removeuser
2 parents 5ab9660 + 29505ff commit fb42c6e

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

admin_manual/occ_users.rst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,13 +379,20 @@ Create a new group::
379379
group:adduser and group:removeuser
380380
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
381381

382-
Add a user to a group::
382+
Add one or more existing users to the specified group with the ``group:adduser``
383+
command. The syntax is::
383384

384-
sudo -E -u www-data php occ group:adduser milliways layla
385+
group:adduser <gid> <uid1> [uid2 ... uidN]
385386

386-
Remove a user from a group::
387+
This example adds the users "denis", "dora" and "daisy" to the existing group "milliways"::
387388

388-
sudo -E -u www-data php occ group:removeuser milliways layla
389+
sudo -E -u www-data php occ group:adduser milliways denis dora daisy
390+
391+
You can remove one or more users from the group with the ``group:removeuser`` command.
392+
This example removes the existing users "denis", "dora" and "daisy" from the existing
393+
group "milliways"::
394+
395+
sudo -E -u www-data php occ group:removeuser milliways denis dora daisy
389396

390397
group:delete
391398
^^^^^^^^^^^^

0 commit comments

Comments
 (0)