# Epic OP-8338 - Support for placeholder users that do not have an email address yet (part 2)

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-8338

## Detailed specification

### Motivation and background information

### Acceptance criteria

### Out of scope

| Attribute | Value |
| --- | --- |
| Mockups |  |

## Planning

| Attribute | Value |
| --- | --- |
| Roadmap |  |
| Date |  |
| Votes | 4 |
| List |  |
| Target versions | 11.3.0 |
| Sprint | 11.3.0 |
| Backlog bucket |  |
| Relevance |  |

## Subitems

_No work packages_

## Bugs and other work packages

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Enterprise plan |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Designer |  |
| Developers |  |
| Requested by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| Work | 32d 0h |

## Description

# User Story

As an project manager  
**I want** to assign work packages to placeholder users  
**so** that I can create a work plan that include (placeholder) users that must not have access to the system (yet).

# Acceptance criteria:

## 1: New user type "placeholder user"

  - Note: Introduced already with <mention class="mention" data-id="35933" data-type="work_package" data-text="#35933">#35933</mention>.

## 2: Add create button in header navigation

  - We have an add-button in the header navigation
  - There is a menu item "Invite user" which opens a modal window.

<figure class="image op-uc-figure" style="width:32.05%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/19674/content"></div></figure>

## 3: Invite user modal

  - The form allows to switch between the two user types.
      - Invite user to project (new or existing)
          - Email address
          - Role in selected project
          - Project (the current project is preselected)
          - Invite message (optional)
      - Add placeholder to project (new or existing)
          - Username
          - Role in selected project (the current project is preselected) (Question: Why does a placeholder need a role? Is that every member needs a (any) role? )
          - Project
  - The placeholder user feature can be deactivated globally for the entire installation by removing the permission to create placeholder users.
  - The user autocompletion shows the username of the user (important if two users have the same name).  We show the username in case the email address is hidden.

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/19676/content"></div></figure>

## 4: Invite new users from work packages module

  - Only project members can be selected. Project members from other projects can not be selected. They have to be invited first.
  - We extend the user selection form field in the work packages modal to open the user invite modal.
  - After inviting new users the new user is selected in the respective work package attribute.
  - The user-autocompletion shows the username of the user (important if two users have the same name).

<figure class="image op-uc-figure" style="width:55.58%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/19675/content"></div></figure>

## 5: Display of placeholder users

  - Placeholder users have a very specific user avatar. So it is possible to differentiate normal users from placeholder users. Thereby people understand what happens when assigning a work package to a placeholder user.
      - Why doesn't this user receive an email?
      - Why can't this user login?

<figure class="image op-uc-figure" style="width:17.89%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/19677/content"></div></figure>

## 6: New permissions to create placeholder users

  - Note: Already introduced with <mention class="mention" data-id="35933" data-type="work_package" data-text="#35933">#35933</mention>.

## 7: Update seed data

  - The new permissions need to be included in the seed data (data that is created in new installations) for the default roles.

## 8: Administration and user contingents in subscription plans

  - Note: Already introduced with <mention class="mention" data-id="35933" data-type="work_package" data-text="#35933">#35933</mention>.

# Out of scope

The following features are not included in the effort estimated. They are to be specified in a separate work package:

  - Guest users (they are only added to the Prototyp to ensure consistency).
  - We will most likely not implement a switching between the user types (e.g. make a placeholder a normal user). Instead we believe that batch editing work packages and assigning them to a real user is the cleaner approach.
  - Menu items for work packages in the header navigation (the mechanism to decided which work package type are displayed in the menu).
