Team Members list by Department in SharePoint 2013

You can use SharePoint out of box WebPart to display users i.e. Site Users, but the Site Users WebPart is not very flexible.

There is also another SharePoint out of box approach which you can take to display the Team Members which you can filter by Department number. Depending upon your scenario, you can also filter the users list by individual names or by any custom User Profile attributes.

My assumption is, you have setup User Profile Service correctly and synchronized with Active Directory, and also Search Service is also configured and crawled atleast once.

Go to the page where you want to display Team Members, and follow these steps
Site Action
Edit Page
Select the Content Rollup under Categories
Insert a Content Search webpart
Click Add


Edit the Content Search Webpart
Under properties, expand Search Criteria
Click on Change Query




Select People result source i.e. most likely it will be your Local People Results
Select the department number to filter
Click Ok

If you would like to display other User's attributes like Title, Job Title, Department name etc then make sure required User's attributes are selected.

Expand property Mappings
Select Title, Job Titles, Department name etc
Click Ok.


Finally you will see Team Members list in the webpart.




It would like nice if your users have photo in their profile!

No comments: