简体   繁体   English

Microsoft Graph API 将参与者角色分配给在线会议

[英]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个类别

  1. attendees与会者
  2. organizer组织者

You have two roles under attendees - Presenter, attendees.您在参加者下有两个角色 - 演示者、参加者。

To add a attendees to meeting:要将与会者添加到会议:

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.

相关问题 使用 Microsoft Graph API 创建“在线会议活动”或仅在线会议 - Create a 'event as online meeting' or only the onlineMeeting using Microsoft Graph API 使用 microsoft graph api c# 创建在线会议时出现 404 错误,而无需登录 AzureActiveDirectory - 404 error while creating Online Meeting using microsoft graph api c# without login into AzureActiveDirectory 如何在UWP App中使用Microsoft Graph API为会议分配会议室 - How to assign Room to an Event for meeting using Microsoft Graph API in a UWP App 分配许可证(Microsoft Graph API) - Assign a License (Microsoft Graph API) 使用 Graph API 创建在线会议时返回 403 Forbidden - 403 Forbidden returned while creating Online Meeting with Graph API 使用UWP中的microsoft Graph API为登录用户获取特定日期的会议邀请和事件 - Getting meeting invites & events for the specific day for the logged in user using microsoft Graph API in UWP 使用Microsoft的EWS创建在线Lync / Skype会议 - Using Microsoft's EWS to create online Lync/Skype meeting Microsoft Graph - 创建 Outlook/团队会议作为 application.Net/C# - Microsoft Graph - Create outlook/teams meeting as a application .Net/C# Microsoft Graph API Microsoft 登录 - Microsoft Graph API Microsoft Login 使用 Microsoft Graph API 将 Excel 文档在线上传到 SharePoint 时的 0 字节文件 - 0 Byte file when uploading an Excel document to SharePoint online using the Microsoft Graph API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM