Powershell script to get list of B2B domains that are added in ‘Allow invitations only to the specified domains (most restrictive).’

We can use the Azure portal to invite B2B collaboration users. You can invite guest users to the directory, to a group, or to an application. After you invite a user through any of these methods, the invited user's account is added to Azure Active Directory (Azure AD), with a user type of Guest. The…