gregneagle / pycreateuserpkg

Python tool to create macOS packages that create user accounts
Other
292 stars 44 forks source link

FR: Hide user account #17

Closed redshirtdave closed 5 years ago

redshirtdave commented 6 years ago

Incorporate using options to hide account in postinstall, as per https://support.apple.com/en-au/HT203998

gregneagle commented 6 years ago

This is not something I need, so I'm unlikely to work on it any time soon.

redshirtdave commented 6 years ago

np, cheers!

gregneagle commented 6 years ago

Adding the isHidden attribute seems very straightforward, and I'd accept a PR that did that. You can already specify a hidden home directory location. I don't think accounts created via pycreateuserpkg packages get an entry in the list of SharePoints.

redshirtdave commented 6 years ago

I've tested setting the IsHidden flag to 1 after creating an account with your script. It has the added benefit of hiding the account from loginwindow and 'Users & Groups' panel in System Preferences. Hidden home directory doesn't achieve this alone. So this would be an improvement for those wanting to hide the account. ps. I don't think a UID below 500 is best practice anymore.

I think this would be nice to include, otherwise it's easy to activate post install with any management system.

I initially asked to consider removing SharePoints, but removed the request once I have confirmed it isn't populated.

gregneagle commented 5 years ago

Isn't this: #6 what was requested?