Can't set the event organizer using the Create Event on Graph API

Guilherme Kricheldorf 26 Reputation points
2022-07-21T19:31:12.193+00:00

Hi,

We think we’ve found a bug in your MS-GRAPH API > Create event endpoint. We are trying to use the organizer property. According to the documentation we can use the organizer and isOrganizer (set to false) to determine the event organizer user (recipient resource type).

In our testing when we do this an event is successfully created, but the organizer is not set to the passed value - it just inserts the owner of the calendar… who is definitely NOT the organizer in this case and no error message is provided by the API.

If context helps, we operate a recruiting software company. Interview scheduling is quite complex and we want to add events to a shared calendar (which we created through the graph api)... but…

Events will be created by many different people throughout the company (often known as recruiting coordinators or professional schedulers)
Events are created to invite job seekers (not on the domain) to interviews
Events are created to invite interviewers (users on the domain) to interviews
None of these three constituents (scheduler, candidate, interviewer) are the owner of the shared calendar we are adding events to.

As you might imagine, recruiting coordinators need to be notified when calendar events are accepted or rejected and everything we found indicates that notifications are sent the event organizer… so we were hoping to be able to pass the email address of the logged in user in our app (the scheduler) as the organizer…

We would greatly appreciate it if you could confirm that passing an email address for the organizer value in the MS-GRAPH API > Create event endpoint is supported (that we’ve found a bug)... and if so, rough time estimate to fix it if that’s the case.

If our code is malformed, we have some sort of sharing or permission issue or anything else, please let us know. Here’s the way we are passing code to create the calendar event:

We are sending on the payload the following properties:
{
...
"isOrganizer"=>false,
"organizer"=>{"emailAddress"=>{"name"=>"Test", "address"=>"test@test .com"}},
}

But the API response returns:
{
...
"isOrganizer"=>true,
"organizer"=>{"emailAddress"=>{"name"=>"John Calendar Owner", "address"=>"owner@test .com"}},
...
}

Thanks,
Guilherme

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,532 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Cornel Enache 0 Reputation points
    2023-02-09T10:23:10.0033333+00:00

    Hello, any news about this, @Guilherme Kricheldorf did you find any solution?


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.