netapi
modulesManage groups on Windows
salt.modules.win_groupadd.
add
(name, gid=None, system=False)¶Add the specified group
CLI Example:
salt '*' group.add foo
salt.modules.win_groupadd.
adduser
(name, username)¶add a user to a group
CLI Example:
salt '*' group.adduser foo username
salt.modules.win_groupadd.
delete
(name)¶Remove the named group
CLI Example:
salt '*' group.delete foo
salt.modules.win_groupadd.
deluser
(name, username)¶remove a user from a group
CLI Example:
salt '*' group.deluser foo username
salt.modules.win_groupadd.
getent
(refresh=False)¶Return info on all groups
CLI Example:
salt '*' group.getent
salt.modules.win_groupadd.
info
(name)¶Return information about a group
CLI Example:
salt '*' group.info foo
salt.modules.win_groupadd.
members
(name, members_list)¶remove a user from a group
CLI Example:
salt '*' group.members foo 'user1,user2,user3'