The fastest way: System Settings on your Mac
Open System Settings, click on "General" in the sidebar, then select "Users & Groups" (or "Users & Groups" under "System Settings" depending on your macOS version). Click the lock icon in the bottom left to unlock the panel, then right-click on your account name and choose "Advanced Options." Change the short name (the one without spaces) and the full name separately — the short name is what appears in the terminal and file paths, while the full name is what shows on login and in Mail. Click "OK" and restart your Mac.
This method works on macOS Ventura, Sonoma, and most recent versions. The short name change takes effect when ready after restart, but some apps may need to be relaunched to recognize the new name in their settings.
Key Takeaways
- Your short username (no spaces) and full name are separate fields in System Settings, and changing one does not automatically change the other.
- You must unlock the Users & Groups panel with your admin password before you can edit any account details.
- After changing your username, restart your Mac for the change to take effect in file paths and terminal commands.
- Files and folders in your home directory keep their old path until you manually move them or use the terminal to update ownership.
- Some apps store your old username in their preferences and may show it until you clear their cache or sign out and back in.
What changes and what stays the same
When you change your short username, your home folder path does not automatically update — it stays at /Users/oldname. This means file paths in scripts, shortcuts, and app preferences may break. Your email accounts, browser bookmarks, and most app settings stay with your account because they are tied to your user ID, not your username text.
The full name change (the one without restrictions) shows up when ready in Mail, Messages, and other apps that display your account name to others. The short name change affects the terminal, file ownership displays, and any scripts or automations that reference your username directly.
When to use the terminal instead
If System Settings shows a grayed-out Users & Groups option, or if you need to change the home folder path itself, use the terminal. Open Terminal (in Applications > Utilities) and run dscl . -change /Users/oldusername RecordName oldusername newusername, replacing oldusername and newusername with your actual names. Then run mv /Users/oldusername /Users/newusername to move your home folder to the new path.
This terminal method is more powerful but also more risky — a typo can lock you out of your account. Only use it if you are comfortable with command-line tools or if the graphical method does not work. Back up your Mac first using Time Machine or another backup method.
Fixing broken file paths after the change
Apps that store absolute paths to your home folder (like text editors with recent file lists, or backup software) may show "file not found" errors after you change your username. The easiest fix is to sign out of the app completely, clear its cache, and sign back in. For most apps, this means going to Preferences, finding a "Sign Out" or "Reset" option, and restarting the app.
If an app does not have a sign-out option, you can manually delete its preferences file. Open Finder, press Command+Shift+G, paste ~/Library/Preferences, and look for a file named after the app (usually something like com.appname.plist). Drag it to the Trash, restart the app, and it will rebuild its preferences with your new username.
Changing your login password at the same time
Your username and password are separate — changing one does not affect the other. However, if you want to change your password while you are in System Settings, click on "Password" in the Users & Groups panel (you may need to unlock it again). Enter your current password, then type your new password twice and click "Change Password."
If you forget your password after changing your username, you can still reset it using your Apple ID or a recovery key, as long as you remember your Apple ID password. The username change does not affect password recovery options.
What to do if you are locked out after changing your username
If you cannot log in after a username change, restart your Mac in Recovery Mode by holding Command+R during startup. Open Utilities > Terminal and run resetpassword to reset your password without needing to know the old one. This works even if your username is no longer recognized at the login screen.
If Recovery Mode does not work, you may need to create a new admin account from Recovery Mode and then transfer your files back. This is rare, but it is why backing up before a username change is worth the time.
Frequently Asked Questions
Will changing my username affect my iCloud or Apple ID?
No. Your Apple ID is tied to your email address, not your Mac username. Changing your Mac username does not sign you out of iCloud or affect any Apple services. Your iCloud data, Photos, and other synced content remain accessible.
Can I change my username without restarting?
The change takes effect when ready in System Settings, but file paths and terminal commands do not recognize the new name until you restart. Some apps may also cache the old username and show it until you restart or clear their preferences.
What if my Mac is part of a work network or domain?
If your Mac is bound to an Active Directory or Open Directory domain, you cannot change your username through System Settings — it is controlled by your network administrator. Contact your IT department to request a username change on the server side.
Do I need to update my backup after changing my username?
Time Machine backups automatically include your new username after the change, so you do not need to do anything. If you use a third-party backup tool, check its settings to make sure it is still backing up your home folder at the new path.
Will my old files be deleted when I change my username?
No. Your files stay in the old home folder path (/Users/oldname) unless you manually move them. You can access them by typing the old path in Finder or by using the terminal. Moving them to the new path is optional but recommended to keep your system organized.