Merge pull request #9208 from nextcloud/backport/9204/stable22

[stable22] Add documentation for occ tag commands
This commit is contained in:
Daniel 2022-10-12 17:34:09 +02:00 committed by GitHub
commit 6d62b5a494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,7 @@ occ command Directory
* :ref:`command_line_upgrade_label`
* :ref:`two_factor_auth_label`
* :ref:`disable_user_label`
* :ref:`system_tags_commands_label`
* `Debugging`_
.. _http_user_label:
@ -1485,6 +1486,43 @@ Use the following command to enable the user again::
Note that once users are disabled, their connected browsers will be disconnected.
.. _system_tags_commands_label:
System Tags
-----------
List tags::
sudo -u www-data php occ tag:list
Add a tag::
sudo -u www-data php occ tag:add <name> <access>
Edit a tag::
sudo -u www-data php occ tag:edit --name <name> --access <access> <id>
`--name` and `--access` are optional.
Delete a tag::
sudo -u www-data php occ tag:delete <id>
Access level
========== ======== ==========
Level Visible¹ Assignable²
========== ======== ==========
public Yes Yes
restricted Yes No
invisible No No
========== ======== ==========
| ¹ User can see the tag
| ² User can assign the tag to a file
.. _occ_debugging:
Debugging