# Bug OP-19062 - Remove a 2FA device from a user as admin does not work

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Authentication / 2FA, Authentication |
| Target versions | 17.3.1 |
| Observed in versions | 17.2.0 |
| Sprint | 17.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.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 | Klaus Zanders |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Setup 2FA for a user

2.  Login as a admin user

3.  Go to Administration -\> Users and permissions -\> Users and click on the user with 2FA

4.  Open the 'Two-factor authentication' tab

5.  Click on 'Delete registered 2FA devices'

### What is the buggy behavior?

  - You get an 404:
    
    <img class="image_resized op-uc-image op-uc-image_inline" style="width:1060px;" src="/api/v3/attachments/919835/content">

    <br>

### What is the expected behavior?

1.  The 2FA devices get removed

### 

### Note

user must not be member in a public project  
user must not be in a common group with the admin  
 user must not be members in a project, the admin is also a member of
