---
title: Office 365 settings
slug: access-guide/office-365-settings
docTags: 
createdAt: 2026-10-09T06:41:05.949Z
---

Office 365 is configured using either WS-Federation or SAML federation authentication protocols. Select one of the following service provider options in the Choose Service Provider page to configure Office 365 settings:

- Office 365 Using SAML
- Office 365 Using WS-Federation

:::Paragraph{indent="1"}
Figure: Choose service provider
:::

::Image[]{src="https://api.archbee.com/api/optimize/V3jJx_afLEcmDauLTrzss/QVNlwvcopMqISQZGiw4L3_serviceproviderr32.png" position="flex-start" size="100" width="2526" height="1452" initialPath="../Resources/Images/ServiceProviderR32.png" githubPath="Resources/Images/ServiceProviderR32.png" darkWidth="2526" darkHeight="1452" showCaption="false" indent="1"}

The following list describes the settings specific to Office 365 as the service provider:

- [Office 365 settings using SAML authentication](docId\:K-DMCPVFBx7YP9cxAOmUX)
- Office 365 settings using WS-Federation authentication
- [PowerShell commands for Office 365](docId\:K-DMCPVFBx7YP9cxAOmUX)
- [Backup and restore Office 365 federation settings](docId\:K-DMCPVFBx7YP9cxAOmUX)
- [Multi-domain issuer](docId\:K-DMCPVFBx7YP9cxAOmUX)
- Active Logon Policy for Office 365

## Office 365 settings using SAML authentication

The following describes the additional Office 365 settings available for configuration if your service provider is Office 365 Using SAML. These settings are available in the IdP configuration page:

- **ECP Backend Type:&#x20;**&#x53;elect from the drop-down list. Specifies the ECP backend type to connect to the IdP.
- **Federated Domain**: Enter the value for Office 365.
  Example: mycompany.com.
- **Active Logon Settings**<font color="#008000">\: </font>Enter the Active Logon URL in the text box for<font color="#008000"> </font>**Original IDP Active Logon URL.&#x20;**&#x54;he Active Logon URL varies depending on the ECP backend type and the IdP. If your IdP is Microsoft ADFS, the Original IDP Active Logon URL text box is pre-populated with the Active Logon URL. Update the URL with the correct ADFS domain.
  - Example for ADFS using ECP WS-Trust 1.3:
    https\://\<FQDN of the ADFS server>/adfs/services/trust/13/usernamemixed.
  - Example for ADFS using WS-Trust2005:
    https\://\<FQDN of the ADFS server>/adfs/services/trust/2005/usernamemixed

:::Paragraph{indent="1"}
Figure: IdP settings for Office 365 as the service provider using SAML
:::

::Image[]{src="https://api.archbee.com/api/optimize/V3jJx_afLEcmDauLTrzss/r1uWnmBNiJ3PkdRQRzYT0_office365samlr29.png" position="flex-start" size="100" width="941" height="539" initialPath="../Resources/Images/Office365SamlR29.png" githubPath="Resources/Images/Office365SamlR29.png" darkWidth="941" darkHeight="539" showCaption="false" indent="1"}

## Office 365 settings using WS-Federation authentication

The following describes the additional Office 365 settings available for configuration if your service provider is Office 365 Using WS-Federation.

The option to enable multiple federated domains is available in the Office 365 service provider configuration page.

- **Support Multiple Domains**: Select the check box to enable multiple federated domains to use the same federated pair in Ivanti Access.

The options to configure MEX metadata and the Active Logon URL are available in the IdP configuration page.

MEX metadata and Active Logon URL expose SOAP Web Service endpoints and define how other endpoints interact with the SOAP Web Service endpoints. Ivanti Access publishes MEX metadata based on the MEX metadata configuration provided by the original IdP. Access only exposes the endpoints that are supported and configured in the MEX metadata of the original IdP. Only WS-Trust 1.3 and WS-Trust 2005 protocols for usernamemixed are supported. Configuring MEX metadata allows for support for applications such as Microsoft Dynamics 365 and Microsoft SQL Server. In addition, Windows Transport endpoint is supported with Ivanti Access + Standalone Sentry deployments only.

For more information about enabling Windows Transport endpoints, see [Azure Hybrid Domain-Join with Ivanti Access](docId\:CaYUzwipJrgkrcBQnQ6VG).

Select one of the following methods to provide the MEX metadata configuration from the original IdP:

- **Enable Mex Metadata**: Select the check box to provide metadata configuration from the original IdP. Choose one of the following:
  - **MEX metadata URL**: Enter the URL for the MEX metadata for the original IdP.
    Example for ADFS MEX Metadata URL : https\://\<FQDN of the ADFS server>/adfs/services/trust/mex
    **Note**: Federation metadata import through URL might fail if the server does not present certificate chain issued by trusted certificate authorities. For the MEX metadata URL, the corresponding server must present full certificate chain issued by trusted certificate authority.
  - **Upload MEX metadata**: Upload the MEX metadata file from the original IdP.

:::Paragraph{indent="3"}
Deselect the check box to disable MEX metadata.
:::

- **Enable Active Logon URL**: Select the check box to enable Active Logon URL. Enter the Active Authentication URL for the original IdP. You enable Active Logon URL to handle Active Auth traffic. This is required for applications, such as some email applications, that support only active authentication. Ivanti Access exposes only WS-Trust 2005 usernamemixed endpoints. If your IdP is Microsoft ADFS, the Original IDP Active Logon URL text box is pre-populated with the Active Logon URL. Update the URL with the correct ADFS domain.
  Example:
  https\://\<FQDN of the ADFS server>/adfs/services/trust/2005/usernamemixed
  Deselect the check box to disable Active Logon URL.

:::hint{type="info" indent="1"}
Native iOS clients, Android email clients, and Email+ use active authentication.
:::

:::Paragraph{indent="1"}
See also [Active Logon Policy for Office 365](docId\:Mz9D6BeqsWlZhuAmldhox).
:::

:::Paragraph{indent="1"}
Figure: Office 365 settings using WS-Federation authentication
:::

::Image[]{src="https://api.archbee.com/api/optimize/V3jJx_afLEcmDauLTrzss/tZqhsvi9OqWRmX4au_lH7_image.png" size="90" isUploading="false" width="1209" height="866" darkWidth="1209" darkHeight="866" showCaption="false" indent="1"}

## Authentication with Microsoft PowerShell commands

Ivanti Access supports the use of Microsoft PowerShell commands, such as Connect-MgGraph and Connect-SPOService, to get authorization tokens to authenticate endpoints with Azure ID. This support allows administrators to set up authentication for service provider (SP) accounts that belong to a federated domain.

- PowerShell commands, such as Connect-SPOService, are ActiveAuth transactions. Therefore, ensure that an Active Logon Policy is applied. Otherwise, the ActiveAuth traffic is bypassed and no rules are evaluated.
- Ensure that the latest version of Microsoft Graph PowerShell SDK is installed when running PowerShell scripts from Ivanti Access pair for setting up Office 365.

For Ivanti Access + Standalone Sentry deployments, the feature is not enabled by default. The feature is enabled using command line interface (CLI) commands in Standalone Sentry. The commands are available in Standalone Sentry 9.6.0 through the latest version as supported by Ivanti.

:::hint{type="danger"}
Do not enable the feature on a Standalone Sentry that is configured for ActiveSync. The feature is not supported on a Standalone Sentry that is configured for ActiveSync.
:::

To enable the feature in Ivanti Access + Standalone Sentry deployments, enter the following command in Standalone Sentry command line interface (CLI) in CONFIG mode:

:::CodeblockTabs
Code

```bash
config# debug sentry ignore-line-breaks true
```
:::

To disable the feature in Ivanti Access + Standalone Sentry deployments, enter the following command in Standalone Sentry command line interface (CLI) in CONFIG mode:

:::CodeblockTabs
Code

```bash
config# debug sentry ignore-line-breaks false
```
:::

Restart the Standalone Sentry service for the configuration changes to take effect. To restart Standalone Sentry service, enter the following command in EXEC PRIVELEGE mode:

:::CodeblockTabs
Code

```bash
sentry# service tomcat restart
The 'service tomcat restart' may impact traffic.
Would you like to proceed? {yes|[no]} : yes
```
:::

To view whether the feature is enabled or not in Standalone Sentry, enter the following show command in EXEC PRIVELEGE mode:

:::CodeblockTabs
Code

```bash
sentry# show sentry ignore-line-breaks
org.apache.xml.security.ignoreLineBreaks: false
```
:::

- False indicates that the feature is disabled.
- True indicates that hte feature is enabled.

## PowerShell commands for Office 365

The commands to federate Azure AD with Ivanti Access are provided as a PowerShell batch script, which can be downloaded from the Ivanti Access administrative portal. After you create a federated pair with Office 365 in Access, the link to download the PowerShell batch script becomes available in the federated pair listing in Profile > Federated pairs.

**Prerequisite**

:::hint{type="info"}
Ensure that the latest version of Microsoft Graph PowerShell SDK is installed when running PowerShell scripts from Ivanti Access pair for setting up Office 365.
:::

To use the PowerShell commands, download the PowerShell script and run the script in PowerShell with the following command:

- *script\_name* is the name of the downloaded PowerShell script.
- *mydomain.com&#x20;*&#x69;s the Microsoft Azure AD domain.

:::CodeblockTabs
Code

```bash
script_name.ps1 -domain mydomain.com
```
:::

**Prerequisite**

Ensure that you have PowerShell Administrator permissions.

Figure: Download PowerShell commands


::Image[]{src="https://api.archbee.com/api/optimize/V3jJx_afLEcmDauLTrzss/SoS09rgPAm5VkeFpqoRjL_spadfspowershell.png" size="81" isUploading="false" initialPath="../Resources/Images/SPADFSPowerShell.png" githubPath="Resources/Images/SPADFSPowerShell.png" width="810" height="542" darkWidth="810" darkHeight="542" showCaption="false"}

## Backup and restore Office 365 federation settings

To backup and restore the Office 365 federation settings, see [Back up and restore Office 365 settings](docId\:vkB4YXrt9prUd3RyPxPjA).

## Multi-domain issuer

If you are federating using the WS-Federation protocol, you can use the same federated pair for multiple AD domains suffixes that federate with the same Office 365 tenant.

In cases where multi-domain issuer is enabled, Ivanti Access composes the multi-domain issuer from the domain in the UPN. If the UPN domain is the sub domain, the issuer will not match with the root domain issuer in Azure AD. Configure the attribute Azure Domain in the ADFS, if you have a domain forest (multiple ADs joined in the forest). In such cases, the issuer URI suffix is derived from the value of the attribute name Azure Domain in the assertion from the original IdP.

For ADFS 3.0, to add the Azure Domain attribute, add the following claim rules to the relying party trust:

- Query Distinguished Name from AD

:::CodeblockTabs{indent="1"}
Code

```bash
c:[Type == "http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname", Issuer == "AD AUTHORITY"]
=> add(store = "Active Directory", types = ("http://somedomain.com/phase1"), query = ";DistinGuishedName;{{0}}

", param = c.Value);
```
:::

- Parse Distinguished Name to compose root domain

:::CodeblockTabs{indent="1"}
Code

```bash
c:[Type == "http://somedomain.com/phase1"]
=> add(Type = "http://somedomain.com/phase2", Value = RegExReplace(c.Value, "^(?:.*?)DC=(?<domain1>[^'DC']*),DC=(?<domain0>[^'DC']*)$", "${{domain1}}

.${{domain0}}

"));
Issue root domain and AzureDomain attribute
c:[Type == "http://somedomain.com/phase2"]
=> issue(Type = "http://schemas.xmlsoap.org/claims/AzureDomain", Value = c.Value);
```
:::

For ADFS 4.0, to add the Azure Domain attribute, add the following claim rules to the relying party trust:

- Query Distinguished Name from AD

:::CodeblockTabs
Code

```bash
c:[Type == "http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname"]
=> add(store = "Active Directory", types = ("http://somedomain.com/phase1"), query = ";distinguishedName;{{0}}

", param = c.Value);
```
:::

- Parse Distinguished Name to compose root domain

:::CodeblockTabs
Code

```bash
c:[Type == "http://somedomain.com/phase1"]
=> add(Type = "http://somedomain.com/phase2", Value = RegExReplace(c.Value, "^(?:.*?)DC=(?<domain1>[^'DC']*),DC=(?<domain0>[^'DC']*)$", "${{domain1}}

.${{domain0}}

"));
```
:::

- Issue root domain and Azure Domain attribute

:::CodeblockTabs
Code

```bash
c:[Type == "http://somedomain.com/phase2"]
=> issue(Type = "http://schemas.xmlsoap.org/claims/AzureDomain", Value = c.Value);
```
:::


