The two ways to change your username on a Mac
You can change your MacBook username through System Settings (the newer method that works on macOS Monterey and later) or through System Preferences and the command line (for older versions). Most people use System Settings because it is simpler and does not require typing terminal commands. The process takes about five minutes and does not affect your files or passwords.
Before you start, know that changing your username does not change your password. You will still log in with the same password you use now. Also, if you have administrative access, you can change your own username. If you do not have admin rights, you will need someone with admin access to make the change for you.
Key Takeaways
- Open System Settings, click General, then Users & Groups to change your account name and the folder name your files live in.
- Your login password stays the same when you change your username, so you do not need to reset it afterward.
- Changing your folder name (the short name) may break some apps or scripts that look for your old folder path, so test your most-used programs after the change.
- If you do not have admin access, ask someone with admin rights to make the change, or create a new admin account first.
- You can change your full name (the display name) without changing your folder name, which avoids breaking file paths.
How to change your display name in System Settings
Your display name is what appears in the top-right corner of your screen and in messages to other people. Changing it does not affect your files or how your Mac works. Open System Settings, click General in the sidebar, then click Users & Groups. Click the lock icon in the bottom-left corner and enter your password to unlock the settings. Right-click your account name and select Advanced Options. In the Full Name field, type the new name you want to use and click OK.
This change takes effect when ready. You do not need to restart your Mac. Your login password remains the same, and no files move or get renamed.
How to change your folder name (short username)
Your folder name (also called your short username) is the name of the folder where your Documents, Desktop, and Downloads live. It appears in file paths like /Users/yourname/Documents. Changing this name is more involved than changing your display name because your Mac has to move your entire home folder and update file paths that some programs rely on.
Open System Settings, click General, then Users & Groups. Click the lock icon and enter your password. Right-click your account and select Advanced Options. In the Account name field, type the new short name (no spaces, all lowercase works best). Click OK. Your Mac will ask if you want to rename your home folder. Click Use New Name. Your Mac will move all your files to the new folder and update the paths. This can take several minutes if you have a lot of files.
After the change completes, restart your Mac and log back in with your password (not your new username). Open your most-used programs — email, web browser, creative software — and make sure they still work. Some older apps or scripts may look for your old folder path and fail to find files. If that happens, you can create a symbolic link (an alias for the old path) using Terminal, or contact the app's support to see if there is an update that fixes the path.
What to do if you do not have admin access
If you do not have admin rights on your Mac, you cannot change your own username. You will need to ask someone with an admin account to make the change for you. They can follow the steps above while logged into their admin account, then select your account in Users & Groups and make the change.
If no one with admin access is available, you can create a new admin account. Restart your Mac and hold Command + R to enter Recovery Mode. Click Utilities in the menu bar, then Terminal. Type resetpassword and press Enter. This opens the Reset Password utility, which lets you create a new admin account or reset an existing one. Once you have admin access, you can change your username using the steps above.
Why some apps break after you change your folder name
When you change your folder name, your Mac updates most of the paths automatically. But some programs — especially older ones, scripts, or apps that store file paths in their settings — may still look for your old folder location. Email clients, photo libraries, and backup software are common culprits.
The best way to avoid this is to change only your display name (the full name) and leave your folder name alone. This gives you a new name without moving any files. If you do need to change your folder name, test your most important programs right after the restart. If an app cannot find your files, open its preferences and point it to the new location. Most apps have a setting like "Library Location" or "Backup Folder" where you can browse to your new home folder.
How to change your username on older Macs (macOS Big Sur and earlier)
If you are running macOS Big Sur or an earlier version, System Settings does not have a Users & Groups section. Instead, open System Preferences, click Users & Groups, and follow the same steps: unlock with your password, right-click your account, select Advanced Options, and change the Full Name or Account name fields.
The process is identical to the newer method. The only difference is the name of the app (System Preferences instead of System Settings) and where you find it in the menu. If you are unsure which version you have, click the Apple menu in the top-left corner and select About This Mac. Your macOS version appears in the first line.
Frequently Asked Questions
Will changing my username log me out?
No. You stay logged in during the change. Your Mac may ask you to restart after changing your folder name, but you will log back in with the same password you use now. Your login credentials do not change.
Can I change my username back to the old one?
Yes. Follow the same steps and type your old username in the Account name or Full Name field. If you changed your folder name and then changed it back, your home folder will move back to the old location. Any programs that broke after the first change should work again.
What if I see an error saying the name is already in use?
This usually means another account on your Mac already has that name, or the name contains characters your Mac does not allow (like spaces or special symbols in the folder name). Try a slightly different name, or remove spaces and special characters and use only letters and numbers.
Do I need to change my password after changing my username?
No. Your password stays the same. You log in with the same password before and after the change. If you want to change your password for security reasons, you can do that separately in System Settings under Password, but it is not required by the username change.
Will my files move to a new location?
Only if you change your folder name (short username). Your Documents, Desktop, Downloads, and all other files move to the new home folder path. If you change only your display name (full name), nothing moves. All your files stay in the same place.