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
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,047 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 106.2K 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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.