This topic describes how to configure OneLogin as the federation service that provides SSO for Office 365.

|
Enable WS-Trust |
If you have Entra-joined or hybrid-joined Windows machines in your infrastructure, then you must enable WS-Trust. For more information on securing your Office 365 / Entra ID environment , see Recommended Security Configurations for Office 365. If you do not have Entra-joined or hybrid-joined Windows machines in your infrastructure, One Identity strongly recommends disabling WS-Trust. |
|
|---|---|---|
|
Enable user search using UPN (Ws-Trust) |
When enabled, users will be searched by the User Principal Name (UPN) set at the app level if the user cannot be searched by the email set at the user level |
|
|
API Connection |
Enter the domain (yourdomain.com) you want to federate with Office 365 and click Verify. All users must share the same Office 365 and OneLogin email addresses, using this domain. |
|
|
Office 365 V2(Azure Graph) OAuth |
Click Authenticate to get the API access token. |
If you haven’t previously authorized, you will receive a consent request that enables OneLogin to access the Windows Azure Active Directory for Office 365.
|
|
Office 365 V2(Microsoft Graph) OAuth |
Click Authenticate to get the API access token. |
|
A dialog will prompt you to complete the authentication process by authorizing access for OneLogin. Select your Office account name and choose your account (or sign in if prompted). Once you authenticate, the Authenticate button becomes Clear Token, which allows you to clear the bearer token and reauthenticate.
| Field | Value | Type |
|---|---|---|
| ImmutableID |
Set to AD ID. If OneLogin is not integrated with Active Directory (AD), and there is no ImmutableID to provision from AD to Office 365, OneLogin generates a unique AD ID value to map to the Office 365 ImmutableID. The ImmutableID parameter is provisioned bi-directionally. If a OneLogin user is provisioned into Office 365, and that user exists with an assigned Immutable ID, OneLogin will copy that value back into the ImmutableID parameter. If the value in Office 365 differs from the value in OneLogin, we copy the value from Office 365 into OneLogin ImmutableID parameter. For this reason, we recommend you create a custom parameter to safely store Immutable IDs.
The correct ImmutableID is required for SSO to function. SSO will fail if the wrong ImmutableID is stored in OneLogin.
Important! ImmutableID is immutable! You can't change it once it's set.
|
string |
| Sharepoint Online Persistent Sessions | Enable (set macro to True to allow single sign-on sessions to persist for 5 days. | string |
| UsageLocation | A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB". | string |
| User Principal Name | string |
| Field | Value | Type |
|---|---|---|
| Display Name | Can be set to AD ID, AD user name, or company. AD ID maps to the mS-DS-ConsistencyGUID field in AD, while AD user name maps to sAMAccountName field. | string |
All other attributes are used only when provisioning users to Office 365.
While manual federation is available, you can also tell OneLogin to exchange certificates with Office 365 and configure WS-Federation automatically.
Note: the default wizard requires you to press Verify to launch a new tab, but for 30 minutes you may receive an error screen from Microsoft (see image). Ignore it and close the tab.

Microsoft has recently announced that they will enforce mandatory multi-factor authentication (MFA) for all Azure sign-in attempts to many administrative portals and applications throughout 2024 and 2025, and that those using a federated Identity Provider (IdP) directly integrated with the MFA provider, such as OneLogin, must have the federated IdP configured to send an MFA claim.
To comply with these requirements, OneLogin must be configured to issue the MFA claim and Entra ID to accept the MFA claim so that users do not need to perform MFA a second time directly in Entra ID.
OneLogin will now issue the MFA claim when acting as an Identity Provider to your federated Entra ID domain. As a OneLogin administrator, you should ensure that the user policy, or the app policy applying to the Office 365 app, is configured to require MFA. Optionally, you can set the conditions under which a user does not need to perform MFA (such as allow-listed IPs). For both cases, OneLogin will issue the MFA claim.
Note that this approach can also be used if you have conditional access policies in Entra ID that require a user to perform MFA and want the user to perform MFA in OneLogin and not in Entra ID.