Merge pull request #13239 from nextcloud/addUserProfileDocumentation

Add documentation for occ user:profile
This commit is contained in:
Ferdinand Thiessen
2025-06-17 19:31:54 +02:00
committed by GitHub
2 changed files with 31 additions and 3 deletions

View File

@@ -4002,9 +4002,12 @@ defined in ``OCP\Accounts\IAccountManager``. Values are merged with defaults
from ``OC\Accounts\AccountManager``.
Example: Set phone property to private scope:
[
\OCP\Accounts\IAccountManager::PROPERTY_PHONE => \OCP\Accounts\IAccountManager::SCOPE_PRIVATE
]
::
'account_manager.default_property_scope' => [
\OCP\Accounts\IAccountManager::PROPERTY_PHONE => \OCP\Accounts\IAccountManager::SCOPE_PRIVATE
]
projects.enabled
^^^^^^^^^^^^^^^^

View File

@@ -1719,6 +1719,31 @@ View a list of all users' most recent login::
layla's last login: 2024-03-20 17:18
stephanie's last login: 2024-01-11 13:26
user:profile
^^^^^^^^^^^^
Read user profile properties::
sudo -E -u www-data php occ user:profile admin
- displayname: admin
- address: Berlin
- email: admin@example.net
- profile_enabled: 1
- pronouns: they/them
Get a single profile property for a user::
sudo -E -u www-data php occ user:profile address
Berlin
Set a profile property::
sudo -E -u www-data php occ user:profile address Stuttgart
Delete a profile property::
sudo -E -u www-data php occ user:profile address --delete
user:setting
^^^^^^^^^^^^