The fastest way to change your username
Open System Settings, go to General, then Users & Groups (or just Users on newer macOS versions), and select your account from the list on the left. Click the lock icon at the bottom left, enter your password, then right-click your account name and choose "Advanced Options." Change the short name in the "Account name" field — this is what appears in the terminal and file paths. Click OK, then restart your Mac for the change to take effect.
The short name is different from your full display name. Your display name is what shows on the login screen and in messages; you can change that in the same Users & Groups window by clicking the pencil icon next to your name. Most people only need to change the display name, which takes effect when ready without a restart.
If you cannot find Users & Groups in System Settings, your Mac is running macOS Ventura or later. In those versions, click System Settings, then Users & Groups in the sidebar — it may be under "General" depending on your exact version.
Key Takeaways
- Your display name (what shows on login and in messages) and your account name (what shows in file paths) are separate, and you may only need to change one.
- Changing your display name takes effect when ready, but changing your account name requires a restart.
- You must unlock the Users & Groups pane with your password before you can make any changes.
- If you cannot remember your password, you will need to use your Apple ID or a recovery key to reset it before you can change your username.
Understanding display name versus account name
Your display name is the friendly name that appears when you log in, in your user folder, and when you send messages. Changing it is straightforward and does not affect how your Mac works. Most people who want to "change their username" are actually changing their display name.
Your account name (also called the short name) is the technical identifier your Mac uses behind the scenes. It appears in file paths, terminal commands, and network addresses. Changing it is more involved because your Mac has to update references to it throughout the system. You should only change your account name if you have a specific reason — for example, if you inherited a Mac with someone else's account name and want to clean it up.
If you are not sure which one you need to change, start with the display name. It is faster, safer, and solves most situations.
How to change only your display name
Open System Settings and navigate to General > Users & Groups (or just Users on Ventura and later). Click your account in the list on the left. You will see your name at the top of the right panel with a pencil icon next to it. Click the pencil, type your new name, and press Enter. The change takes effect when ready — you do not need to restart.
Your display name can be anything you want: your full name, a nickname, or even a single word. It does not have to match your account name, and changing it will not affect your files, passwords, or any other settings.
How to change your account name (the technical username)
Changing your account name is more involved because it touches system files. Open System Settings, go to General > Users & Groups, and click your account. Click the lock icon at the bottom left and enter your password to unlock the pane. Right-click your account name in the list and select "Advanced Options."
In the window that opens, you will see a field labeled "Account name" — this is the short name. Type your new account name (use lowercase letters and no spaces), then click OK. Your Mac will ask you to restart. Save any open work and restart your Mac for the change to take effect.
After you restart, your old home folder will still exist with the old name. Your Mac creates a new home folder with your new account name. You can delete the old folder once you have moved any files you need, but do this carefully — do not delete anything you are not sure about.
What happens to your files and folders
When you change your display name, nothing happens to your files. They stay exactly where they are, and you can access them normally.
When you change your account name, your home folder path changes. If you had a folder at /Users/oldname/, it will now be /Users/newname/. Your Mac creates the new folder structure automatically, but your old folder remains. You will need to move any files from the old folder to the new one, then delete the old folder. Do this from Finder by navigating to /Users/ and dragging files over, or ask someone familiar with your Mac to help if you are unsure.
If you forgot your password
You cannot change your username without entering your password first — the lock icon in Users & Groups requires it. If you have forgotten your password, restart your Mac and hold Command + Q during startup to open the login window. Click "Forgot password?" and follow the prompts to reset it using your Apple ID or a recovery key.
If you do not have an Apple ID linked to your account or do not remember your recovery key, you will need to restart your Mac in Recovery Mode (Command + R during startup) and use the Utilities menu to reset your password. This process is more complex — if you get stuck, contact Apple Support or visit an Apple Store.
Troubleshooting common problems
If the lock icon in Users & Groups is already unlocked, you do not need to enter your password again. If it is locked and you enter your password but nothing happens, make sure Caps Lock is off and try again. If the password is correct and the pane still will not unlock, restart your Mac and try once more.
If you changed your account name and now some programs do not work, those programs may have stored a reference to your old account name in their settings. Restart the program, or uninstall and reinstall it. If you changed your account name and cannot access your old files, navigate to /Users/ in Finder and look for a folder with your old account name — your files are likely still there and can be moved to your new home folder.
If you see an error message saying "You do not have permission to change this," you are not logged in as an administrator. Ask the person who set up your Mac to change the username for you, or have them make your account an administrator first.
Frequently Asked Questions
Will changing my username affect my Apple ID or iCloud?
No. Your Apple ID and iCloud account are separate from your Mac username. Changing your Mac username does not change your Apple ID, and you will still be signed in to iCloud normally. Your Apple ID is tied to your email address, not your Mac username.
Can I change my username without restarting?
Yes, if you are only changing your display name. Changing your account name (short name) requires a restart because the Mac needs to update system files. If you want to avoid a restart, change only your display name.
What if I share my Mac with other people?
Each person on a shared Mac has their own account with their own username, password, and home folder. Changing your username affects only your account. Other people's accounts and usernames stay the same. You must be logged in as an administrator to change any username on the Mac.
Can I change my username back after I change it?
Yes. Follow the same steps to change it again. If you changed your account name and created a new home folder, you can move files back to the old folder or delete the new one and rename the old one back — but this is more work than just changing the name again.
What if my Mac is managed by my workplace or school?
If your Mac is managed by an organization, you may not be able to change your username yourself. Contact your IT department or help desk — they may need to change it for you, or they may have restrictions on what usernames are allowed.