Change default profile privacy settings (Email hidding)

In your own profile, there is a small padlock icon over each field. Clicking on it you have a dropdown menu where you can set the privacy for that field.

I would like to know how to set it hidden by default for all new users, and they to choose if show it or not.
By law, in Europe, this is a must in public websites.

Is it possible? How?

Thank you.

no reply?
just set up nextcloud and all users can see each users email, evnen though i turned off all apps.

I cannot force all my users to share their email adress! How to turn this off?

Edit this file more less in the line 308: “NCrootFolder”/lib/private/Accounts/AccountManager.php

Where it says:
self::PROPERTY_EMAIL =>
[
‘value’ => $user->getEMailAddress(),
‘scope’ => self::VISIBILITY_CONTACTS_ONLY,
‘verified’ => self::NOT_VERIFIED,
],

It should say:
self::PROPERTY_EMAIL =>
[
‘value’ => $user->getEMailAddress(),
‘scope’ => self::VISIBILITY_PRIVATE,
‘verified’ => self::NOT_VERIFIED,
],

The problem is that the file might be overwrited in an update.

I think this should be private by default, or at least, configurable.

2 Likes

thank you!