# Moderators should not see emails in SSO section

**URL:** <https://meta.discourse.org/t/moderators-should-not-see-emails-in-sso-section/81356>\
**Category:** UX\
**Created:** [February 23, 2018, 9:31pm UTC](https://meta.discourse.org/t/moderators-should-not-see-emails-in-sso-section/81356 "2018-02-23T21:31:18Z")\
**Posts on this page:** 13\
**Page:** 1

## AI-generated summary

There is a discussion about moderators' access to user emails in the SSO section. [jomaxro](/t/-/81356/1) points out that moderators can see user emails in this section, even though they cannot view emails via the user's admin page. This is a concern for privacy and consistency.

[jomaxro](/t/-/81356/3) clarifies that the primary issue is that moderators can see the email at all, and the field should not appear for them. [Karl_Romanowski](/t/-/81356/6) suggests also hiding the email column in the Users lists from moderators.

[Mittineague](/t/-/81356/8) disagrees with completely removing access to emails, suggesting that it could limit moderators' ability to make fair judgement calls. However, they agree with keeping emails behind a click and logging the action.

[techAPJ](/t/-/81356/12) addresses the issue by modifying the code to prevent moderators from seeing the external email in the SSO section. Moderators can still view emails for investigation purposes by clicking the "Show" button, provided the `moderators_view_emails` setting is enabled. A follow-up change also hides the external email behind a button for admins.

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [February 23, 2018, 9:31pm UTC](https://meta.discourse.org/t/moderators-should-not-see-emails-in-sso-section/81356/1 "2018-02-23T21:31:18Z")

</div>

Moderators are not able to lookup user emails via the user’s admin page, only admins can do that. However, if SSO is enabled moderators can see a user’s email in the Single Sign On section of the same page. Viewing this email is also not logged for admins like viewing the “normal” email is.

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [February 23, 2018, 9:44pm UTC](https://meta.discourse.org/t/moderators-should-not-see-emails-in-sso-section/81356/2 "2018-02-23T21:44:50Z")

</div>

Just for clarification, you are asking to hide that information behind a button like the typical email address yes? And when clicking that button it logs the action.

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [February 23, 2018, 9:46pm UTC](https://meta.discourse.org/t/moderators-should-not-see-emails-in-sso-section/81356/3 "2018-02-23T21:46:26Z")

</div>

> [@cpradio](#):
>
> Just for clarification, you are asking to hide that information behind a button like the typical email address yes?

That’s the secondary (bonus) issue. But yes, that is what I mean.

The primary issue (which was brought up by a site we host) is that moderators can see the email at all. The field shouldn’t even appear for moderators.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [February 24, 2018, 12:45am UTC](https://meta.discourse.org/t/moderators-should-not-see-emails-in-sso-section/81356/4 "2018-02-24T00:45:29Z")

</div>

We should address this @techAPJ

---

<div class="post-metadata">

**Author:** ![Karl\_Romanowski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karl_romanowski/32/87676_2.png) [@Karl\_Romanowski](https://meta.discourse.org/u/Karl_Romanowski)\
**Post date:** [May 19, 2018, 7:04am UTC](https://meta.discourse.org/t/moderators-should-not-see-emails-in-sso-section/81356/6 "2018-05-19T07:04:36Z")

</div>

If you do end up making this change, please also consider hiding the email column in the Users lists from moderators as well.

We had to make community volunteers TL4 instead of Moderators because exposing user emails to non-employees was considered a privacy violation.

But, since both admins and moderators are considered ‘staff’ maybe that’s the correct group for them. A TL5 group that allows silencing other users would be ideal.

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [May 19, 2018, 8:40pm UTC](https://meta.discourse.org/t/moderators-should-not-see-emails-in-sso-section/81356/7 "2018-05-19T20:40:02Z")

</div>

> [@Karl\_Romanowski](#):
>
> If you do end up making this change, please also consider hiding the email column in the Users lists from moderators as well.

That button shouldn’t be there at all for moderators, we absolutely should fix that. cc @techAPJ

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [May 19, 2018, 9:01pm UTC](https://meta.discourse.org/t/moderators-should-not-see-emails-in-sso-section/81356/8 "2018-05-19T21:01:12Z")

</div>

> [@jomaxro](#):
>
> That button shouldn’t be there at all for moderators

I must respectfully disagree. I agree that access to a member’s email address should require some effort and the action should be logged. But to make it completely unavailable regardless of circumstance can severely limit a moderators ability to make a fair judgement call.

Until such time that Screened Email Levenshtein does a better job, if anything is done in this area it should have a setting for those Admins that don’t want to handle moderation duties.

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [May 19, 2018, 9:07pm UTC](https://meta.discourse.org/t/moderators-should-not-see-emails-in-sso-section/81356/9 "2018-05-19T21:07:02Z")

</div>

We need to be consistent. Either we allow moderators access to emails (logged when they do), or we don’t. To allow access _in some places_ but not others is bad.

---

<div class="post-metadata">

**Author:** ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**Post date:** [May 19, 2018, 9:10pm UTC](https://meta.discourse.org/t/moderators-should-not-see-emails-in-sso-section/81356/10 "2018-05-19T21:10:25Z")

</div>

I’d +1 this. Can’t figure out any legit reasons for moderators to see emails of other users.

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [May 19, 2018, 9:11pm UTC](https://meta.discourse.org/t/moderators-should-not-see-emails-in-sso-section/81356/11 "2018-05-19T21:11:19Z")

</div>

Thanks for clarifying. I have no problem with keeping it behind a click and the action logged. I misthought the proposal was to remove it altogether.

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [June 12, 2018, 9:37am UTC](https://meta.discourse.org/t/moderators-should-not-see-emails-in-sso-section/81356/12 "2018-06-12T09:37:20Z")

</div>

Moderators will not see the external email in SSO section anymore via:

[https://github.com/discourse/discourse/commit/59a8471308634685fe882fb393ce6d48dba7d2c6](https://github.com/discourse/discourse/commit/59a8471308634685fe882fb393ce6d48dba7d2c6)

If moderators do need to check user email for investigation purposes they can always click on the 📧 Show button next to Email (provided that `moderators_view_emails` setting is enabled).

Hiding the external email (in SSO section) behind the button for an Admin will require significant more effort, will add to my nice-to-have list.

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [November 11, 2020, 7:48am UTC](https://meta.discourse.org/t/moderators-should-not-see-emails-in-sso-section/81356/13 "2020-11-11T07:48:35Z")

</div>

> [@techAPJ](#):
>
> Hiding the external email (in SSO section) behind the button for an Admin will require significant more effort, will add to my nice-to-have list.

Now done via:

[https://github.com/discourse/discourse/commit/00b41437b01e740c59203d73b3d74654a8d62d0a](https://github.com/discourse/discourse/commit/00b41437b01e740c59203d73b3d74654a8d62d0a)

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [November 12, 2020, 1:15am UTC](https://meta.discourse.org/t/moderators-should-not-see-emails-in-sso-section/81356/14 "2020-11-12T01:15:27Z")

</div>

Closed on November 12, 2020, 1:15am UTC


