B2B Sync - SharePoint in Microsoft 365 (2024)

  • Article

The OneDrive sync app now lets users sync libraries or folders in Microsoft SharePoint or Microsoft OneDrive that have been shared from other organizations. This scenario is often referred to as Business-to-Business (B2B) Collaboration. We're calling this new feature in the OneDrive sync app "B2B Sync".

Microsoft Entra guest accounts play a key role in making B2B Collaboration possible. A guest account at one organization links to a member account at another organization. Once created, a guest account allows Microsoft 365 services like OneDrive and SharePoint to grant a guest permission to sites and folders the same way a member within the organization is granted permission. Since the accounts at two organizations are linked, the user only needs to remember the username and password for the account at their organization. As a result, a single sign-in to their account enables access to content from their own organization and from any other organizations that have created guest accounts for them.

Important

We recommend that you enable SharePoint and OneDrive integration with Microsoft Entra B2B to help ensure that the required Microsoft Entra guest account for the share recipient is created in your organization's directory.

B2B Sync requirements

For people outside your organization to sync shared libraries and folders:

  • External sharing must be enabled for your organization.
  • External sharing must be enabled for the site or OneDrive.
  • The content must be shared with people outside the organization at the site or folder level. If a folder is shared, it must be through a link that requires sign-in.
  • Sharing recipients must have a Microsoft 365 work or school account (in Microsoft Entra ID) in the same cloud as the content tenant - Microsoft Azure Commercial, Microsoft Azure Government, or Microsoft Azure China. (Note that Microsoft Azure Commercial contains the Microsoft 365 commercial and GCC cloud environments, and Microsoft Azure Government contains the GCC High and DoD cloud environments.)
  • Any Microsoft Entra Conditional Access policies must be compatible with guests (more below).
  • ADAL must not be enabled if using builds before 19.086.*.

This article gives an overview of the B2B Sync experience and describes these requirements in more detail.

Known issues with this release

  • Content shared from a tenant in one cloud (for example, Microsoft Azure China) can't be synced by a user in a different cloud (for example, Microsoft Azure Commercial).
  • On the Mac, Files On-Demand thumbnails will not display from external organization's sites. Thumbnails will display correctly for files from the user's own organization.
  • On the Mac, if the guest account was created with a different email address format than the form they are using with the sync app, the external site's content cannot be synced. For example, [email protected] vs [email protected].
  • On the Mac, the external content may be placed on the local computer in the user's own organization's folder instead of one with the external organization's name.
  • Interactive authentication UI for guest accounts from an external organization is not supported by the sync client.

Overview of the B2B Sync experience

Here's an example of what happens after someone at "Contoso" shares a site or folder with someone at "Fabrikam":

  1. The Fabrikam recipient receives an email like the following.

    B2B Sync - SharePoint in Microsoft 365 (1)

  2. When the recipient clicks the link in the email to go to the shared item, they need to click "Organizational account" to sign in with their Fabrikam account. Behind the scenes, this creates the Contoso guest account in Microsoft Entra ID.

    B2B Sync - SharePoint in Microsoft 365 (2)

  3. The recipient may need to enter their Fabrikam username or password, and then they can view the shared item. If they don't want to sync everything that was shared, they can browse to the library or folder they want to sync. To set up syncing, they need to click the Sync button.

    B2B Sync - SharePoint in Microsoft 365 (3)

  4. The guest's browser will display up a message asking if they want to open "Microsoft OneDrive," and they will need to allow this.

  5. If this is the first time the guest has used the sync app with their Fabrikam account, they'll need to sign in. The email address will be automatically set to the Fabrikam account used in the previous steps. The guest needs to select "Sign in."

  6. The guest might be able to sign in to the sync app without entering their Fabrikam password if they're signed in to Windows with the same account. Otherwise they'll need to enter their password.

  7. The guest will confirm where they want to sync the shared item on their computer.

    Note

    The content is placed in a folder whose name includes the name of the organization ("SharePoint - Contoso" in this example). If the user is syncing SharePoint content from Fabrikam as well, they'll also have a "SharePoint - Fabrikam" folder.

  8. The guest will continue through OneDrive sync app setup.

  9. After the guest completes setup, the site will begin syncing. The user can click the blue cloud icon in the notification area to open the OneDrive sync activity center and see the files syncing, open the local folder with the files, or open the SharePoint site in a web browser.

Enable external sharing for your organization

In order for users at your organization to be able to share with their partners at other organizations, external sharing must be enabled at the organization level. To do this, you must be a global or SharePoint admin in Microsoft 365. After you enable external sharing at the organization level, you can restrict it site by site. A site's settings can be the same as the organization setting, or more restrictive, but not more permissive.

You can change your organization-level sharing settings in two different places (both control the same thing):

  • On the Sharing page in the new SharePoint admin center. For more info, see Change the organization-level external sharing setting
  • In the Microsoft 365 admin center, on the Org settings page > SharePoint.

Important

If you allow Anyone links (sometimes referred to as "anonymous access" links), these links do not create guest accounts and therefore the external share recipient will not be able to leverage B2B Sync when receiving that link type.

For more info, see External sharing overview.

Control external sharing

When you allow users to share content from your organization externally, you can use several features in Microsoft 365 to manage who has access to the content. Admins and site owners can review permissions and audit access to sites. For info, see Searching for site content shared with people outside your organization and Turn on external sharing notifications. You can enable external sharing with only specific internet domains, or you can block specific domains. For info, see Restricted domains sharing. You can also allow only members of specific security groups to share externally. For info, see Turn external sharing on or off.

We recommend creating separate sites (site collections, not subsites) for each unit of work that you want to share externally. This way, you can clearly annotate the sites to indicate that people outside the organization have access, and avoid unintentional disclosure of information. For individual users sharing content from their OneDrive, we recommend creating separate folders for different projects or collaboration groups.

You can remove a guest's permission to a site or folder, or you can delete the guest account to remove their permission from all of your organization's content.

Important

Any synced content will remain on the user's computer after permissions have been removed.

Enable external sharing for a site

To view or change the sharing setting for any site, use the new SharePoint admin center.

  1. Go to Active sites in the SharePoint admin center, and sign in with an account that has admin permissions for your organization.

    Note

    If you have Office 365 operated by 21Vianet (China), sign in to the Microsoft 365 admin center, then browse to the SharePoint admin center and open the Active sites page.

  2. Customize the view as necessary to see the External sharing column.

  3. If you need to, change the external sharing setting for a site.

Ensure any Microsoft Entra Conditional Access (CA) policies are compatible with external access

The tenant admin can enable several kinds of conditional access policies at their tenant. When a guest is going to access a tenant's content, those policies may need to be adjusted for the guests so they can gain access.

  • Currently the sync client does not support interactive authentication UI when syncing external content. Any policy that would require a sign-in UI such as MFA (multifactor authentication) or TOU (terms of use) prompt, will prevent the syncing of the external content from that tenant. If a tenant admin deploys such a policy before a guest starts syncing from that tenant, the user will be unable to establish the sync relationship. If the policy is deployed after a guest is syncing content from the tenant, that guest will receive an error and be unable to continue to sync from the tenant.

  • Tenants may update their Terms of Use (TOU) from time to time. A policy can trigger the user to view and accept the updated TOU via an interactive authentication prompt. Since sync doesn't support external tenant sign-in UI, sync will indicate it is unable to sync the external site's content.

  • Device Compliance requires user machines to be managed by the tenant and then to be up to date with requirements. For guests, their machines are likely to be managed by their own organization and thus are incompatible with requiring their machines to be managed by the content sharing tenant.

  • Location-based conditional access policies are typically used to enforce additional requirements like MFA when the user is not connecting from a trusted location (such as the tenant's office network). Typically in a guest scenario the client machine won't be located at the trusted locations, and since sync doesn't support MFA, you likely do not want this policy to apply to your guests.

For more information see Authentication and Conditional Access for External Identities.

Methods of sharing

Sites and folders can be shared in different ways in SharePoint and OneDrive:

  • If users are syncing a folder, they can right-click it in File Explorer to share it.
  • Users can go to the SharePoint site or folder on the web and click the Share button to share it.
  • Users can share sites and folders in the SharePoint and OneDrive mobile apps.
  • Admins can create guest accounts and use the admin center or PowerShell to add them to sites.

Note

For more info about these methods, see Learn how to share a site and Learn how to share a folder.

B2B Sync works with all these methods of sharing. It has only the following requirements:

  • For guests to sync shared content, the content must be shared at the site or folder level. Guests can't sync files that are shared individually (for example, from the Office apps).
  • B2B sync works only when guest accounts are created in the organization, and when the recipient has a Microsoft Entra account. It doesn't work when users share by creating an Anyone link (also known as "anonymous access" link), or when they share with people who have a Microsoft account or other personal account.

As an admin in Microsoft 365, you can share with people outside the organization by creating guests individually in the Microsoft Entra admin center, and then adding them to a SharePoint team site individually or by adding them to a security group that already has permissions to the site you want to share. If you grant permissions by using the advanced permissions page (instead of by using the Share site button), you'll need to inform the guest that you've given them permission to the site. They won't receive an invitation email.

Important

If you use the advanced permissions page, we recommend granting permissions at the site level, not at the document library or folder level.

If you need to create and grant permissions to many guest accounts, you can use the following PowerShell script, which creates guest accounts and grants them permissions to a site. The script takes a CSV (comma-separated value) file as input, which contains a list of user display names and email addresses. For each name and email address, a guest account is created and that account is added to a security group to grant it permission. The script is designed so that you can feed the resulting output CSV as input to the script on a subsequent run. This lets you add more users to your CSV file or retry creating any failed account.

Note

Azure AD and MSOnline PowerShell modules are deprecated as of March 30, 2024. To learn more, read the deprecation update. After this date, support for these modules are limited to migration assistance to Microsoft Graph PowerShell SDK and security fixes. The deprecated modules will continue to function through March, 30 2025.

We recommend migrating to Microsoft Graph PowerShell to interact with Microsoft Entra ID (formerly Azure AD). For common migration questions, refer to the Migration FAQ.

Be aware that versions 1.0.x of MSOnline may experience disruption after June 30, 2024.

As users are added to the Microsoft Entra group, they should receive an email welcoming them to the group. After running the script, you'll need to email the users with a direct link to the SharePoint site you gave them permissions to. When they click the link, they'll be presented with the below UI to accept the terms of the invitation. Once they accept, they will be taken to the site you shared with them. At that point they can click the Sync button to begin syncing the sites files to their PC or Mac.

B2B Sync - SharePoint in Microsoft 365 (4)

# first line of InviteGuests.ps1 PowerShell script# requires latest AzureADPreview# Get-Module -ListAvailable AzureAD*# Uninstall-Module AzureAD# Uninstall-Module AzureADPreview# Install-Module AzureADPreview# customizable properties for this script$csvDir = ''$csvInput = $csvDir + 'BulkInvite.csv'$csvOutput = $csvDir + 'BulkInviteResults.csv'$domain = 'YourTenantOrganization.onmicrosoft.com'$admin = "admin@$domain"$redirectUrl = 'https://YourTenantOrganization.sharepoint.com/sites/SiteName/'$groupName = 'SiteName'# CSV file expected format (with the header row):# Name,Email# Jane Doe,[email protected]$csv = import-csv $csvInput# will prompt for credentials for the tenantorganization admin account# (who has permissions to send invites and add to groups)Connect-AzureAD -TenantDomain $domain -AccountId $admin$group = (Get-AzureADGroup -SearchString $groupName)foreach ($row in $csv){ Try { if ((Get-Member -inputobject $row -name 'error') -and ` ($row.error -eq 'success')) { $out = $row #nothing to do, user already invited and added to group } else { echo ("name='$($row.Name)' email='$($row.Email)'") $inv = (New-AzureADMSInvitation -InvitedUserEmailAddress $row.Email -InvitedUserDisplayName $row.Name ` -InviteRedirectUrl $redirectUrl -SendInvitationMessage $false) $out = $row $out|Add-Member -MemberType ScriptProperty -force -name 'time' -Value {$(Get-Date -Format u)} $out|Add-Member -MemberType ScriptProperty -force -name 'status' -Value {$inv.Status} $out|Add-Member -MemberType ScriptProperty -force -name 'userId' -Value {$inv.InvitedUser.Id} $out|Add-Member -MemberType ScriptProperty -force -name 'redeemUrl' -Value {$inv.inviteRedeemUrl} $out|Add-Member -MemberType ScriptProperty -force -name 'inviteId' -Value {$inv.Id} # this will send a welcome to the group email Add-AzureADGroupMember -ObjectId $group.ObjectId -RefObjectId $inv.InvitedUser.Id $out|Add-Member -MemberType ScriptProperty -force -name 'error' -Value {'success'} } } Catch { $err = $PSItem.Exception.Message $out|Add-Member -MemberType ScriptProperty -force -name 'error' -Value {$err} } Finally { $out | export-csv -Path $csvOutput -Append }}# for more information please see# https://learn.microsoft.com/azure/active-directory/b2b/b2b-tutorial-bulk-invite# end of InviteGuests.ps1 powershell script

For more info, see:

  • Redemption experience
  • Add user without invite

If a person's guest account is deleted or their permission to shared content is removed, the sync app will display an error.

  • A notification will appear indicating that the library can't be synced.

    B2B Sync - SharePoint in Microsoft 365 (5)

  • The OneDrive icon in the notification area will show an error.

    B2B Sync - SharePoint in Microsoft 365 (6)

    When the guest clicks the icon, they will see an error banner in the activity center.

    B2B Sync - SharePoint in Microsoft 365 (7)B2B Sync - SharePoint in Microsoft 365 (8)

Policy Setting to Prevent B2B Sync

The B2B Sync feature of the OneDrive sync app allows users at an organization to sync content shared with them from another organization. If you wish to prevent users at your organization from being able to use B2B Sync, you may set a policy value on your users' Windows PC or Mac to block external sync.

You only need to take these actions if you wish to prevent users at your organization from using the B2B Sync feature (to prevent syncing libraries and folders shared from other organizations).

The new BlockExternalSync setting is described in the adm\OneDrive.admx and OneDrive.adml files installed as part of the OneDrive sync product build 19.086.* or higher. If you use ADM to manage your sync app policies, import the new files as you normally would in order to see the new setting.

If you are using other management systems to deploy policies to your users' Windows PCs, use the equivalent of the following command to prevent B2B Sync:

reg add "HKLM\SOFTWARE\Policies\Microsoft\OneDrive" /v BlockExternalSync /t REG_DWORD /d 1

On a Mac with the Apple Store version of OneDrive, use the equivalent of the following command to prevent B2B Sync:

defaults write com.microsoft.OneDrive-mac BlockExternalSync -bool YES

On a Mac with the Standalone version of OneDrive, use the equivalent of the following command to prevent B2B Sync:

defaults write com.microsoft.OneDrive BlockExternalSync -bool YES
B2B Sync - SharePoint in Microsoft 365 (2024)

FAQs

How does SharePoint integrate with Office 365? ›

If you're using Microsoft 365, you can create a site from the SharePoint start page, and it automatically creates a Microsoft 365 group. If you create a Microsoft 365 group in Outlook or People, you automatically get a team site in SharePoint in Microsoft 365.

Can B2B collaboration users access SharePoint Online and OneDrive? ›

Can B2B collaboration users access SharePoint Online and OneDrive? Yes. However, the ability to search for existing guest users in SharePoint Online by using the people picker is Off by default. To turn on the option to search for existing guest users, set ShowPeoplePickerSuggestionsForGuestUsers to On.

How to sync a local file server with Office 365 SharePoint Online or OneDrive for Business? ›

Set up Sync for your library
  1. In your browser, on your SharePoint site, navigate to the library of files you want to sync with.
  2. Select Sync in the toolbar. Note: If your browser asks for permission to use OneDrive, confirm that it's OK.
  3. Sign in to OneDrive to start syncing your files and finish OneDrive setup.

What is B2B Sync? ›

Business-to-Business collaboration also known as B2B sync is a feature that allows SharePoint and OneDrive content to be shared and accessed across different organizations.

How do I connect SharePoint to 365? ›

App Launcher > Admin
  1. App Launcher > Admin.
  2. Navigate to SharePoint Admin Center.
  3. Click on Settings.
  4. Scroll down to Connections from sites to Office 365 groups section and choose Prevent site collection administrators from connecting sites to new Office 365 groups option.
  5. Click OK at the bottom.
Mar 12, 2019

What is the relationship between SharePoint and Office 365? ›

Behind the scenes, SharePoint in Microsoft 365 provides the content services for all files in Microsoft 365, including files you work with in Teams, Yammer, and Outlook. SharePoint is always there, helping manage and protect your files, and powering content collaboration across Microsoft 365.

What is the difference between B2B direct connect and B2B collaboration? ›

User access and management

Users have single sign-on access to B2B direct connect-enabled Microsoft applications. Currently, B2B direct connect support Teams Connect shared channels. B2B collaboration lets you invite external partners to access your Microsoft, SaaS, or custom-developed apps.

Can you sync an external SharePoint site? ›

For people outside your organization to sync shared libraries and folders: External sharing must be enabled for your organization. External sharing must be enabled for the site or OneDrive. The content must be shared with people outside the organization at the site or folder level.

What is Microsoft B2B collaboration? ›

B2B collaboration is a capability of Microsoft Entra External ID that lets you collaborate with users and partners outside of your organization. With B2B collaboration, an external user is invited to sign in to your Microsoft Entra organization using their own credentials.

How do SharePoint and OneDrive work together? ›

If you use SharePoint Server and want to take advantage of cloud storage for your users' business documents, you can set up OneDrive and have your users automatically redirected to Microsoft 365 when they select the OneDrive link in SharePoint Server.

What is the difference between SharePoint Online and OneDrive for business? ›

Files added to a SharePoint site are accessible by all the users within that site. OneDrive for Business provides personal storage space to each user. Users can collaborate by providing access to specific files to others in the organization.

How to sync SharePoint without OneDrive? ›

  1. In SharePoint, on left side navigation pane, select your Documents library.
  2. At the top-center options ribbon, select the Sync button.
  3. Once the box comes up, select the Sync now link.

What are the two types of B2B integration? ›

There are two key types of B2B integration: data-level integration and people-level integration. We've mostly talked about data-level at this point, but it's also critically important to consider the human role of integration.

Can guests sync SharePoint? ›

Ensure that external sharing is enabled and properly configured, allowing guest access and sync functionality. Verify that the “Guest” users from the HQ tenant and other tenants have the necessary permissions to access and sync the document library.

What is B2B data integration? ›

Business-to-business (B2B) integration is the automation of business processes and communication between two or more organizations.

What does SharePoint do in Office 365? ›

Organizations use Microsoft SharePoint to create websites. You can use it as a secure place to store, organize, share, and access information from any device.

Can you access SharePoint through Office 365? ›

Employees can access their SharePoint team site when you make a Microsoft 365 group in Outlook Online or Microsoft 365. You can construct a team or a variety of sites in SharePoint Server. The sites can securely store, organize, and access information from any device.

Does my Office 365 include SharePoint? ›

Microsoft 365, formerly Office 365, is a cloud-based subscription service that gives users access to several tools to improve productivity. It includes apps such as Word, Excel, PowerPoint, and Outlook; and other services such as OneDrive, SharePoint, and Microsoft Teams.

How to configure SharePoint in Office 365? ›

Create a SharePoint Online site
  1. Sign in to office.com/signin.
  2. Select the Microsoft 365 App Launcher. ...
  3. Select + Create site.
  4. Select whether you'd like to create a Team site or a Communication site.
  5. Name your site, give it a description, select privacy settings, and then select Next.

Top Articles
What small business owners need to know: Changing a SEP IRA to a 401(k) plan
Warren Buffett's 1949 financial bible: outdated or timeless?
Po Box 7250 Sioux Falls Sd
Sound Of Freedom Showtimes Near Governor's Crossing Stadium 14
Exam With A Social Studies Section Crossword
Alpha Kenny Buddy - Songs, Events and Music Stats | Viberate.com
Phenix Food Locker Weekly Ad
Is Csl Plasma Open On 4Th Of July
Mustangps.instructure
Walgreens Alma School And Dynamite
27 Places With The Absolute Best Pizza In NYC
Celsius Energy Drink Wo Kaufen
Sams Gas Price Fairview Heights Il
Hope Swinimer Net Worth
More Apt To Complain Crossword
How do you like playing as an antagonist? - Goonstation Forums
Moonshiner Tyler Wood Net Worth
Bahsid Mclean Uncensored Photo
60 X 60 Christmas Tablecloths
How To Cancel Goodnotes Subscription
Effingham Bookings Florence Sc
Full Standard Operating Guideline Manual | Springfield, MO
*Price Lowered! This weekend ONLY* 2006 VTX1300R, windshield & hard bags, low mi - motorcycles/scooters - by owner -...
A Biomass Pyramid Of An Ecosystem Is Shown.Tertiary ConsumersSecondary ConsumersPrimary ConsumersProducersWhich
Babbychula
Village
Move Relearner Infinite Fusion
Finding Safety Data Sheets
Masterbuilt Gravity Fan Not Working
100 Million Naira In Dollars
Kattis-Solutions
Pokemmo Level Caps
JD Power's top airlines in 2024, ranked - The Points Guy
Sun Haven Pufferfish
Reli Stocktwits
The Boogeyman Showtimes Near Surf Cinemas
Raisya Crow on LinkedIn: Breckie Hill Shower Video viral Cucumber Leaks VIDEO Click to watch full…
Culvers Lyons Flavor Of The Day
craigslist | michigan
Captain Billy's Whiz Bang, Vol 1, No. 11, August, 1920
America's Magazine of Wit, Humor and Filosophy
The Great Brian Last
Kjccc Sports
Phone Store On 91St Brown Deer
Headlining Hip Hopper Crossword Clue
Workday Latech Edu
Billings City Landfill Hours
Read Love in Orbit - Chapter 2 - Page 974 | MangaBuddy
Costco Tire Promo Code Michelin 2022
Deviantart Rwby
Gainswave Review Forum
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 6018

Rating: 4.9 / 5 (49 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.