Restricting sites by customer
Optimizely B2B Commerce websites can restrict access based on the customer selected by the user. This functionality is typically used in conjunction with Microsites, or implementations involving multiple customer sites.
Users must be assigned to customers in order for Site Restriction by Customer to function properly.
Customer website restrictions
Marking a website as Restricted in the Admin Console makes the website restricted globally. Then, assign the website to each customer that can access the restricted website.
When a user signs in to the B2B Commerce website and is given the option to choose their Customer or Ship To, only the customers and associated Ship To's that are allowed website access are displayed as options in the drop-downs.
Set a website as restricted
The following steps set a website as a restricted website. This restricts website access from every customer, except those that specifically have been granted access.
- Go to Admin Console > Websites.
- Click Edit for the site that is to be restricted.
- On the Details tab, ensure the Restricted Website toggle reflects Yes.
Enable the restrict users to assigned websites setting
- Go to Administration > System > Settings in the Admin Console.
- Search for Restrict Users to Assigned Websites.
- Toggle the Restrict Users to Assigned Websites setting to YES. If YES, website users are unable to sign into websites unless they are directly assigned to them. The default value is YES.
- Click Save.
Allow customers to view the restricted website
The following steps assume that a website has been set up as a restricted website, as shown in the steps above. To allow specific customers access to the restricted website, complete the following steps.
- Go to Admin Console > Customers.
- Click Edit for the Customer which needs access to the restricted website.
- Select the Websites tab.
- Click Assign Websites.
- From the list of displayed websites, select the websites that need to be assigned to the customer.
- Click Assign to add the selected websites to the list of websites a customer can access.
- Click Done to save.