InfoPath is still one of the most widely used form choices for SharePoint. In this article we will see how to make a section visible to certain users for a SharePoint list form designed in InfoPath. This blog is divided into two parts for better understanding and readability.
Assumptions/Prerequisites
- The users’ permission levels will be maintained in a SharePoint list instead of a SharePoint group. The platforms in consideration are SharePoint 2016 and InfoPath 2013
- We will also assume that the InfoPath form is created and published. It has got two sections which are visible to everyone (there is no permission-based visibility implemented at this point time)
This is how the form looks to begin with.
After following the steps outlined below, only the section title “For HR use only” will be visible to the HR users and the section titled “For Leadership use only” will be visible to Leadership.
There are two lists we will deal with,
- Employees (this is the main list)
- Permission Configuration (this list holds the permission levels of users)
Step 1 - Creating the Permission List
In this step, we will configure the permissions list. Create the following fields in permission list.
- Grant Access to (this is a People and Group field)
- Permission Level (this is a choice field with two options – HR and Leadership)
If you wish, you can remove the default “Title” field from the content type. To do that follow this path,
List settings - Advanced settings - Allow management of content types (Yes) - Ok - Content types - Item - Title - Column settings (Hidden) - Ok
Step 2 - Adding the data connection to Permission List
In this step we will create the data connection to the permission list from the Employees list. Open the “Employees” list in InfoPath and from the “Data” tab, click on “Data connections”. Then click on “Add”

In the next screen that pops up, select “Create a new connection” and then “Receive Data”. Click on “Next”

Select “SharePoint list or library” and then click on “Next”

In the next screen, give the URL of the web for your site where the permissions list is hosted (for example: http://black.starkindustries.com/sites/labs). Click on “Next”











Join the conversation! Your thoughts help the community grow.