[英]Microsoft Graph API assign participant role to online meeting
I'm using graph API to create an online meeting and everything works fine as expected, I have the meeting created and with the web URL and phone audio information returned properly.我正在使用图表 API 创建在线会议,一切正常,我创建了会议,并使用 web URL 和电话音频信息正确返回。 However, now I'm trying to see if I can pre-assign a participant role to whoever person might join, and I can't seem to find anything from the documentation.
但是,现在我正在尝试查看是否可以将参与者角色预先分配给任何可能加入的人,但我似乎无法从文档中找到任何内容。
I've tried to add attendee with the following code during the creation of the meeting, but it can't seem to recognize or match with either the email or full name of the when he/she joins the meeting.我在创建会议期间尝试使用以下代码添加与会者,但它似乎无法识别或匹配 email 或他/她加入会议时的全名。
var mpi = new MeetingParticipantInfo()
{
Identity = new IdentitySet
{
User = new Identity
{
Id = Guid.NewGuid().ToString(),
DisplayName = displayName
}
},
Upn = email,
Role = role
};
Is there anything I'm missing or is the pre-assign role even possible programmatically in Teams meeting?是否有任何我遗漏的内容,或者预分配角色甚至可以在 Teams 会议中以编程方式进行?
Not sure about Participant role.不确定参与者的角色。
Under Participant section - like you mentioned.在参与者部分 - 就像你提到的那样。
https://docs.microsoft.com/en-us/graph/api/resources/meetingparticipants?view=graph-rest-1.0 https://docs.microsoft.com/en-us/graph/api/resources/meetingparticipants?view=graph-rest-1.0
There are 2 categories有2个类别
You have two roles under attendees - Presenter, attendees.您在参加者下有两个角色 - 演示者、参加者。
Use PATCH
使用
PATCH
https://graph.microsoft.com/v1.0/me/onlinemeetings/<MEETING ID>
You will be able to get the meeting when you had created the online meeting invite.创建在线会议邀请后,您将能够获得会议。
For Attendee Role:对于与会者角色:
{"participants":{"attendees":[{"identity":{"@odata.type":"#microsoft.graph.identitySet"},"upn":"<UPN>","role":"attendee"}]}}
For Presenter Role:对于演示者角色:
{"participants":{"attendees":[{"identity":{"@odata.type":"#microsoft.graph.identitySet"},"upn":"<UPN>","role":"presenter"}]}}
Organizer组织者
As far as I have You will not be able to change/add organizer when you use the 'me' endpoint.据我所知,当您使用“我”端点时,您将无法更改/添加组织者。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.