# Bug OP-17521 - Missing UI for oauth_allow_remapping_of_existing_users setting

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Authentication |
| Target versions | 16.4.0 |
| Observed in versions | 16.2.0 |
| Sprint | 16.4.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.2.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 | Jan Sandbrink |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Have an OpenProject installation that has started its life before OP 12.5

2.  Upgrade it to the latest version

3.  Have users authenticate via password

4.  Decide to change to using OIDC or SAML

5.  Ensure users have matching logins at their IdP and in OpenProject

6.  Have users try to log in

7.  Observe that they see a registration form rather than being logged in

8.  Realise that the `oauth_allow_remapping_of_existing_users` setting probably is false and needs to be set to true

9.  Lament that there is no UI to do so

### What is the buggy behavior?

  - there is no UI to enable/control the setting

### What is the expected behavior?

  - there should be a UI to do so

### Environment information

**OpenProject installation type**

  - Hosted cloud edition

**OpenProject version**

*v16.2.0*

### Remarks

  - side note: the setting should probably be called `omni_auth_...` rather than `oauth_...`

  - the setting has been true by default for installations starting from OpenProject 12.5

  - we should introduce a migration that sets this to true where it isn't already

  - users who want this to be false - which will be a minority - can then still set it back to false via the new UI
