# Bug OP-14485 - LDAP user can't be created if optional attributes are not mapped

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 13.4.0 |
| Observed in versions | 13.3.0 |
| Sprint | 13.4.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.3.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

*Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:*

1.  Setup and LDAP-Connection
2.  Allow 'Automatic user creation'
3.  Map only the Username attribute in the LDAP-Setup
4.  Login with a user that does not exist in OpenProject

### What is the buggy behavior?

*Please describe the bug in as much detail as possible. Example:*

  - You can't login and user is not created
  - You get the following error message:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/93546/content">

### What is the expected behavior?

*Describe how the application should behave like. Example:*

1.  You should get the an error and the possibility to enter the missing fields like in older OpenProject (13.1.0) versions:

<img class="op-uc-image op-uc-image_inline" style="width:519px;" src="/api/v3/attachments/93549/content">

###
