# Feature OP-3338 - Allow users to be uniquely identified by login

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 6.1.2 |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

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

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As an** API v3 user  
**I want** to be able to refer to users both by ID and login  
**so that** I don’t have to lookup an ID by login in order to be able to query a user.

Given a user with the login “j.doe” with ID 4 the following to URLs will be equivalent with this change:

  - https://community.openproject.com/api/v3/users/4
  - https://community.openproject.com/api/v3/users/j.doe

Doesn’t use friendly\_id due to issues with STI if not configured for the various descendants of User. This also does not change any other lookups (e.g, for the UserController).

[PR](https://github.com/opf/openproject/pull/5122)
