× Welcome to the Centrify Community! We are rolling out product name changes — click here to learn more.

[MAC] Then comes marriage / divorce, then comes name change

[MAC] Then comes marriage / divorce, then comes name change

By Centrify Advisor II ‎01-20-2017 04:24 PM

According to various sources, most weddings occur in June and most divorces are filed in January. Why is this important? Name and username changes. This article will walk you through the different steps for retaining the user's Mac home directory, when a user wants to change their name and username.

 

Option 1: Display name change only. No username change. No Mac home directory change.

1. Go to Active Directory Users and Computers.

2. Right-click on the user and select Rename.

Rename user.png 

3. Enter the new name. 

4. After you enter the new name a window will pop up. Change the Last name field to update the Display name, but DO NOT change the User logon name. Click OK.

othernames.png

5. Keep the old email address, but add email aliases for the new name.

The benefits for this option are:

  • You don't need to touch the Mac to move/rename the user's home directory on the Mac.
  • You don't need to use up a new O365 license to migrate the user's email.
  • You don't need to spend days trying to migrate everything else that might be tied to the old username.

 

Option 2: Change the username

If you can't get out of changing the username or user logon name, use the following steps to help preserve the Mac home directory for Network and Mobile account users. To identify if the user is logged on to the Mac as a Network and Mobile account, have the user go to System Prefences > Users & Groups. In the top left, look under the user's name and see if it says "Network" or "Mobile". 

network_mobile account.png

 

For Network accounts

1. Log onto the user's Mac as the user.

2. Go to /Users/

3. Right-click or control click on the user's home directory and select Duplicate. Save a back up of the user's home directory just to be safe.

4. Rename the duplicated directory to the new username, then log off of the Mac.

5. Go to Active Directory Users and Computers.
6. Right-click on the user and select Rename.

7. Enter the new name.
8. After you enter the new name a window will pop up. Change the Last name field to update the Display name, change the User logon name. Click OK.

9. Log into the Mac with the new username. Delete the old home directory.

 

If you run into permissions issues, open Terminal and run: 

sudo chown new_username -R /Users/new_username

 

For Mobile accounts

1. Make sure the user is logged off of their Mac.

2. Go to Active Directory Users and Computers.
3. Right-click on the user and select Rename.
4. Enter the new name.
5. After you enter the new name a window will pop up. Change the Last name field to update the Display name, change the User logon name. Click OK.

6. Log on to the Mac as a Mac admin. 

7. Go to System Preferences > Users & Groups.

8. Delete the user's account and select Don't change the home folder. This will rename the original home folder in /Users/ to old_username (Disabled). Save a back up of the user's home directory just to be safe.

dontchangehome.png

9. Open Terminal and enter this command to verify the new login name:
id new_username

10. Rename the user's home folder to the new username. 

For example: jmarried (Disabled) to jdivorced

11. Log out and have the user log in with their new user name.

 

If you run into permissions issues, open Terminal and run:
sudo chown new_username -R /Users/new_username

Showing results for 
Search instead for 
Do you mean 
Labels

Community Control Panel