By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,241 Members | 799 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,241 IT Pros & Developers. It's quick & easy.

Viewing and adding users to groups in Windows NT

P: n/a
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

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

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


Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.