By yepa on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.2.x
Introduced in version:
9.2.0
Issue links:
Description:
The following new permission was added to allow non-administrators to view another user's email address:
view user email addresses
It's disabled for all roles except administrator by default and can be enabled for any other user role.
After enabling this permission, users will be able to see the email addresses on user pages, but also other places where user email addresses might be shown, including Views and JSON:API responses.

| Attachment | Size |
|---|---|
| Administer permission View user email | 210.16 KB |
Impacts:
Site builders, administrators, editors
Module developers
Site templates, recipes and distribution developers
Comments
Not showing up in 8.8.1
I'm on 8.8.1 and the permission is not showing up. Did clear the cache multiple times. What am I doing wrong?
Same here on 8.9.3 - would it
Same here on 8.9.3 - would it be fixed in the future?
upgrade to Drupal 9.2
upgrade to Drupal 9.2
Published today, previously Draft
@piridium: The reason is that this Change Record was a draft, and only updated today, when the change was released in Drupal 9.2: https://www.drupal.org/node/3070293/revisions/view/12232232/12259712
Fixed permission label
The used one is https://git.drupalcode.org/project/drupal/commit/6e137b3#c79760d63315b53...
view user email addresses
Final commit
Any chance of creating a
Any chance of creating a patch for 9.1?
Not working?
I am on Drupal Core 9.2.2 and have enabled this option for all Authenticated Users (have also just left it for Admins) and we are not seeing the email address on the View User details page. Are there other required steps in order to see the email address? I was looking in the people configuration pages and was not seeing anything in there either that allows this to show. I must be missing something here.
Welp...
Seems it was as easy as copying and putting the user.html.twig file into our theme template with the below:
I am assuming the new permission allows the email field to be accessible via the user data and does not make it display by default. Hope this helps someone else who had a brain fart this past week!
Thanks! I was also looking
Thanks! I was also looking for it to be available in the UI. Editing the user twig seems like the way to go.