How to get Active Directory Attributes not represented by the UserPrincipal class

后端 未结 3 1192
自闭症患者
自闭症患者 2020-12-09 03:02

What I mean is that right now I am using System.DirectoryServices.AccountManagement and if I use UserPrincipal class I only see the Name, Middle Name, etc

so in my c

3条回答
  •  心在旅途
    2020-12-09 03:37

    The proper way of doing it is by using PrincipalExtensions where you extend the Principal you are after and use the methods ExtensionSet and ExtensionGet as explained here.

提交回复
热议问题