[Tutor] RE: Windows User Groups

Scott Widney SWidney at LasVegasNevada.GOV
Wed Jan 14 11:02:49 EST 2004

Date: Tue, 13 Jan 2004 15:51:19 -0800
From: Michael Montagne <michael at themontagnes.com>
Subject: [Tutor] Windows User Groups
To: tutor at python.org
Message-ID: <20040113235119.GA2077 at themontagnes.com>
Content-Type: text/plain; charset=us-ascii

I need to be able to get all the Security groups that a particular
user is a member of.  This is on windows 2000.  :(.

In brief, with the win32all package installed, import win32net then call
win32net.NetUserGetGroups('PDCname','username'). You'll get a list of tuples
whose first elements are the names of the groups.


More information about the Tutor mailing list