How to hide a specific user account from the login screen on macOS.

Removing a specific user from the list of users on macOS can be accomplished via command line using a utility dscl. More information about Directory Service command line utility you can find here

Before you begin, there are two things that you need to complete this task.

  1. You must have an account with administrative privileges.
  2. You need to know the exact username of the user account that you need to hide.

Open up your Terminal and type the following command, replace “eugene” with the user account that you need to hide:

sudo dscl . create /Users/eugene IsHidden 1

 

Provide your password when prompted. This will create a key with the value of “1”. To reverse this just simply change the value to “0”.

 

If you decide that you need to hide all of the user accounts from the list.

To hide all of the user accounts from the list, use “Users & Groups” utility. In Login Options select Name and Password under Display login windows as.