Managing Microsoft 365 Tenant Restrictions with SSL Orchestrator

Table of Contents

Introduction

F5 BIG-IP SSL Orchestrator centralizes & manages decryption of SSL/TLS traffic.  This enables security and monitoring tools to view the decrypted content and analyze it for threats and other anomalies.  SSL Orchestrator removes the burden of decrypting content from your security tools, so they perform better and are more scalable.

SSL Orchestrator is a key component of the F5 Application Delivery and Security Platform (ADSP).

This use case allows you to access Company Microsoft 365 resources while blocking access to personal/non-company Microsoft 365 resources.

Demo Video

Microsoft(Office) 365 Tenant Restrictions

This use case allows you to access Company Microsoft 365 resources while blocking access to personal/non-company Microsoft 365 resources.

In this scenario, SSL Orchestrator injects Microsoft “Tenant-Restriction” HTTP headers into outbound HTTP flows. The concept of Tenant Restrictions provides a mechanism to allow or deny access to Office 365 resources based on organizational requirements. For example, you may wish to allow access to Company Microsoft 365 Outlook mail but deny access to the same resource when using a personal account.

Detailed information from Microsoft on Tenant Restrictions is available here.  To configure Tenant Restrictions, you need your company’s ‘Restrict-Access-To-Tenants’ and ‘Restrict-Access-Context’ values.  You can obtain these from the Microsoft Azure portal by signing in as the Administrator here.

Detailed information from Microsoft on Tenant Restrictions

Microsoft Azure portal

After logging in select View under Azure Active Directory.

Your Tenant ID and Primary Domain will be shown like in the image below.

Restrict Access To Tenants – a value of permitted tenant lists, which is a comma-separated list of tenant domains that users are allowed to access.  Any domain that is registered with a tenant can be used to identify the tenant in this list. For example, to permit access to both Contoso and Fabrikam tenants, the name/value pair would look like this:

Restrict Access To Tenants: contoso.onmicrosoft.com,fabrikam.onmicrosoft.com

Restrict Access Context - a value of a single directory ID, declaring which tenant is setting the

Tenant Restrictions. For example, to declare Contoso as the tenant that sets the Tenant Restrictions policy, the name/value pair would look like this:

Restrict Access Context: 456ff232-35l2-5h23-b3b3-3236w0826f3d.

This article assumes you have a working SSL Orchestrator Deployment configured and wish to add Office 365 Outlook Tenant Restrictions.

Steps

  1. Create the Office 365 Tenant Restrictions Service
  2. Test the Tenant Restrictions

Step #1 Create the Office 365 Tenant Restrictions Service

From the configuration screen click Services then Add

Select the F5 tab then double-click on Office 365 Tenant Restrictions

Give it a name, “Microsoft365” in this example

Enter the values for “Restrict Access To Tenants” and “Restrict Access Context”

It should look something like this:

Click Save & Next

Click the name of the Service Chain you want to add it to

Move the Microsoft365 Service from Available to Selected

Click Save

Click OK

Click Save & Next

Click Deploy

Click OK

It should look like this when done

Step #2 Test the Tenant Restrictions

Attempt to login to https://outlook.office.com with a non-company domain.

NOTE: you must attempt to login with an email address and password in order to see the following error page:

Conclusion

F5 BIG-IP SSL Orchestrator simplifies and accelerates the deployment of SSL visibility and orchestration services. Whether for modern, custom, or classic apps, and regardless of their location—be it on premises, in the cloud, or at the edge—F5 BIG-IP SSL Orchestrator is built to handle today’s dynamic app landscape.

Related Content

Introduction to BIG-IP SSL Orchestrator

Integrating Security Solutions with F5 BIG-IP SSL Orchestrator

Addressing Shadow AI with F5 BIG-IP SSL Orchestrator

F5 BIG-IP SSL Orchestrator Layer 2 Services with rSeries & VELOS

What’s new in BIG-IP v21.1?

2 Likes