increase username maxLength from 16 to 256 #873

Closed
opened 2026-02-04 21:31:45 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @klml on GitHub (Nov 24, 2025).

Which part of the project does this feature apply to?

Backend

What would you like?

Currently username maxLength is 16. I would suggest to increase maxLength to 256.

Why is this needed?

We are using OIDC and so we use personal name from our IAM. Many users with firstname.lastname have a lenght more than 16. (e.g the the third most common german name andreas.schneider is already length 17)

Other information

No response

Originally created by @klml on GitHub (Nov 24, 2025). ### Which part of the project does this feature apply to? Backend ### What would you like? Currently [username maxLength is 16](https://github.com/plankanban/planka/blob/master/server/api/controllers/users/update-username.js#L33). I would suggest to increase maxLength to 256. ### Why is this needed? We are using OIDC and so we use personal name from our IAM. Many users with `firstname.lastname` have a lenght more than 16. (e.g the the third most common german name _[andreas](https://www.beliebte-vornamen.de/49519-erwachsene.htm).[schneider](https://de.wikipedia.org/wiki/Liste_der_h%C3%A4ufigsten_Familiennamen_in_Deutschland)_ is already length 17) ### Other information _No response_
Author
Owner

@meltyshev commented on GitHub (Nov 25, 2025):

Hey! We recently increased the username length limit to 32 characters for accounts created via OIDC. Do you think that still won't be enough? I'm a bit worried that allowing something like 256 characters would be unusable in the UI - both when displaying usernames and when mentioning users. But of course, it's open for discussion and we should figure out the best approach.

@meltyshev commented on GitHub (Nov 25, 2025): Hey! We recently increased the username length limit to 32 characters for accounts created via OIDC. Do you think that still won't be enough? I'm a bit worried that allowing something like 256 characters would be unusable in the UI - both when displaying usernames and when mentioning users. But of course, it's open for discussion and we should figure out the best approach.
Author
Owner

@theZasa commented on GitHub (Nov 25, 2025):

Hey! We recently increased the username length limit to 32 characters for accounts created via OIDC. Do you think that still won't be enough?

Won't be enough for long-ish double firstname + double lastname combinations. I have a coworker with such a combination that sums up to 39 chars

How about 64?

@theZasa commented on GitHub (Nov 25, 2025): > Hey! We recently increased the username length limit to 32 characters for accounts created via OIDC. Do you think that still won't be enough? Won't be enough for long-ish double firstname + double lastname combinations. I have a coworker with such a combination that sums up to 39 chars How about 64?
Author
Owner

@meltyshev commented on GitHub (Nov 25, 2025):

Hey! We recently increased the username length limit to 32 characters for accounts created via OIDC. Do you think that still won't be enough?

Won't be enough for long-ish double firstname + double lastname combinations. I have a coworker with such a combination that sums up to 39 chars

How about 64?

Yep, I will test how it looks in the UI 👌

@meltyshev commented on GitHub (Nov 25, 2025): > > Hey! We recently increased the username length limit to 32 characters for accounts created via OIDC. Do you think that still won't be enough? > > Won't be enough for long-ish double firstname + double lastname combinations. I have a coworker with such a combination that sums up to 39 chars > > How about 64? Yep, I will test how it looks in the UI 👌
Author
Owner

@meltyshev commented on GitHub (Nov 25, 2025):

Increased to 64 chars at the model level (e.g., when created via OIDC) and to 32 chars when set via the UI.

@meltyshev commented on GitHub (Nov 25, 2025): Increased to 64 chars at the model level (e.g., when created via OIDC) and to 32 chars when set via the UI.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#873