Set Login window shows to Name and password. This keeps the normal macOS login window from presenting a list of account names and makes a person enter both the account name and its password.
macOS 13 and later
- Choose Apple menu > System Settings.
- Click Lock Screen in the sidebar.
- At Login window shows, choose Name and password.
macOS 10.11 through 12
- Choose Apple menu > System Preferences > Users & Groups.
- Unlock the preference pane, then select Login Options.
- At Display login window as, choose Name and password.
Security and functional limits
- This setting hides the account list; it does not add multi-factor authentication, compensate for a weak password, or protect an already unlocked Mac.
- The FileVault preboot login shown before macOS starts can display FileVault-enabled users differently from the normal macOS login window.
- Managed Macs that use network accounts or 802.1X login-window authentication can require additional configuration.
You can also turn off password hints so the login window reveals less information.

