update 3.feb 2013

Hi,

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:

  image

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:

OU=Employees,DC=xnetdev,DC=si

This will go recursively through your OU and display all users and groups inside OU and sub OUs:

image

  

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:

image

Users and groups have links to their profile pages:

image

 

You can also chose to show execution time and number of loaded objects in web part properties:

image

image

  

Hope you like it.

Smile

  

Soft82 100% Clean Award For Display members of AD group in SharePoint

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:

robi@kompas-xnet.si

Last edited Mar 8, 2013 at 12:50 PM by ruben0404, version 13