How to get attendance of users who join live event online through Microsoft Graph API ?

Copper Contributor

I found there is API for getting online meeting on Microsoft Graph APIhttps://docs.microsoft.com/en-us/graph/api/onlinemeeting-get?view=graph-rest-beta&tabs=http

But there is no any attendees in the request, only creator in the attendees list.

I was wondering if there is way to get attendees through API.

 

Beside, there is "Call" API to get participant, how to get the call id since i don't find any information to get it.

Call – Get call https://docs.microsoft.com/en-us/graph/api/call-get?view=graph-rest-beta&tabs=http

Call - Get participant https://docs.microsoft.com/en-us/graph/api/participant-get?view=graph-rest-beta&tabs=http

9 Replies

@austin_lee  : Have you tried looking at List events api, this gives you a list of events + attendees list of that particular event.

 

For Call API : You need to create call first using Create Call..This will create a call and provide you "id".You then need to use that "id" and get participants.

 

Manish-MSFT_0-1610096747326.png

 

Thanks,

Manish Chitre

--------------------------------------------------------------------------------------------------------------------------------------------

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

 

@Manish-MSFT , thanks for your reply.

i just tried List events api, i could receive live event meeting from api, but there is no attendees in the response. Is there other way to get attendees of live event?

 

For Call API, if the call doesn't be created by API, how do I find the call id?

 

 

Thanks,

Austin

 

@austin_lee : 

 

i just tried List events api, i could receive live event meeting from api, but there is no attendees in the response. Is there other way to get attendees of live event?

 

=> Can you provide your response here, I would like to investigate this in more detail.

 

For Call API, if the call doesn't be created by API, how do I find the call id?

=> No, it's possible to get call id other than graph api. 

 

 

Thanks,

Manish Chitre

--------------------------------------------------------------------------------------------------------------------------------------------

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

 

 

 

 

 

 

@Manish-MSFT , thanks again.

 

I created a live event "Test LiveEvent" on Teams Calendar manually, and there are attendees in attendee engagement report.

 

Screen Shot 2021-01-13 at 10.33.11 AM.png

{
   "@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users('{userId}')/events",
   "value":[
      {
         "@odata.etag":"W/\"BHNkcTTooEeODXPM6bGYwAAALPcBww==\"",
         "id":"AAMkADAzNjljYWYxLTdhMTQtNGJkNi04NWMyLTI5N2IyMjM2YTY1YwBGAAAAAADXti9J-06aQaaLbOMR4-yEBwAEc2RxNOigR44Nc8zpsZjAAAAAAAENAAAEc2RxNOigR44Nc8zpsZjAAAAs_uPEAAA=",
         "createdDateTime":"2020-12-24T09:49:58.409914Z",
         "lastModifiedDateTime":"2020-12-24T09:49:59.5260063Z",
         "categories":[
         ],
         "transactionId":null,
         "originalStartTimeZone":"Taipei Standard Time",
         "originalEndTimeZone":"Taipei Standard Time",
         "iCalUId":"040000008200E00074C5B7101A82E00800000000285A0024DAD9D601000000000000000010000000FCB0A0842395D649A68CB1C00967954C",
         "reminderMinutesBeforeStart":15,
         "isReminderOn":true,
         "hasAttachments":false,
         "subject":"Test LiveEvent",
         "bodyPreview":"Don't forward this invitation. Go to Microsoft Teams to invite additional people.\r\n\r\n\r\n\r\n________________________________________________________________________________\r\nMicrosoft Teams\r\nJoin live event\r\nJoin as producer or presenter when it's time for t",
         "importance":"normal",
         "sensitivity":"normal",
         "isAllDay":false,
         "isCancelled":false,
         "isOrganizer":true,
         "responseRequested":true,
         "seriesMasterId":null,
         "showAs":"busy",
         "type":"singleInstance",
         "webLink":"https://outlook.office365.com/owa/?itemid=AAMkADAzNjljYWYxLTdhMTQtNGJkNi04NWMyLTI5N2IyMjM2YTY1YwBGAAAAAADXti9J%2F06aQaaLbOMR4%2FyEBwAEc2RxNOigR44Nc8zpsZjAAAAAAAENAAAEc2RxNOigR44Nc8zpsZjAAAAs%2BuPEAAA%3D&exvsurl=1&path=/calendar/item",
         "onlineMeetingUrl":null,
         "isOnlineMeeting":true,
         "onlineMeetingProvider":"teamsForBusiness",
         "allowNewTimeProposals":true,
         "isDraft":false,
         "hideAttendees":false,
         "responseStatus":{
            "response":"organizer",
            "time":"0001-01-01T00:00:00Z"
         },
         "body":{
            "contentType":"html",
            "content":"<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n<meta content=\"text/html; charset=us-ascii\">\r\n</head>\r\n<body>....</body>\r\n</html>\r\n"
         },
         "start":{
            "dateTime":"2020-12-24T10:00:00.0000000",
            "timeZone":"UTC"
         },
         "end":{
            "dateTime":"2020-12-24T10:30:00.0000000",
            "timeZone":"UTC"
         },
         "location":{
            "displayName":"",
            "locationType":"default",
            "uniqueIdType":"unknown",
            "address":{
            },
            "coordinates":{
            }
         },
         "locations":[
         ],
         "recurrence":null,
         "attendees":[
         ],
         "organizer":{
            "emailAddress":{
               "name":"Austin Lee",
               "address":"{userPrincipalName}"
            }
         },
         "onlineMeeting":{
            "joinUrl":"https://teams.microsoft.com/l/meetup-join/19%3ameeting_NTQwZmY5MGMtNzQzNy00OTNjLWFmMGEtZDQ4OTk5OWY1OTZk%40thread.v2/0?context=%7b%22Tid%22%3a%22b2d81422-ae1b-45ca-9dde-e006d77a2b79%22%2c%22Oid%22%3a%22d7a01633-1353-4772-bbc8-bafe4145020f%22%2c%22IsBroadcastMeeting%22%3atrue%7d"
         },
         "calendar@odata.associationLink":"https://graph.microsoft.com/v1.0/users('{userId}')/calendars('{calendarId}')/$ref",
         "calendar@odata.navigationLink":"https://graph.microsoft.com/v1.0/users('{userId}')/calendars('{calendarId}')"
      }
   ]
}

 

@austin_lee : I am able to get list of attendees here's what I did. 

 

1. https://graph.microsoft.com/v1.0/me/events : [Post] sent request to this API to create an Event.

 

 

 

 

 

 

{"subject":"Let's go for lunch","body":{"contentType":"HTML","content":"Does noon work for you?"},"start":{"dateTime":"2017-04-15T12:00:00","timeZone":"Pacific Standard Time"},"end":{"dateTime":"2017-04-15T14:00:00","timeZone":"Pacific Standard Time"},"location":{"displayName":"Harry's Bar"},"attendees":[{"emailAddress":{"address":"first email address","name":"firstName"},"type":"required"},{"emailAddress":{"address":"{secound email address}","name":"{secound name}"},"type":"required"}],"allowNewTimeProposals":true,"transactionId":"7E163156-7762-4BEB-A1C6-729EA81755B8"}

 

 

 

 

 

 

Once, event is created I then used ListEvents API [Get] request to list my event which also returned attendees to the event. 

 

Manish-MSFT_2-1610708629148.png

 

Manish-MSFT_3-1610708700802.png

 

Please follow above steps you will get attendees joining that event. 

 

 

Thanks,

Manish Chitre

--------------------------------------------------------------------------------------------------------------------------------------------

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

 
 

 

 

 

 

@Manish-MSFT 

I tried Calendar Event APIs already, I could get attendees from API if I give attendees on event created.

But my scenario is to create a live event without attendees on calendar then send join url to attendees, and I could get the list of attendee who attended from calendar.

I would like to know if there is any API to get the attendee report.

Thanks.

 

Screen Shot 2021-01-18 at 9.59.30 AM.png

Best regards,

Austin

 

@austin_lee , There is no Graph API that would return us attendee report at the moment. I have just seen a user voice with 10,000+ votes here, I think we need to wait for Feb to get this feature rolling for public ring. 

 

Thanks,

Manish Chitre

--------------------------------------------------------------------------------------------------------------------------------------------

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via [Microsoft Teams Developer Feedback](https://aka.ms/DevSupportFeedback) link. Click [here](https://aka.ms/DevCommunityEscalationForm) to escalate.

@Manish-MSFT 

Thanks for the information.

Does the release include Graph APIs? Since we are looking for an effective solution to get attendees.

https://www.microsoft.com/en-us/microsoft-365/roadmap?filters=Microsoft%20Teams&searchterms=66459

 

Best regards,

Austin

@austin_lee : That's a good observation, I think it will be rolling it out in ms teams not Graph API(sorry for providing the wrong link).But, generally engineering team makes Graph API available once the feature is in GA. I would still suggest to raise a user voice for this issue here.

 

Thanks,

Manish Chitre

--------------------------------------------------------------------------------------------------------------------------------------------

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via [Microsoft Teams Developer Feedback](https://aka.ms/DevSupportFeedback) link. Click [here](https://aka.ms/DevCommunityEscalationForm) to escalate.