mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 10:20:02 +07:00
Merge pull request #13239 from nextcloud/addUserProfileDocumentation
Add documentation for occ user:profile
This commit is contained in:
@@ -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
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -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
|
||||
^^^^^^^^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user