A cloud-based identity and access management service for securing user authentication and resource access
The error indicates that invitations from the tenant are being blocked at the service level, similar in effect to other tenant-level blocks (for example, tenants blocked due to inactivity or suspicious patterns). This cannot be removed through PowerShell or portal configuration alone and requires Microsoft support intervention.
Given the constraints in the context, the following actions are supported:
- Verify that the scenario is standard B2B invitation usage
-
New-MgInvitationis the correct cmdlet for creating B2B invitations via Microsoft Graph PowerShell. - Ensure the script is using the documented permissions (for example,
User.Invite.All,User.ReadWrite.All, orDirectory.ReadWrite.All) as required byNew-MgInvitation.
-
- Confirm B2B and external collaboration configuration
- Check that external collaboration is allowed and not restricted in a way that would cause invitation failures, especially if the error appears in other contexts such as SharePoint/OneDrive sharing. Misconfigured B2B collaboration settings can cause invitation blocks and related errors.
- Review:
- External collaboration settings
- Microsoft cloud settings (cross-cloud settings)
- Cross-tenant access settings
- These are the documented levers for “guest invitations not allowed” and “invitation is blocked by cross-tenant access settings” errors, and should be aligned with the migration scenario.
- Use supported bulk-invitation patterns
- For large-scale B2B migrations, use the documented bulk invitation approach:
- Prepare a CSV with guest user data.
- Use Microsoft Graph PowerShell (or the documented bulk-invite scripts) to send invitations.
- Ensure the latest Microsoft Graph PowerShell module is installed and used for the migration.
- For large-scale B2B migrations, use the documented bulk invitation approach:
- Escalate via Microsoft support when tenant-level blocks occur
- When a tenant is blocked at the service level (for example, tenants blocked due to inactivity or suspicious activity), the documented path is to contact Microsoft support to request reactivation or unblocking.
- If the affected tenant cannot open a support ticket directly (for example, due to subscription or access limitations), a common documented workaround is:
- Create a separate tenant (for example, via a trial subscription) where support requests can be opened.
- From that tenant, open a support ticket and clearly state that the issue concerns a different tenant that is blocked and cannot open tickets.
- Provide tenant identifiers and error details in the support request so Microsoft can investigate and unblock the original tenant.
- Avoid repeated retries while blocked
- Once the service has flagged the tenant and is returning a 403 “invitations are blocked” response, repeatedly retrying the same operation is unlikely to clear the block and may prolong automated detection flags.
- Focus efforts on support escalation and configuration validation instead of high-frequency retries.
Because the block is at the directory/service level and is not controlled by any documented B2B configuration setting or PowerShell parameter, resolution requires review and action by Microsoft support using internal tools. The documented pattern for similar tenant-level blocks is to contact support (directly or via a secondary tenant) and request reactivation/unblocking, providing tenant details and error information.
References:
- New-MgInvitation
- Tutorial: Use PowerShell to bulk invite Microsoft Entra B2B collaboration users
- Error: ResponseStatusNotOK when sharing a SharePoint or OneDrive site
- Troubleshoot common issues with Microsoft Entra B2B collaboration
- 7 Day Old Azure Account: AADSTS5000225: This tenant has been blocked due to inactivity. - Microsoft Q&A
- Error message: AADSTS5000225: This tenant has been blocked due to inactivity. - Microsoft Q&A
- I have a Micrsoft business account and I am the admin and the only user registered under this account. I can't log in because i have replaced my phone and the authenticator doesn't work. - Microsoft Q&A
- Invite users with Microsoft Entra B2B collaboration