Valid emailadress produces error in https://graph.microsoft.com/v1.0/invitations

Peter Havekes 0 Reputation points
2023-09-07T06:35:19.7266667+00:00

I try to create an invite for an external user, using the graph API POST to https://graph.microsoft.com/v1.0/invitations

When the user has a + sign in his email-adres, the API responds with an BadRequest error. See attached screenshot. Whan I replace the + in the invitedUserEmailAddress with a - or _ the request works fine. An email-address with a + in the ccRecipients is accepted fine. According to the email-rfc's, a + sign is a valid character in the local part of an email-address.

Microsoft Graph Identity API
Microsoft Graph Identity API
A Microsoft API to access Azure Active Directory (Azure AD) resources to enable scenarios like managing administrator (directory) roles, inviting external users to an organization, and, if you are a Cloud Solution Provider (CSP), managing your customer's data.
308 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 79,536 Reputation points MVP
    2023-09-10T15:45:33.5533333+00:00

    The Graph devs likely didn't read the RFC :) Best submit this as a feature request over at the Feedback portal: https://feedbackportal.microsoft.com/feedback/forum/ebe2edae-97d1-ec11-a7b5-0022481f3c80