win32net.NetGroupSetUsers

NetGroupSetUsers(server, group, level, members)

Sets the members of a local group. Any existing members not listed are removed.

Parameters

server : string/PyUnicode

The name of the server, or None.

group : string/PyUnicode

The group name

level : int

The level of information in the data. Must be 0

members : [PyGROUP_USERS_INFO_0, ..]

The list of new members to add.

Win32 API References

Search for NetGroupSetUsers at msdn, google or google groups.