Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 904409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:02:42+00:00 2026-05-15T16:02:42+00:00

I read everywhere (and see in practice) that usernames should not be changeable. When

  • 0

I read everywhere (and see in practice) that usernames should not be changeable. When I ask why, ‘security’ is given as a reason.

I’ve been searching for a definitive answer as to why changing a username is insecure, but I can’t seem to find the answer.

Could any of the security experienced people here answer this question?

Note: if you do not know the answer, please refrain from speculation. I’ve thought of a number of reasons myself, but I don’t know the actual answer, hence the question.

UPDATE:
1: By userId I meant to refer to some sort of unique identifier, be it a database record id or some other unique id. I’ve been told several times that changing the username is bad for security, even if the username is not the primary/unique identifier for the system itself.

2: I do allow users to change their ‘public name’. This is the name that is used to identify the user to the other (non-privileged) users.
for example:

userId: 1234
username: john02
public name: John Jameson
email: j.jameson@dev.null

3: As pointed out by Jason and The Rook, consistency seems the only good reason. I’ve the feeling this ‘best practice’ might be a leftover from somewhere in the past when usernames where actually used within the system to uniquely identify users.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T16:02:43+00:00Added an answer on May 15, 2026 at 4:02 pm

    There are a number of reasons from a security aspect that you may not wish to allow users to change their names. However, as an all-out “NEVER do this” – I don’t necessarily agree. But, allowing name changes creates quite a bit of extra work. If you are going to allow users to change their identities, you have to be very careful due to the reasons below.

    1. Maintaining a consistent user identity. Let’s say you run a message board and Troll_1 is on everybody’s block list. If Troll_1 is able to change his or her name, then all those user filters are no good and you have some unhappy users.
    2. Along with answer number 1, you also want to maintain consistency across your underlying systems. If users are allowed to change names, you have to make sure you check that you either, update every system that that user is using so that he or she does not lose (or gain) permissions into areas they are (or are not) allowed. Additionally, if a user changes his or her name and a new user wishes to use that name, you may, inadvertently, allow that new user access to the old user’s information/data/whatever if you have not done due diligence in updating your systems.
    3. Depending on what type of system you have, allowing someone to change their user name can make your system prone to abuse from a fraud standpoint. You could have someone switching their name back and forth pretending to be two different people in an attempt to scam someone. An unaware victim may easily fall for it. (Sounds stupid, I know, but I have seen people come up with crazier crap.)

    Anyway, as I said – I don’t believe it’s necessarily a bad thing to allow users to change their names. However, it does create quite a bit more work for you, the developer. User names now can’t be unique IDs in a database and user names now don’t necessarily relate to someone (because they can be changed later), so you have to have a different system in place for expressing “uniqueness.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read everywhere that rewriting history of commits that have been published is bad
It seems everywhere I read that either a library boasts if not needing RTTI
I have read everywhere that unsigned Java applets are not allowed to make network
I've read everywhere that PHP does not support multithreading but there are workarounds. But
Althoug I read everywhere that the method signature has a BOOL for finished, I
I have read so many times, here and everywhere on the net, that mutexes
I'm using PHP PDO for my queries, everywhere, but I read that in very
Im getting really lost on how to use HttpContext.User. I read everywhere that its
I am a newbie to python,everywhere I read about list methods I see one
i am new to fork(),I read everywhere that when a fork() is called an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.