I query all security groups in a specific domain using
PrincipalSearchResult<Principal> results = ps.FindAll();
where ps is a PrincipalSearcher.
I then need to iterate the result (casting it to a GroupPrincipal first ) and locate the ones that contains a specific string in the notes field.
But the Notes field from AD is appearently not a public field in the GroupPrincipal class, doh. What am I doing wrong ?
Update: I have given up on this one. It seems like there is no way to access that pesky Notes field.