469,946 Members | 1,936 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,946 developers. It's quick & easy.

Viewing and adding users to groups in Windows NT

Hello All,

I am working in a Windows NT domain environment, working with C#. What
I want to be able to do is view all the groups a user belongs to, and
also be able to add the users to groups.

I want to be able to enter a user name and then get it to diaplay all
the groups this user belongs to. Are the groups a user belongs to
stored as child entries under the user, or are users child entries
under groups, or am I way off track.

I have no problems listing all the users, and all the groups, I can
also add, delete and edit users and groups, just can't find what
groups a user belongs to.

If I use this
DirectoryEntry groups = new DirectoryEntry("WinNT://ARGPDC/R OWA
Access,group");

to find a group, am I able to determine what users belong to it from
this?

Please let me know if I have explained myself clearly and if more
information is needed.

Thanks

James
Nov 15 '05 #1
0 1363

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

20 posts views Thread by David | last post: by
2 posts views Thread by Jr. BTS dev! | last post: by
10 posts views Thread by NH | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.