How to Change Your Mac User Name

Make a mistake in your user account name? Fix it now

Did you create a Mac user account with an incorrect name? Maybe the name contains a typo. Or, maybe you want to change your username to something else. Whatever the reason, you can easily change your account name and home folder name. Here's how to change the user name on your Mac—and other account information.

Instructions in this article apply to Mac OS X Yosemite (10.10.5), OS X El Capitan (10.11.6), and macOS Sierra (10.12.6) and later.

Your Mac User Account

Each macOS user account contains information related to your name and primary directory:

  • Full name: This is your full name (for example, Casey Cat). It can also be the name you use to sign in to your Mac.
  • Account name: The account name is a shortened version of your full name (for example, caseycat). macOS suggests an account name based on the full name you enter, but you can use any name you want.
  • Home directory: The home folder name and the account name are the same. By default, the home folder is in the Users directory of your startup disk, but you can relocate the home folder to anywhere you wish.
Advance Options availabe within the User & Groups preference pane.

The name of your user account and your home folder must be the same for your account to work properly.

Rename Your Home Folder

Back up all important data on your Mac before performing the steps in this article. We recommend creating a Time Machine backup of your Mac before you proceed.

If the account you plan to change is your current administrator account, first create a spare administrator account. After you create the second administrator account, complete the following steps:

  1. From the Apple menu, select Log Out UserName (where UserName is the name of the account you want to change).

  2. From the Apple menu, select Log In, then sign in to the new administrator account you just created.

  3. Open Finder. From the Go menu, select Go to Folder. In the Go to the folder box, type /Users, then select Go.

    The macOS Go the folder box
  4. The Users folder contains your current home folder, which has the same name as your account name. Write down the name of your current home folder.

  5. In Finder, select the home folder, then press Enter on the keyboard.

    If you shared your home folder, you must stop sharing the folder before you can rename it.

  6. At the prompt, type the password for your new spare administrator account.

  7. Type the new name you want to use for your home folder.

    This name should not contain spaces.

  8. Write down the name of the new home folder.

Rename Your Account

While you're signed out of the account you're renaming, complete the following steps:

  1. From the Apple menu, select System Preferences.

    You can also access System Preferences by selecting its icon in the Dock.

  2. In System Preferences, select Users & Groups.

    macOS System Preferences
  3. In Users & Groups, select the lock icon, then type the password for your spare administrator account.

    Users & Groups system preferences screen showing Users list
  4. In the list of users in the left pane, Control+click the user account whose account name you want to change, then select Advanced Options.

  5. In Advanced Options, in Account name, type the name of the new home folder you created.

    You can change the full name for your account at this time, as well.

    Advance Options availabe within the User & Groups preference pane.
  6. In Home directory, after /Users/, type the name of the new home folder you created.

    The account name and user folder name must match.

  7. Select OK.

  8. Close all open windows and dialog boxes on your Mac, then restart your Mac.

  9. Sign in to the account you renamed.

    If you can't sign in to the renamed account or can sign in but can't access your home folder, the account name and home folder name probably don't match. Sign out of the renamed account, sign in to the spare administrator account, then repeat this procedure. You may need to restart your Mac again.

  10. Go to your home folder and verify that you can see and access all your files and folders.

macOS has come a long way from the days when typos in account names were something you had to live with unless you were willing to look up Mac Terminal commands to correct the mistake. Account management is now easy, and you'll feel like a pro.