win32net.NetGroupAddUser

kay c kcollins15 at cfl.rr.com
Tue Dec 3 13:39:21 EST 2002


Looks like this is an Active Directory issue, not enough privileges.
Will need to use ADSI to move objects into a group.  Has anyone done
this using python?

> >     
> >     # Create the user
> >     win32net.NetUserAdd(serverName, 3, userData)
> >     win32net.NetGroupAddUser(serverName, "Administrator", userName)
> > 
> > This is my error:
> > pywintypes.api_error: (2220, 'NetGroupAddUser', 'The group name could
> > not be found.')
> > Any help will be greatly appreciated..
> > Thanks,
> > kc
> 
> I am afraid I don't know the answer - but your best bet is to try and 
> find how to use this member from C++ or any other language.  This 
> problem isn't directly related to Python, so you may have more hope 
> asking in NT/2K specific forums, and pretending you are just using C++.
> 
> Mail me if you have trouble porting some C++ code known to work to Python.
> 
> Mark.



More information about the Python-list mailing list