This version of web part has several improvements:
- Treeview control does not load all members on page load, only first level of site users is loaded. On expand, calls are made to AD and members are loaded in treeview control. This enables faster page loading and loading members of specific AD group on demand.
- Expand all and collapse all options were added to web part
- Custom branding is enabled
- Email and phone number of a user can be displayed in web part
- Sending emails with email client is possible directly from web part if email address is displayed
- Better error handling
- Errors are loaded in ULS logs
- Option to display Lync status
update 5. September 2015
SharePoint 2013 version of this web part has been published. You can find all details on this page:
Web part includes several improvements and fixes. New features can be seen in the bellow picture.
update 3.feb 2013
I have completely rewritten Display members of AD groups. Now I’m using Principal Context as the primary tool to query Active Directory and not Directory Searcher as I used to do in previous versions.
There were some requests on additional functionalities so I added:
- recursive calls on AD security groups
- you can now view members of nested Active Directory security groups
- you can display members from specific Active Directory Organizational Unit
- web part now has significantly better error handling
- web part has now information about execution time
- web part now also have information about the number of objects loaded
In web part properties, you MUST enter domain name – FQDN.
You now have options to display site users and groups (users who have access to current web) or you can specify an organizational unit to query for users and security groups:
If you choose Display users and groups form specific OU option, you should also enter LDAP filter to query specific OU. LDAP filter should be in format:
This will go recursively through your OU and display all users and groups inside OU and sub OUs:
Display site users option will go through you current web and enumerate all users, SharePoint groups and Active Directory security groups. As mentioned before, it now supports nested AD security groups:
Users and groups have links to their profile pages:
You can also chose to show execution time and number of loaded objects in web part properties:
Hope you like it.
update: 5.jan 2012
added links to members of AD groups to their personal sites if you use SharePoint Server 2010 with My Sites enabled or users list if you use SharePoint Foundation.
update: 3.jan 2012
I updated the Display members of AD groups in SharePoint 2010. Now the solution has a new look and as what one of my friends,
Christian Stahl suggested I added links to members of groups and groups to display detailed info about user.
If you use SharePoint Server 2010 and you have my sites configured, you will be redirected to my site host for details about a user.
If user have permission to see members of SharePoint group, the group displays link to group membership page or group settings if you will. You can see the link in the bottom part of the picture.
AD groups now have a new icon, which you can see by the »CORP\sg_finance« AD group.
When you click on the group link you are redirected to a People and Groups page:
Users that are members of the site, not AD groups also have links to details view. If you use SharePoint Foundation 2010 you are redirected to a »Users« list if you use My Sites you are redirected to user's my site.
Hope you find the improved version of my solution useful. If you have any comments or suggestions please send me email to: