A cloud-based identity and access management service for securing user authentication and resource access
The error indicates that Microsoft Entra has placed a security-based block on B2B invitations for the directory. This is treated as suspicious activity protection and cannot be cleared through configuration alone; it requires Microsoft support intervention.
Based on the available information, the only supported remediation path is:
- Have a Global Administrator for the affected tenant open a support case with Microsoft.
- In the support request, include:
- The exact error message and code from the Graph API response.
- A description of the recent activity pattern (repeated invite/delete cycles for test users).
- Confirmation that the activity was intentional and part of testing/automation.
- Work with Microsoft support to review and remove the block on invitations for the directory.
While waiting for the block to be cleared, verify that normal B2B configuration is correct so that invitations work once unblocked:
- Review External collaboration settings in Microsoft Entra to ensure:
- Guest invitations are allowed.
- The correct roles are permitted to invite guests.
- Any domain allow/block lists are configured as intended.
- Review cross-tenant access settings and Microsoft cloud settings if collaborating with other Entra tenants or across Azure clouds, to ensure they are not independently blocking invitations.
If the tenant itself ever becomes inaccessible or blocked more broadly (for example, due to inactivity), a tenant administrator must also contact Microsoft support to request reactivation within the allowed window.
References:
- Configure external collaboration settings for B2B in Microsoft Entra External ID
- Troubleshoot common issues with Microsoft Entra B2B collaboration
- Allow or block B2B collaboration with organizations
- Error: ResponseStatusNotOK when sharing a SharePoint or OneDrive site
- 7 Day Old Azure Account: AADSTS5000225: This tenant has been blocked due to inactivity. - Microsoft Q&A