# Feature DREAM-82 - Add separate permission to show email address in autocompleters

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-82

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 15.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

| ID | Subject | Status | Decision |
| --- | --- | --- | --- |
| DREAM-165 | What does this mean for highlighting the result? | decided | Highlighting works with ng-option.highlight just as it does for names. |

## Use cases

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| DREAM-162 | Add the new role and apply defaults | Implementation | closed |  | 15.0.0 |  |
| DREAM-163 | Show email on the UI for users with permission | Implementation | closed |  | 15.0.0 |  |
| DREAM-164 | Extend api with the email address for the autocompleters | Implementation | closed |  | 15.0.0 |  |

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| OP-16102 | Bug | Default standard role should be empty | closed |  | 15.0.0 |  |  |
| DREAM-178 | Bug | User still sees emails even if they don't have ViewEmails permission | rejected | Attila Dombi |  |  |  |

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Attila Dombi |
| Product manager |  |
| Feature Lead |  |
| Developers | Attila Dombi, Oliver Günther |
| Designer | Marc Alcobé |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

> **As an** OpenProject user  
> **I want to** identify the user I want to select  
> **So that** I don't select the wrong user, e.g. when managing project members, sharings and group memberships

**Acceptance criteria**

  - A global permission is added "View user's mail addresses"
    
      - Provides flexibility to the admins who should see mail addresses
    
      - Reasoning: In some organizations, mail addresses are not assumed as private information and used to identify users

  - A new default "Standard global role" is created, so that this can be configured by admins globally
    
      - Every user will have this global role
    
      - The role or its assignment to users cannot be deleted

  - Users with this permission will see the email address of the user:
    
      - in all user-related autocompleters as a second, muted text line
        
          - Select project members
        
          - Share work packages
        
          - Work Package assignee, accountable, watchers
        
          - Work Package filter user autocompleters
        
          - Share project lists
        
          - Select group members
        
          - Invite user modal (+ button on the top bar)
        
          - Team planner assignee
        
          - Boards -\> Assignee Board
    
      - In the user's profile

  - We remove the "Hide mail" flag, and hide the mail from all users that are lacking this permission

  - Extending the API to provide this information so all autocompleters can query those user attributes.

  - Extending the API and querying interface so autocompleters can search for mail addresses when having this permission

**Out of scope**

  - Showing group information in the autocompleter

**Figma**

<https://www.figma.com/design/HLWvSPFY6DQyIrUvnqHF9Q/Invite-users---Autocompleters?node-id=0-1>

Note: Figma mockups use full Primer designs that might not be 100% visually what will be developed.
