DirectorySearcher searcher = new DirectorySearcher(new DirectoryEntry(path, user, password, type)); searcher.Filter = "(&(objectclass=person)(name=" + name + "))"; SearchResult result = searcher.FindOne(); if (result != null) { DirectoryEntry user = new DirectoryEntry(result.Path, user, password); var properties = user.Properties["memberOf"]; }
var properties = user.Properties["memberOf"];
The dominoAccessGroups attribute must be requested specifically from an authenticated user, except when it is added to the "Anonymous Users can query" setting. This dominoAccessGroups attribute provides all groups, including those found through nested group expansion. A single search produces a full group list. This feature is unavailable in previous releases of Domino. Although similar to Windows 2003 Active Directory's MemberOf attribute, this new dominoAccessGroups attribute also includes nested groups:
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)