[SP2007] How to list all Active Directory Group in a page ?
Hello ! I'am a beginner and i would like to know what is the path to list in a webpart the Active Directory group ... if you have an Idea i take :) thx ! Pierre
October 17th, 2011 9:20am

A SharePoint Hack would be to create a list, enter all the values, then display the list view webpart on the page. If you need something more dynamic, then use Visual Studio to create a custom webpart. There may be existing code in the world already written to perform this, so happy Binging.Steve Clark, MCTS | Twin-Soft.com
Free Windows Admin Tool Kit Click here and download it now
October 17th, 2011 10:34am

Hi, Create custom webpart as steve suggested then you get all information from the active directory. By default there is no way in sharepoint to get information from AD. Here is some reference links: http://www.codeproject.com/KB/system/everythingInAD.aspx http://www.eggheadcafe.com/community/csharp/2/10074572/get-all-group-names-in-activedirectory-using-c.aspx http://sharepointrookie.wordpress.com/2008/07/13/display-site-members-from-ad-groups/ Hope it could helpCheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"
October 18th, 2011 4:37am

Thx ! I read this, and i take a solution if i could !
Free Windows Admin Tool Kit Click here and download it now
October 22nd, 2011 8:08am

this is a solution, it's works... maybe we can make better : string ldapPath = path + "/DC=" + domaine + ",DC=" + extension; DirectoryEntry de = new DirectoryEntry(ldapPath, login, mdp); DirectorySearcher ds = new DirectorySearcher(de); ds.Filter = "(&(objectCategory=person)(memberOf=CN=" + nom_grp_cherche + ",CN=" + cn + ",DC=" + domaine + ",DC=" + extension + "))"; SearchResultCollection rsc = ds.FindAll(); for (int i = 0; i < rsc.Count; i++) { DirectoryEntry deResult = rsc[i].GetDirectoryEntry(); resultat.Append("- "+deResult.Properties["name"].Value.ToString() + "<br />"); } ds.Dispose(); de.Dispose(); The query LDAP search all user by their group. ANd C# show the users's name. Have fun
October 24th, 2011 5:59am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics