diff --git a/admin_manual/configuration_server/config_sample_php_parameters.rst b/admin_manual/configuration_server/config_sample_php_parameters.rst index 615e837ee72..bb59920cc7f 100644 --- a/admin_manual/configuration_server/config_sample_php_parameters.rst +++ b/admin_manual/configuration_server/config_sample_php_parameters.rst @@ -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 ^^^^^^^^^^^^^^^^ diff --git a/admin_manual/occ_command.rst b/admin_manual/occ_command.rst index 6a570b0cb42..e6a7d73c760 100644 --- a/admin_manual/occ_command.rst +++ b/admin_manual/occ_command.rst @@ -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 ^^^^^^^^^^^^