Restrict Reports Access in Salesforce

Recently, in our Salesforce org, I created two public groups for two different departments. In this, I noticed one issue: both groups can view the reports for each other’s department.

To maintain the privacy and data security for both departments, we had to restrict access to the Salesforce reports that are specific to a department.

In this Salesforce tutorial, we will discuss how to restrict access to reports in Salesforce.

Restrict Report Access in Salesforce

In this example, we will restrict access to reports for the groups. For example, Group A  will have access to Report folder A, and Group B will have access to Report folder B.

For that, we first need to create public groups by following the steps below.

Create Public Groups in Salesforce

On the setup page, go to the Quick Find box, search, and select Public Groups under the Users heading.

Public Groups option in Salesforce Lightning

In the Public Groups setup page, click on the New button option to create a new Public Group.

Public Groups option in Salesforce

On the next page, fill in the required information inside the page. First, specify the Label, Group Name, and the required Group Members.

To add members, we can add through Users, Roles, and existing Public Groups.

Create Groups to Share Salesforce Reports

Here in this example, we are filling the label with the SBDC Reports.

Once we fill out all the details, click the Save button to create a new Public group in Salesforce Lightning.

Now, we can also follow the same steps to create another Public Group with a name-> CORP Group.

Create Report Folders With Restricted Access in Salesforce

Before we jump to the next phase, we should know how to create reports in Salesforce.

Once we have created the public groups in Salesforce, we can follow these steps to restrict report access in Salesforce.

First, from the Home Setup page, click on the App Launcher icon, search for Reports, and click on the Reports option to open it.

group across blocks salesforce

After this, from the left side menu, click on the All Folders option given under the Folders section. This will open the page where all the folders will be listed.

List of folders for reports in Salesforce Lightning

On the next page, click on the New Folder option given in the top-right corner of the page.

Once we click the New Folder button, it will open a window where we need to specify the Folder Label and Folder Unique Name. After this, click on the Save button to create a new folder.

Created new folder in Salesforce Lightning

In this example, we created a folder with the name “SBDC Reports Folder“.

After clicking on the Save button, it will create and open the same folder in Salesforce. Here, we need to click on the drop-down arrow (⬇️) given next to the New Folder option and then click on the Share option.

Sharing folder in Salesforce Lightning

In this window, select the Share With option as “Public Groups” and then under Names search and select the required public group.

After selecting the Public Group, click the Share button. Once the group is added under the Who Can Access section, you can also select the type of accessibility for that group. For instance, this access can be either View, Edit, or Manage.

Lastly, click on the Done button.

Sharing report with Public Group in Salesforce

With this, every report we save in this report folder can be accessed only by the public group.

Change Report Folder in Salesforce

In case you have existing reports that you want to restrict to specific users or a group, then we can move those reports to the folder we have created.

For this, click on the All Reports option given under the Reports section from the left-side menu.

From the All Reports page, select the required report and click on the drop-down icon (⬇️) given corresponding to a report name. Then click on the Edit option to open the report in the Report Builder tab.

Editing report in Salesforce Lightning

On the Report Builder tab, again click on the drop-down icon (⬇️) given next to the Save button and click on the Properties option.

Changing report properties in Salesforce

In this window, we need to click on the Select Folder button and then choose the New Folder that we just created. After selecting the folder, simply click on the Select Folder option.

Changing folder of report in Salesforce Lightning

In our example, this new folder is the SBDC Reports Folder, which we have selected from the Created By Me section.

So, with this, we have successfully restricted the access of a report to a particular public group in Salesforce Lightning.

Conclusion

In this Salesforce tutorial, we learned how to restrict report access in Salesforce by using public groups and report folders. We first created public groups for each department and then created separate report folders. After that, we shared each folder only with the related public group.

With this setup, only selected users or public groups will be able to access the reports that will be restricted for others. This way, we make sure that reports stay private and secure for each group.

You may also like to read:

Agentforce in Salesforce

DOWNLOAD FREE AGENTFORCE EBOOK

Start with AgentForce in Salesforce. Create your first agent and deploy to your Salesforce Org.

Salesforce flows complete guide

FREE SALESFORCE FLOW EBOOK

Learn how to work with flows in Salesforce with 5 different real time examples.