SharePoint and OneDrive integration with Azure AD B2B (Preview)
This article describes how to enable SharePoint and OneDrive integration with Azure AD B2B.
Azure AD B2B provides authentication and management of guest users. Authentication happens via one-time passcode when they don't already have a work or school account or a Microsoft account (MSA).
With SharePoint and OneDrive integration, the Azure B2B one-time passcode feature is used for external sharing of files, folders, list items, document libraries and sites. This feature provides an upgraded experience from the existing secure external sharing recipient experience.
Enabling the preview does not change your sharing settings. For example, if you have site collections where external sharing is turned off, it will remain off.
SharePoint and OneDrive integration with the Azure AD B2B one-time passcode feature is currently in preview. After preview, this feature will replace the ad-hoc external sharing experience used in OneDrive and SharePoint today for all tenants.
Advantages of Azure AD B2B include:
- Invited external users are each given an account in the directory and are subject to Azure AD access policies such as multi-factor authentication.
- Invitations to a SharePoint site use Azure AD B2B and no longer require users to have or create a Microsoft account.
- If you have configured Google federation in Azure AD, federated users can now access SharePoint and OneDrive resources that you have shared with them.
- SharePoint and OneDrive sharing is subject to the Azure AD organizational relationships settings, such as Members can invite and Guests can invite.
This preview is not supported in the following Office 365 services:
- Office 365 Germany
- Office 365 operated by 21Vianet
- GCC High and DoD
Opting in to the preview
This preview requires that your organization also be opted into the Azure AD email one-time passcode authentication preview.
To opt in to the Azure AD passcode authentication preview
- Sign in to the Azure portal as an Azure AD global administrator.
- In the navigation pane, select Azure Active Directory.
- Under Manage, select Organizational Relationships.
- Select Settings.
- Under Enable Email One-Time Passcode for guests (Preview), select Yes.
- Click Save.
To opt in to the SharePoint and OneDrive integration with Azure AD B2B
- Install the latest version of the SharePoint Online Services Module for Windows PowerShell (minimum version 8924.1200).
- Connect to your tenant by using Connect-SPOService.
- Run the following cmdlets:
Set-SPOTenant -EnableAzureADB2BIntegration $true Set-SPOTenant -SyncAadB2BManagementPolicy $true
Opting out of the preview
You can disable the preview by running
Set-SPOTenant -EnableAzureADB2BIntegration $false. (You can also opt out of the Azure AD passcode authentication preview.)
Content that was shared externally while the preview was enabled will need to be shared again with the specific external users.
Note that after preview, this feature will replace the ad-hoc external sharing experience used in OneDrive and SharePoint today for all tenants and you will not be able to opt out.
We're interested in your feedback about this preview. Please fill out the Feedback on SharePoint integration with Azure AD B2B Preview survey.