Control Access to Price Books and Products
Ian wants only his team to have access to the custom price books, so he sets up this security by granting sharing access. But before doing this, he modifies the organization-wide default setting for the price book object.
Change Organization-Wide Default Setting
- From Setup, enter
Sharing
in Quick Find, and then select Sharing Settings.
- In the Organization-Wide Defaults section, click Edit.
- Find the Price Book object and set the Default Internal Access to View Only. (Notice the other objects for which you can customize the default internal access.)
- Click Save.
Grant Sharing Access
To implement sharing settings, switch to Salesforce Classic.
- Click your profile icon and select Switch to Salesforce Classic.
- Once you're in Salesforce Classic, click Setup.
Since you changed the organization-wide setting for price books to view only, no one can actually use them. To allow Ian and his subordinates to use a specific price book, change the settings.
- On the tab menu, click .
- On the All Tabs screen, select Price Books.
- Under Price Book Name, select Enterprise.
- In the Price Book Detail section, click Sharing.
- Click Add and enter these details:
Field
Details/Action
Search
Select Roles and Subordinates. You may also see this listed as Roles and Internal Subordinates.
Available
Click Roles and Subordinates (or Roles and Internal Subordinates): VP, International Sales and select Add.
Price Book Access
Select Use .
- Click Save.
- In the page header section, click Switch to Lightning Experience.
Test the Access
Now that you’ve made these changes, test the sharing access to make sure the right people have access to the price books and can add products. Give admins the ability to log in as other users first.
Enable admins to log in as any user.
- From Setup, enter
Login Access
in Quick Find, and then select Login Access Policies.
- Under Manage Support Options, next to Administrators Can Log in as Any User, select Enabled.
- Click Save.
Allow admin to be logged back in automatically.
- From Setup, enter
Session
in Quick Find, and then select Session Settings.
- Uncheck Force relogin after Login-As-User.
- Click Save.
Ensure that users with the Custom: Sales Profile can log in as a Lightning Experience User by default and can also add the Price Books navigation item.
- From Setup, enter
Profiles
in Quick Find, and then select Profile.
- From the list of profiles, click Custom: Sales Profile
- Under System Permissions, click Edit and select Lightning Experience User and click Save and then Save.
- Click the arrow next to System Permissions and select Object Settings.
- Find and click Price Books . Click Edit and Under Tab Settings select Default On.
- Click Save and Save again.
Admins can view price books and add products from the Enterprise Price Book to an opportunity, so there is no need to test this. So, let's test the access of one of the team's sales rep.
Log in as Alek Wozniak, add the Price Books navigation item, and verify that Alek can view Price Books and add products to an opportunity from a Price Book.
- From Setup, enter
Users
in Quick Find, and then select Users.
- Next to Wozniak, Alek, click Login.
- In the upper right corner, click .
- Click Add more items.
- From Available Items, click All.
- Find Price Books and click .
- Click Add 1 Nav Item, and then click Save.
- From the navigation bar, find the new Price Books nav item and click it (may be under More).
If the Price Books Recently Viewed list view shows no price books and if there is no other view to choose, create a new view to see the shared Price Book.
- Click to access the List View Controls menu and select New.
- For List Name, enter
Alek’s View
.
- Ensure Only I can see this view is selected and click Save.
Verify that Alek can view Price Books and products, and also add products to an opportunity from a Price Book.
- Under Price Book Name, click Enterprise.
- To view the products, click the Related tab.
- In the top navigation, click the Accounts tab.
- Change the list view from Recently Viewed to All Accounts.
- Under Account Name, click Saito Family Laundromats.
- In the Opportunities section, click Saito – Ground-mounted Panels.
- In the Products section, from the actions menu, click Add Products.
- For the GreenSun product name, click the checkbox.
- Click Next.
- For Quantity, enter
1
.
- Click Save. You should see this success message indicating that Alek is now able to add products.
- At the top of the page, click Log out as Wozniak Alek.
In this step, you changed the organization-wide default settings for price books so you can restrict the use of your price book except to those under the role of VP, International Sales. Then you tested to make sure it worked. Next, create a couple of quotes and sync them to an opportunity.
Resources
- Salesforce Help: Organization-Wide Sharing Defaults
- Salesforce Help: Guidelines for Sharing Price Books