Search code examples
c#active-directorydirectoryservices

Is it possible to get Group Notes from Active Directory?


Active Directory groups have a 'Notes' property available through the interface (see image below)

AD Group Interface

Is it possible to retrieve this information in C#?

I can't seem to find the property that holds it. I've tried using the System.DirectoryServices.DirectoryEntry and System.DirectoryServices.AccountManagement.GroupPrincipal objects but none of them seem to have it.


Solution

  • There is a property called info which holds the information shown within this field. But it will only be added to the AD object if a value is available.

    If you like to see all elements that have a text within this field. Simply open the AD Browser (start dsa.msc) and open a new search. Change the selection within the "Find" combobox to Custom Search, click on Advanced and enter the text info=*. Now you'll get back a list of all elements which having this field.