# Bug OP-19747 - Required user custom fields interfere with LDAP group and department synchronisation

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Authentication / LDAP, Administration / Custom fields, Administration / User administration |
| Target versions | 17.9.0 |
| Observed in versions | 17.6.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.6.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 | David Friquet |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Login as an admin

2.  Create a required user custom field

3.  On an LDAP host of your choice, create a group that includes user where the required user CF is empty

4.  In Administration\> Authentication \> LDAP group sync   
                                                     and \> LDAP department sync 

5.  Add a new group synced LDAP group or a new synced LDAP department

6.  Try to sync

### What is the buggy behaviour?

  - Sync fails

### What is the expected behaviour?

1.  Sync ignores user required CFs

### 

### Screenshots and other files

No screenshot because nothing happens in the UI, but

``` text
I, [2026-07-09T10:47:19.069183 #1]  INFO -- : [LDAP groups] Using reverse lookup (memberOf) for cn=QAdevs,ou=Users,o=5e78c5ead15adb243f2c2240,dc=jumpcloud,dc=com
E, [2026-07-09T10:47:19.585324 #1] ERROR -- : [LDAP groups] User 'mtester' could not be created: Cécile Resource Management Hierarchy Attribute can't be blank.
E, [2026-07-09T10:47:19.704425 #1] ERROR -- : [LDAP groups] User 'cguiot' could not be created: Cécile Resource Management Hierarchy Attribute can't be blank.
```

### Environment information

**OpenProject version**

Core build

[a11aab751a1ae4eacf2ffcf0a0573abf4d1ed0d9](https://qa.openproject-edge.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fopenproject%2Fcommit%2Fa11aab751a1ae4eacf2ffcf0a0573abf4d1ed0d9)

Product version

[dc70608cbb183b8667d4443c10bf1df93a4e110a](https://qa.openproject-edge.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fsaas-openproject%2Fcommit%2Fdc70608cbb183b8667d4443c10bf1df93a4e110a)

Core version

OpenProject 17.7.0

**Browser**

- [ ] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [x] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)
