Microsoft Graph API Calendar Event invalid response attendees (email is invalid)

Maryna Shabalina 1 Reputation point
2021-08-19T09:41:05.557+00:00

Hello! I am working with Events and Microsoft and it response with invalid attendee (text instead of email address)

%{  
           "emailAddress" => %{  
             "address" => "/o=ExchangeLabs/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=bdc77b18152647a29d28ce1188376dc9-kristina",  
             "name" => "Kristina Morgental"  
           },  
           "status" => %{  
             "response" => "declined",  
             "time" => "2021-08-18T14:32:56.6879116Z"  
           },  
           "type" => "optional"  
         }  

But the the actual email is kristina@Jordan Shlosberg .com, not "/o=ExchangeLabs/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=bdc77b18152647a29d28ce1188376dc9-kristina" like it showed in response

Moreover, response body content the old status of kristina@Jordan Shlosberg .com, which leads to incorrect showing response status of user

%{  
           "emailAddress" => %{  
             "address" => "kristina@prosapient.com",  
             "name" => "normal normal"  
           },  
           "status" => %{  
             "response" => "tentativelyAccepted",  
             "time" => "2021-08-18T14:32:22Z"  
           },  
           "type" => "required"  
         }  

This is not 100% reprodused issue


Full response body on get by id:

%{  
   "originalEndTimeZone" => "UTC",  
   "responseStatus" => %{  
     "response" => "organizer",  
     "time" => "0001-01-01T00:00:00Z"  
   },  
   "allowNewTimeProposals" => true,  
   "end" => %{"dateTime" => "2021-08-19T10:00:00.0000000", "timeZone" => "UTC"},  
   "id" => "AAMkAGFiZTQ3MGI3LWM1NTEtNDc0My1hMDkxLTc1NmQxYzMyMzQ2NwBGAAAAAABGltwGkhwsTKOTWxB8TBQcBwDNTSZeDTcWSo31XHW7VtvCAAAAAAENAADNTSZeDTcWSo31XHW7VtvCAAAhliNSAAA=",  
   "calendar@odata.navigationLink" => ".....')",  
   "hideAttendees" => false,  
   "body" => %{  
     "content" => "<html>.....</html>\r\n",  
     "contentType" => "html"  
   },  
   "createdDateTime" => "2021-08-18T14:31:52.7429167Z",  
   "recurrence" => nil,  
   "categories" => [],  
   "@odata.etag" => "W/\"zU0mXg03FkqN9Vx1u1bbwgAAIYBA1Q==\"",  
   "locations" => [  
     %{  
       "displayName" => "+18312286340,,472484#",  
       "locationType" => "default",  
       "uniqueId" => "+18312286340,,472484#",  
       "uniqueIdType" => "private"  
     }  
   ],  
   "type" => "singleInstance",  
   "seriesMasterId" => nil,  
   "transactionId" => "f9c14989-5a0c-4b8c-8403-229c3842822f",  
   "importance" => "normal",  
   "isReminderOn" => true,  
   "sensitivity" => "normal",  
   "webLink" => "https://outlook.office365.com/owa/?itemid=....",  
   "onlineMeeting" => nil,  
   "@odata.context" => "https://graph.microsoft.com/v1.0/$metadata#users('booking%40psapient.onmicrosoft.com')/events/$entity",  
   "location" => %{  
     "displayName" => "+...,,472484#",  
     "locationType" => "default",  
     "uniqueId" => "+...,,472484#",  
     "uniqueIdType" => "private"  
   },  
   "bodyPreview" => "Call with 212wwewe 1212eew Please ensure a fast & stable internet connection by",  
   "isCancelled" => false,  
   "originalStartTimeZone" => "UTC",  
   "isAllDay" => false,  
   "changeKey" => "..",  
   "organizer" => %{  
     "emailAddress" => %{  
       "address" => "booking@pSapient.onmicrosoft.com",  
       "name" => "booking"  
     }  
   },  
   "start" => %{  
     "dateTime" => "2021-08-19T09:00:00.0000000",  
     "timeZone" => "UTC"  
   },  
   "attendees" => [  
     %{  
       "emailAddress" => %{  
         "address" => "kmorgental.work+2master@gmail.com",  
         "name" => "master mm"  
       },  
       "status" => %{"response" => "none", "time" => "0001-01-01T00:00:00Z"},  
       "type" => "required"  
     },  
     %{  
       "emailAddress" => %{  
         "address" => "kristina@prosapient.com",  
         "name" => "normal normal"  
       },  
       "status" => %{  
         "response" => "tentativelyAccepted",  
         "time" => "2021-08-18T14:32:22Z"  
       },  
       "type" => "required"  
     },  
     %{  
       "emailAddress" => %{  
         "address" => "/o=ExchangeLabs/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=bdc77b18152647a29d28ce1188376dc9-kristina",  
         "name" => "Kristina Morgental"  
       },  
       "status" => %{  
         "response" => "declined",  
         "time" => "2021-08-18T14:32:56.6879116Z"  
       },  
       "type" => "optional"  
     }  
   ],  
   "isOnlineMeeting" => false,  
   "showAs" => "busy",  
   "lastModifiedDateTime" => "2021-08-18T14:33:54.9229143Z",  
   "reminderMinutesBeforeStart" => 15,  
   "isOrganizer" => true,  
   "isDraft" => false,  
   "onlineMeetingUrl" => nil,  
   "iCalUId" => "040000008200E00074C5B7101A82E00800000000047FA1C93D94D701000000000000000010000000607B746D98CD924E8602770F51806F52",  
   "occurrenceId" => nil,  
   "onlineMeetingProvider" => "unknown",  
   "calendar@odata.associationLink" => "....",  
   "subject" => "CALL - 212wwewe 1212eew (main1 / Industry Expert)",  
   "responseRequested" => true,  
   "hasAttachments" => false  
 }  
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,649 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 37,216 Reputation points
    2021-08-30T09:12:54.137+00:00

    You can try to call the api using the Graph Explorer tool.

    127477-image.png

    0 comments No comments