Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Active Directoty search

$
0
0

I want to get the group principal based on display name instead of SAMAccountname.

GroupPrincipal group = GroupPrincipal.FindByIdentity(ctx, "My Testing Group");


My Testing Group is display name while My_Testing_Group SamAccountName. Above statement returns null while below one works fine:

GroupPrincipal group = GroupPrincipal.FindByIdentity(ctx, "My_Testing_Group");


Please help.


Viewing all articles
Browse latest Browse all 8156

Trending Articles