Forum Discussion
Access Teams Attendance using RSC permission
Could you please check this sample and let us know if this helps? Microsoft-Teams-Samples/samples/meetings-attendance-report at main ยท OfficeDev/Microsoft-Teams-Samples (github.com)
Also please note that OnlineMeetingArtifact.Read.All permission is required to get the meeting attendees.
- mrdanielmitchellApr 24, 2023Copper Contributor
Hello. Thank you for your response. The sample you gave is very useful. As you mention this requires the Teams Admin to approve and grant the Graph permission OnlineMeetingArtifact.Read.All - This makes adding the app to Teams a two step process. 1st install the app and then 2nd contact your teams administrator and ask him to give Graph permissions. This graph permission is quite broad giving access to not only the attendance report but also any recordings. Administrators may be weary of doing this.
I had hoped I would be able to gain the attendance report using permissions gained via the Teams App manifest file.
e.g.
{"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.16/MicrosoftTeams.schema.json","version": "1.0.1","manifestVersion": "1.16",[--Truncated--]"authorization": {
"permissions": {
"orgWide": [],
"resourceSpecific": [
{
"name": "OnlineMeetingParticipant.Read.Chat",
"type": "Application"
},
{
"name": "ChannelMeetingParticipant.Read.Group",
"type": "Application"
}
]
}
}These two permissions should grant me access to the meeting participants. (Using the permissions via the teams app manifest is also more secure as it will only grant access to teams/channels where the app is installed, and in many cases quicker to install as it will allow a user to add the app and make use of its features without involving the Teams Administrator.) However I am unable to find any documentation or samples on how to make use of these permissions?
Regards,
Daniel Mitchell
- Meghana-MSFTApr 26, 2023Bronze ContributorAs per the Graph API doc to get attendanceRecords, https://learn.microsoft.com/en-us/graph/api/attendancerecord-list?view=graph-rest-1.0&tabs=http. It makes use of OnlineMeetingArtifact.Read.All permission and RSC permission are currently not supported here.
- mrdanielmitchellApr 26, 2023Copper Contributor
If this is the case then what is the purpose of the RSC permission ChannelMeetingParticipant.Read.Group and OnlineMeetingParticipant.Read.Chat?
Thanks