A cloud-based identity and access management service for securing user authentication and resource access
Hello Ross Phillips,
You’re not hitting a fixed API limit. It’s a risk-based block in Microsoft Entra.
There isn’t a specific rate limit published for New-MgInvitation, but there are service level limits for B2B invitations that provide context:
Reference: https://learn.microsoft.com/en-us/entra/identity/users/directory-service-limits-restrictions
Even within these limits, requests can still be blocked if the pattern looks automated. A 30 second delay is usually not enough.
In practice, keep it slower and less predictable. Send 5 to 10 invites, add random delay of 1 to 3 minutes, and pause 15 to 30 minutes between batches.
For 20 to 30 users, don’t do it in one run. Split it into batches or let initial users onboard others through the portal.
Portal CSV uploads are handled differently and are generally more tolerant than API calls, though still subject to protection.
There is no whitelisting option. Support can unblock, but it can happen again if the same pattern continues.