I've been tasked with creating a SharePoint web part for our new web site. One of the things it needs to know is which AD groups the current user belongs to (each site user will belong to one or more special security groups within the domain.) Is there a part of the SharePoint API that exposes this information, or do I need to query AD directly?
+5
A:
I would just do an LDAP query directly. This is much simpler and the LDAP interface to Active Directory is well documented.
BobbyShaftoe
2009-03-23 13:58:28
+1
A:
Check out these .NET namespaces.
System.DirectoryServices System.DirectoryServices.AccountManagement System.DirectoryServices.ActiveDirectory
theG
2009-04-02 20:32:34