Hi @SAT TECH ,
Thank you for posting in this community.
Your error screenshot describes: user not in directory. Possible reason for not integrating SharePoint and OneDrive with Microsoft Entra B2B.
As said in this article: Overview of external sharing in SharePoint and OneDrive in Microsoft 365, there are two external sharing models used in SharePoint and OneDrive:
- SharePoint external authentication
- SharePoint and OneDrive integration with Microsoft Entra B2B
Your tenant will automatically create a guest user after enabling SharePoint and OneDrive integration with Microsoft Entra B2B. External users can then access files or folders through the Anyone share link.
To enable SharePoint and OneDrive integration with Microsoft Entra B2B, you can use the following cmdlets:
Connect-SPOService -Url https://yourdomain-admin.sharepoint.com
Set-SPOTenant -EnableAzureADB2BIntegration
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.