Manage groups on Mac OS 10.7+
Changed in version 3006.0.
Add the specified group
Name of the new group
Use GID for the new group
CLI Example:
salt '*' group.add foo 3456
Add a user in the group.
CLI Example:
salt '*' group.adduser foo bar
Verifies if a valid username 'bar' as a member of an existing group 'foo', if not then adds it.
Change the gid for a named group
CLI Example:
salt '*' group.chgid foo 4376
Remove the named group
CLI Example:
salt '*' group.delete foo
Remove a user from the group
New in version 2016.3.0.
CLI Example:
salt '*' group.deluser foo bar
Removes a member user 'bar' from a group 'foo'. If group is not present then returns True.
Return info on all groups
CLI Example:
salt '*' group.getent
Return information about a group
CLI Example:
salt '*' group.info foo
Replaces members of the group with a provided list.
New in version 2016.3.0.
CLI Example:
salt '*' group.members foo 'user1,user2,user3,...'
Replaces a membership list for a local group 'foo'.
Generated on December 18, 2024 at 17:29:07 UTC.
You are viewing docs for the previous stable release, 3006.9. Switch to docs for the latest stable release, 3007.1, or to a recent doc build from the master branch.
© 2024 VMware, Inc. | Privacy Policy