Change the name of your macOS user account and home folder

You can rename your macOS user account and home folder, which were named when the account was created.
Doing this incorrectly could damage your account and prevent you from logging in with that account. Make sure that you have a backup before continuing. These steps do not change or reset the password of your user account.

Sign in as admin_dist

 

Rename the home folder

  1. Log out of the account that you're renaming: Choose Apple menu  > Log Out.
  2. Log in to the other administrator account. Do not log in to the account that you're renaming.
  3. From the menu bar in the Finder, choose Go > Go to Folder, then type /Users and press Return. The Users folder opens.
  4. In the Users folder, select the folder of the account that you're renaming, then press Return and enter the new name. Don't use any spaces in the new name. When prompted, enter the name and password of the administrator account that you just used to log in.

    If you're using file sharing to share the home folder, you must first stop sharing the folder. 
 

Then rename the account

After renaming the home folder, and while still logged out of the account that you're renaming, follow these additional steps, depending on which version of macOS you're using.

macOS Ventura or later

  1. Choose Apple menu  > System Settings.
  2. Click Users & Groups in the sidebar.
  3. Press and hold the Control key on your keyboard, then click the name of the account that you're renaming. Choose Advanced Options from the menu that appears.
  4. When prompted, enter the administrator name and password that you just used to log in.
  5. Update the “User name” field — not the “User” field — to match the new name that you gave to your home folder in the previous section.
    Users & Groups pane, showing the Advanced Options window
  6. Optional: Update the “Full name” field. The full name does not need to match the user name, and can contain spaces. You will be able to use either the user name or the full name when logging in or making changes that require your account name and password.
  7. Scroll down so that you can see the “Home directory” field. Update the user name in that field, but don't remove /Users/. For example, if “User name” is johnappleseed, then “Home directory” should be /Users/johnappleseed.
  8. Click OK, then restart your Mac and log in to the renamed account.

Earlier versions of macOS

  1. Choose Apple menu  > System Preferences.
  2. Click Users & Groups.
  3. Click the lock , then enter the administrator name and password that you used to log in.
  4. Press and hold the Control key on your keyboard, then click the name of the account that you're renaming. Choose Advanced Options from the menu that appears.
  5. Update the “Account name” field to match the new name that you gave to your home folder in the previous section.
  6. Optional: Change the “Full name” field. The full name does not need to match the user name, and can contain spaces. You will be able to use either the user name or the full name when logging in or making changes that require your account name and password.
  7. Update the user name in the “Home directory” field. Change that name to match the new name of the home folder, but don't remove /Users/. For example, if “User name” is johnappleseed, then “Home directory” should be /Users/johnappleseed.
  8. Click OK, then restart your Mac and log in to the renamed account.