Forum Discussion

fstephane's avatar
fstephane
Copper Contributor
Jan 15, 2025
Solved

OneDrive Sharing and Graph "/invite" Endpoint Now Creating Guest Users?

I have an application that integrates with OneDrive via the Graph API, and leverages OneDrive sharing features. Recently I got a new Microsoft E5 dev license, and I've noticed that the sharing workf...
  • fstephane's avatar
    Jan 16, 2025

    I was able to determine that this has to do with https://learn.microsoft.com/en-us/sharepoint/sharepoint-azureb2b-integration.

    I could not find a way to disable the integration on the Entra portal, but the article linked above gave me a Powershell command to do it (with the "Sharepoint Online Management" module):

    Connect-SPOService -Url https://{tenant}-admin.sharepoint.com
    Set-SPOTenant -EnableAzureADB2BIntegration $false

    I am now able to share with external users without them automatically being added as guests, and requiring granting permissions and MFA setup.

Resources