Site icon Office 365 for IT Pros

SharePoint Online Embraces Entra ID B2B Collaboration for External Sharing

Advertisements

Removing Friction from Sharing by Extending OTP-based Authentication to Entra ID B2B Collaboration

External sharing of SharePoint Online and OneDrive for Business elements like documents, list items, and folders uses a technology called ad-hoc external sharing. When users share items with external recipients, SharePoint Online and OneDrive for Business use a one-time passcode to allow that person to verify their identity. A one-time passcode (OTP) is a way to authenticate the identity of people outside your Microsoft 365 tenant when Entra ID cannot verify their accounts using another method.

The ad-hoc sharing mechanism works but requires several steps before the user can open the shared item.

Figure 1: Using a one-time passcode to validate access to a shared file

Integrating SharePoint External Sharing with Entra ID B2B Collaboration

To improve external sharing, in October 2021, Microsoft plans to turn on Email one-time passcode authentication for Entra ID by default for all tenants. Like the current ad-hoc sharing, the new mechanism features one-time passcodes. The big difference is that successful authentication results in the automatic creation of guest accounts for external users.

Microsoft is making the change because it will enable new functionality for external recipients. Among the advantages cited are:

Configuring Email OTP Authentication for Entra ID

While they can wait until Microsoft enables Email OTP authentication for Entra ID in October (or opt to disable the capability), tenants can choose to use email OTP authentication for Entra ID today. To enable the feature, go to the identity providers section and configure the email one-time passcode provider as shown in Figure 2.

Figure 2: Configuring the Entra ID email one-time passcode identity provider

As you can see, this is where you can disable the feature, if that’s what you want to do.

Some configuration is necessary for SharePoint Online to integrate with Entra ID B2B and use email OTP authentication (or as Microsoft says in its documentation, Entra ID Invitation Manager). Do this with the SharePoint Online management module by connecting and running the Set-SPOTenant cmdlet to update the necessary settings:

Set-SPOTenant -EnableAzureADB2BIntegration $True
Set-SPOTenant -SyncAadB2BManagementPolicy $True

Bizarrely, while you can use the Get-SPOTenant cmdlet to retrieve the value of the EnableAzureADB2BIntegration setting, it doesn’t report a value for SyncAadB2BManagementPolicy.

Using Email OTP Authentication for Entra ID

With Email OTP authentication for Entra ID enabled and connected to SharePoint Online, the following happens for external sharing.

The user creates a sharing link as usual (existing sharing links continue to work and there’s no need to recreate links).

Figure 3: Completing the validation process for the new guest account

The external recipient now has a guest account in the tenant. They can use this account to access other resources shared with them. And if the authentication token granted through a sign-in is still valid, they won’t have to sign in again to open other shared resources. When the guest account accesses tenant resources, Entra ID captures audit records in its sign-in log (Figure 4).

Figure 4: An Entra ID audit record for a guest account sign-in to access a shared file

The tenant can manage the guest account like any other account, including imposing conditional access policies to restrict access where necessary, like confidential sites marked with an authentication context with a sensitivity label.

Guest Accounts Need Management

Using guest accounts to manage external access to SharePoint Online and OneDrive for Business resources is a sensible move. It’s a lower friction mechanism for external people that’s easier for tenants to operate. That being said, guest accounts do need to be managed as it is all too easy to allow obsolete or unused accounts accumulate in Entra ID. Microsoft doesn’t provide any tools to clean up old guest accounts, but you can do the job with PowerShell.


Learn more about how Office 365 really works on an ongoing basis by subscribing to the Office 365 for IT Pros eBook. Our monthly updates keep subscribers informed about what’s important across the Office 365 ecosystem.

Exit mobile version