Skip to content

Commit 52b788f

Browse files
authored
Merge pull request #12936 from nextcloud/docs/user-info
feat(admin_manual): document `user:info` occ command
2 parents e0d7244 + da0df7b commit 52b788f

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

admin_manual/occ_command.rst

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,6 @@ report showing how many users you have, and when a user was last logged in::
14251425
user:keys:verify Verify that the stored public key matches
14261426
the stored private key
14271427

1428-
14291428
user:add
14301429
^^^^^^^^
14311430

@@ -1593,6 +1592,34 @@ user:list
15931592

15941593
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.
15951594

1595+
user:info
1596+
^^^^^^^^^
1597+
1598+
With the ``user:info`` command, you can access an account information such as: user id, display name, quota, groups, storage usage... and many more
1599+
1600+
.. code-block::
1601+
1602+
user:info admin
1603+
- user_id: admin
1604+
- display_name: admin
1605+
1606+
- cloud_id: [email protected]
1607+
- enabled: true
1608+
- groups:
1609+
- admin
1610+
- users
1611+
- quota: none
1612+
- storage:
1613+
- free: 162409623552
1614+
- used: 1110
1615+
- total: 162409624662
1616+
- relative: 0
1617+
- quota: -3
1618+
- first_seen: 2025-03-14T08:44:46+00:00
1619+
- last_seen: 2025-03-25T20:21:13+00:00
1620+
- user_directory: /var/www/nextcloud/data/admin
1621+
- backend: Database
1622+
15961623
.. _group_commands_label:
15971624

15981625
Group commands
@@ -1608,7 +1635,6 @@ groups, display a list of all users in a group::
16081635
group:removeuser remove a user from a group
16091636
group:list list configured groups
16101637

1611-
16121638
You can create a new group with the ``group:add`` command. The syntax is::
16131639

16141640
group:add [gid]

0 commit comments

Comments
 (0)