How to enumerate users and users groups on local OSX machine, to get same result as you can get from Workgroup Manager?
If I try to use OpenDirectory API, I have dozens of users like _svn, _sshd and so on. Is there any legit way to select only user account and user groups that could be used for login?
Probably OpenDirectory is not only one option, or there are some flags to filter user accounts?
Short answer: After playing with workgroup manager get message, that ID lesser than 500 is reserved for system usage and is not displayed by default. No hidden attributes, not complicated logic, just greater than 500.