Arvind, there are a couple of ways you can do this depending on what you
need exactly. Have you checked out the WindowsIdentity class for instance?
That might have all that you need in it.
If you need to know all of their groups you can do something like this if
you have the user's LDAP/AD path :
string UserPath = "LDAP://cn=Arvind,ou=Dept,dc=Company,dc=com"
// bind to the user
DirectoryEntry User = new DirectoryEntry(UserPath );
// enumerate all the user's groups
foreach(string GroupName in User .Properties["memberOf"])
{
Console.WriteLine(GroupName);
}
--
Greg Ewing [MVP]
http://www.citidc.com
"Arvind P Rangan" <ar******@hotmail.com> wrote in message
news:#P**************@TK2MSFTNGP11.phx.gbl...
Hi all,
I am working on a project which checks for windows login and its rights
and then opens up the rest of the forms according to the login and the rights
already set in the windows.
I just know that this can be done using Active Directory Class can anyone
who has worked on it give me web links or few examples to start with.
Thanks
Arvind.