win32net.NetGroupAddUser

NetGroupAddUser(server, group, username)

Adds a user to the group

Parameters

server : string/PyUnicode

The name of the server, or None.

group : string/PyUnicode

The group name

username : string/PyUnicode

The user to add to the group.

Win32 API References

Search for NetGroupAddUser at msdn, google or google groups.