Powershell script to get list of B2B domains that are added in Allow invitations only to the specified domains (most restrictive) – All about Microsoft Endpoint Manager
Secure external access to Microsoft Teams, SharePoint, and OneDrive with Microsoft Entra ID - Microsoft Entra | Microsoft Learn