【问题标题】:Graph Api to add external users to a group chat用于将外部用户添加到群聊的 Graph Api
【发布时间】:2022-06-13 22:33:24
【问题描述】:

有没有办法将外部成员添加到组 [不是作为 ADD 一部分的访客用户] 图 api 似乎只接受 ADDconversation 成员, 是否可以添加外部用户?

【问题讨论】:

标签: microsoft-graph-api microsoft-teams


【解决方案1】:

您需要先邀请他们,您可以通过 Azure AD(预览版)模块进行邀请:

要向您的测试电子邮件帐户发送邀请,请运行以下 PowerShell 命令(将“John Doe”和 john@contoso.com 替换为您的测试电子邮件帐户名称和电子邮件地址):

New-MgInvitation -InvitedUserDisplayName "John Doe" -InvitedUserEmailAddress John@contoso.com -InviteRedirectUrl "https://myapplications.microsoft.com" -SendInvitationMessage:$true

该命令向指定的电子邮件地址发送邀请。

参考:https://docs.microsoft.com/en-us/azure/active-directory/external-identities/b2b-quickstart-invite-powershell

或者对应的Graph API端点:

POST https://graph.microsoft.com/v1.0/invitations
Content-type: application/json

{
  "invitedUserEmailAddress": "admin@fabrikam.com",
  "inviteRedirectUrl": "https://myapp.contoso.com"
}

参考:https://docs.microsoft.com/en-us/graph/api/invitation-post?view=graph-rest-1.0&tabs=http

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-10-12
    • 2022-11-19
    • 1970-01-01
    • 1970-01-01
    • 2012-07-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多