Add/Remove Groups

Mont Rothstein <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <[email protected]>
I want to be able to add and remove groups from users (or users from groups
depending on your perspective) from within a .NET application.  The users
will be part of a domain and the user wanting to add/remove groups will be
an admin.

I can find the user name and SID by searching the directory server, but I
can't figure out how to add/remove the groups.

I can use LogonUser() to get the access token, and then get the
WindowsIdentity(), but that requires that I have the user's password.

Does anyone know how to do this without having each user's password?

Thanks,
-Mont

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.