SharePoint User Group Membership

I was commissioned to create a SharePoint web part for our new website. One of the things he needs to know is the AD groups the current user belongs to (each site user will belong to one or more special security groups in the domain.) Is there a part of the SharePoint API that provides this information, or I need to directly request AD?

+3
source share
2 answers

I would just execute the LDAP query directly. This is much simpler, and the Active Directory LDAP interface is well documented.

+5
source

Check out these .NET namespaces.

System.DirectoryServices
System.DirectoryServices.AccountManagement
System.DirectoryServices.ActiveDirectory
+3

Source: https://habr.com/ru/post/1705180/


All Articles