As site administrator, I have set Email display for all users to hidden (Hide my email address from everyone). However on the desktop app I see that all users can see each others' email addresses. How can I prevent this?
Hidden user email addresses visible in desktop app
Number of replies: 7Re: Hidden user email addresses visible in desktop app
Hi,
I guess you changed the default value:
Site administration > Users > Accounts > User default preferences > defaultpreference_maildisplay
This default value doesn't apply to existing users, only to new users. If an existing user doesn't want to display his email, he should go to Profile > Edit Profile and change the "Email display" setting.
You can change the current value of all existing users by modifying the database. Go to the table mdl_user and change the value of the column "maildisplay". Please notice that 0 means "Hide from everyone", 1 means "Allow everyone to see" and 2 means "Allow only other course members to see".
If the app still shows the email after changing this, please perform a Pull-To-Refresh in the user profile to update the data (the app caches the data for 5 minutes to decrease network usage and increase performance). The Pull-To-Refresh is done as in Mobile apps: click on the content and drag it down.
Kind regards,
Dani
Re: Hidden user email addresses visible in desktop app
Hi Dani,
Thank you. This Moodle site was created online, hosted by gnomio.com and I have only just discovered the desktop app.
I had previously altered the site settings to:
Site administration > Users > Accounts > User default preferences > Hide my email address from everyone
No, I'm afraid new users' email addresses are visible to everyone in desktop app.
How can I access the database?
Best regards,
Michael
Re: Hidden user email addresses visible in desktop app
Hi Thomas,
how are you creating the users?
If I create them manually as admin, I can see the setting to display the email, and by default is set to the value configured in User default preferences. If I enable self registration, the new user is created with the mail hidden (as it's set in User default preferences).
I don't know if it's possible to access the database if you created it using gnomio. Some providers give you access to a control panel like PHPMyAdmin to do some but some others don't.
Kind regards,
Dani
Re: Moodle in English: Re: Hidden user email addresses visible in desktop app
I'm Michael not Thomas!
I'm creating users manually. Ok I'm going to contact Gnomio and ask them to
change the database as there is no control panel.
Thanks.
Michael
On 23 August 2017 at 08:07, Dani Palou (via Moodle.org) <noreply@moodle.org>
Re: Moodle in English: Re: Hidden user email addresses visible in desktop app
However, users with teacher permissions can still see all users' email addresses. How can I fix it so that teachers cannot see other users' email addresses?
Thanks.
Michael
Re: Moodle in English: Re: Hidden user email addresses visible in desktop app
Hi Michael,
sorry for the name confusion, I was answering several posts and I mixed the names
Teachers can see all emails by default. To prevent that you need to do 2 things;
- You need to disable the capability Enable/disable email address (moodle/course:useremail). To do so, go to Site administration > Users > Define roles and click the gear next to Teacher. In the Filter field, enter this: course:useremail. Unmark the "Allow" checkbox and click Save.
- Go to Site administration > Users > Permissions > User policies. In "Show user identity", uncheck "Email address" and save changes.
That should be enough.
Kind regards,
Dani
Re: Moodle in English: Re: Hidden user email addresses visible in desktop app
Best regards,
Mchael