I was searching for an option to hide unwanted system and web users from login screen of Ubuntu and came across this one.
Edit /etc/lightdm/lightdm.conf
add the following two lines to the [SeatDefaults] section:
greeter-hide-users=true
allow-guest=false
Ubuntu – Customise login screen to avoid unwanted Users