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?
I would just execute the LDAP query directly. This is much simpler, and the Active Directory LDAP interface is well documented.
Check out these .NET namespaces.
System.DirectoryServices System.DirectoryServices.AccountManagement System.DirectoryServices.ActiveDirectory
Source: https://habr.com/ru/post/1705180/More articles:Фильтровать XML на основе другого xml с помощью XSLT 1 - xmlStored procedures and the tables they use - sqlHow to create a bookmarklet to create a screen? - javascriptForce xml comment for all participants - c #Is there a Python library for easily writing scalable user interfaces? - pythonZend Framework: OpenID 2.0 and Directed Identity - zend-frameworkUIFont with a custom host? - cocoa-touchCan I use HttpHandler to fake the existence of aspx pages? - asp.nethttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1705184/how-do-i-use-htaccess-to-force-www-while-using-zend-framework&usg=ALkJrhikBa43sWQ847_lWjekzCexlt9iZApython: random order - pythonAll Articles