Display SharePoint users in an InfoPath multi-select list

Watch a demonstration of how you can use a multiple-selection list box control on an InfoPath 2010 form that is filled out through the browser to display users from a particular SharePoint 2010 group.

The InfoPath 2010 with SharePoint 2010 video shown below is a demonstration of how you can use a multiple-selection list box on an InfoPath 2010 form to display members of a particular SharePoint user group. The steps to create such a solution have been laid out in the bonus article for InfoPath 2010 Cookbook 3 named Display SharePoint group members in InfoPath multiple-selection list box that can be found in the InfoPath 2010 Cookbook 3 Club.

InfoPath 2010 with SharePoint 2010 video transcript

Here I'm in SharePoint 2010 where I'm currently logged in as user Jane Doe. I've also already published an InfoPath form template to this SharePoint form library, so if I click Add document to add a new form...

Jane is currently a member of two groups: BizSupportOnline Members. So if I click Get Users, she should be able to retrieve all of the users in that user group. Jane is also a member of the group BizSupportOnline OnlyJane.

So if I type in that group name and then click Get Users, she'll also be able to retrieve the users for that user group. But Jane is not a user of the Visitors group, so when I click Get Users, you'll see that this error will appear.

The only way that I will be able to retrieve users from the Visitors group is if I switch to a user who has rights to view members in that group. So I'll just switch to administrator, and then I'll add a new form, and enter the Visitors group here.

You'll see that I will be able to retrieve the user in that Visitors group. And this user can retrieve everybody, so basically also from Members and from OnlyJane.

See more InfoPath 2010 tutorial videos »

 


Related InfoPath Articles:

 

Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent. The techniques demonstrated in this article may be used within any Microsoft InfoPath project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the author.

InfoPath 2013 Cookbook: 121 Codeless Recipes for Beginners

InfoPath 2013 Cookbook 2: 121 Codeless Recipes for SharePoint 2013

InfoPath 2010 Cookbook: 101 Codeless Recipes for Beginners

InfoPath 2010 Cookbook 2: 101 Codeless Recipes for SharePoint 2010

InfoPath 2010 Cookbook 3: 101 Code Recipes for C# Developers

InfoPath 2010 Cookbook 4: 101 Code Recipes for VB Developers

InfoPath 2010 Cookbook 5: Integrating InfoPath with Excel and Excel Services