saltstack-formulas/users-formula — pull request #54 by JaseFace (2014-10-15 00:26:00+00:00)
Title: By default, Salt will remove any groups not listed, so a users groups ma...

...tches exactly the list you pass. This was added here:

https://github.com/saltstack/salt/issues/2142

This has been causing issues for many people, as the remove_groups options is undocumented. In the 2014.7 release this is changing, and remove_groups will default to false:
https://github.com/saltstack/salt/issues/13276

I'm going with false by default, as it's our use case and it will soon be the default. If people believe this module should default to true and remove groups not listed, I think that's open for discussion, but we should at least add the option.