The error message you are encountering when trying to add a guest to the team indicates an "Access Denied" issue, which could be related to several factors. Here are some potential causes and resolutions:
- Guest Access Settings: Ensure that guest access is properly configured in Microsoft Teams. This includes settings in Microsoft Entra ID, Microsoft 365 Groups, and SharePoint. You may need to check your organization's external collaboration settings.
- B2B Collaboration Restrictions: The error might occur due to restrictions in the B2B collaboration settings of your organization. Make sure that your organization's settings allow for guest invitations and that there are no policies blocking the invitation.
- Cross-Tenant Access Settings: If your organization has cross-tenant access settings configured, ensure that they allow for the guest you are trying to invite. If the settings are too restrictive, it may lead to access denial.
- Licensing Issues: Verify that your organization has the appropriate licenses for guest access. Guest access can be used with Microsoft 365 Business Standard, Microsoft 365 Enterprise, and Microsoft 365 Education subscriptions without needing extra licenses.
If you continue to face issues, consider running a diagnostic tool in the Microsoft 365 admin center to validate that guest access is correctly configured for use in Teams. This tool can provide insights into any misconfigurations that may be causing the error.
References: