Skip to content
  • PC & Mobile
    • Windows
    • Mac
    • Linux
    • Mobile
    • Android
    • iOS
    • Chrome OS
  • Hardware
    • Hardware & Gadgets
    • Product Review
    • Smart Home
  • Lifestyle
    • Internet
    • Gaming
    • Productivity
    • How Things Work
    • Glossary
  • Cheatsheets
  • About
    • About Us
    • Contact Us
    • Privacy
    • Advertise with Us
    • Write For Us

Dark mode:

Home > Mac

How To Hide User Accounts From The Log-In Screen In OS X

Shujaa Imran
Shujaa Imran
Jan 25, 2014

If you own a family Mac, then it is definitely useful to make a separate account for each family member, each of which can be customized according to the user’s needs. However, this also leads to an extremely long list on the login window, and an annoying scroll bar down the side.

So, what can you do to remove this list of users filling up your login screen? You can create an “Other” option which will hide user accounts from your lock screen. This option will appear in the login screen, from where you can type in the account username and password manually. But first, you’ll need the account name or “username” of the user(s) that you  want to hide. Here’s how to get short names of user accounts in OS X:

1. Open up “System Preferences” from the Apple Menu or by searching for it in Spotlight.

Hide-Users-Log-In-Screen-OS-X-System-Preferences

2. Click on “Users & Groups.”

Hide-Users-Log-In-Screen-OS-X-Users-and-Groups

4. Click on the lock icon in the bottom left corner. Enter your password if prompted. Once entered, you’ll be allowed to make changes.

Hide-Users-Log-In-Screen-OS-X-Click-Lock-To-Make-Changes

Hide-Users-Log-In-Screen-OS-X-Enter-Password-To-Unlock

5. Right click on the user(s) you want to hide and click on “Advanced Options.”

Hide-Users-Log-In-Screen-OS-X-Advanced-Options

6. You’ll see a field named “Account name”. Copy the account name to store it for hiding the account from the log in screen.

Hide-Users-Log-In-Screen-OS-X-Account-Name

Once you have the account name for the user(s) you want to hide, head over to Terminal and enter in the following command:

sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add user1 user2 user3 user4

You might be prompted in to type in your password. Enter in your password to proceed.

Replace “user1”, “user2” and so on with the account names of the users you want to hide from the lock screen. If you want to hide only one users, just enter his/her account name instead of “user 1”, and delete the other other “user” links. Like below:

sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add user1

Hide-Users-Log-In-Screen-OS-X-Terminal-Add-User

You might be prompted in to type in your password. Enter in your password to proceed.

Hide-Users-Log-In-Screen-OS-X-Terminal-Enter-Password

Once this command has been entered into Terminal, the users that you have specified will no longer show up in the log in screen. Instead, a “Other” option will appear which will let you type in the account username and password to login into it.

Hide-Users-OS-X-Login-Screen-Enter-Username-Password

To add more users later on to the hidden list, enter in the following command:

sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add username1

If you ever feel the need to restore the hidden list of users again, simply enter the following command into terminal:

sudo defaults delete /Library/Preferences/com.apple.loginwindow HiddenUsersList

Hide-Users-Log-In-Screen-OS-X-Terminal

That’s it.

Shujaa Imran
Shujaa Imran

Shujaa Imran is MakeTechEasier's resident Mac tutorial writer. He's currently training to follow his other passion become a commercial pilot. You can check his content out on Youtube

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Popular Posts

8 Ways to Fix Windows Login Screen Missing

How to Open a DOCX File Without Microsoft Office

How to Use a GoPro 8 (and Up) as a Webcam on Windows and Mac

How to Turn Your PC Into a Media Server With Plex

How to Elevate Your AirPods Listening Experience With Spatial Audio

How to Add Users to a Group in Linux

How to Set Up a Local Web Server (Windows, Mac, Linux)

How to Update AirPods Firmware via a Mac or iPhone

How to AirPlay to Mac From iPhone

How to Connect Your PS4/PS5 to a Laptop or Mac

Affiliate Disclosure: Make Tech Easier may earn commission on products purchased through our links, which supports the work we do for our readers.

© 2023 Uqnic Network Pte Ltd.
All rights reserved.

  • About
  • Contact
  • Advertise
  • Write For Us
  • Terms of Use
  • Privacy Policy
  • RSS Feed Terms
Do not share my Personal Information.