In this blog post, we will be discussing renaming an existing JumpCloud® user, specifically using the Rename script on macOS®. This functionality is useful in the case of an employee’s marriage, a clerical error while creating a user, or any other scenario where a username needs to be changed. In particular, we will be summarizing the process laid out in our tutorial video.
First things first, the Rename script for macOS can be found here. Download the script found at that link, and you can then use the Terminal on your Mac® to begin the process. After locating the script in Finder, you use the cd command to access it in the terminal. Then, once the script is located, it will need to be run as root. So, with sudo sh “ScriptName”, then the user’s existing name and then the name you wish to change it to, you can run the script and update the user in the system. The line should look something like this:
sudo sh RenameMacUserNameAndHomeDirectory.sh OldName NewName
After the script is run, the JumpCloud system will need to be restarted, and then the account can be accessed via the user’s password. Once the user’s name is updated, the admin can use the updated user identity and bind it to that person’s system. This will then take over that user’s account for them.
That completes the renaming of the existing user on macOS! You can find a more detailed article on the process, as well as general JumpCloud Directory-as-a-Service® naming conventions at our Knowledge Base. If you have any questions, feel free to contact us to learn more.
*** This is a Security Bloggers Network syndicated blog from Blog – JumpCloud authored by Zach DeMeyer. Read the original post at: https://jumpcloud.com/blog/renaming-an-existing-user-on-macos/