图形API将外部用户添加到组聊天

发布于 2025-02-06 02:49:55 字数 71 浏览 2 评论 0 原文

有没有办法向组添加外部成员[不是添加的来宾用户] 图API似乎仅接受addConversation成员, 是否可以添加外部用户?

is there a way to add an external member to the group [not the guest user who is part of the ADD]
the graph api seems to accept only the ADDconversation member ,
is it possible to add an external user ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

霊感 2025-02-13 02:49:55

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

发送邀请到您的测试电子邮件帐户,运行以下PowerShell命令(替换“ John Doe”和< a href =“/cdn-cgi/l/email-protection” class =“ __ cf_email__” data-cfemail =“ A1CBCEC9CFE1CFE1C2C2CECFD5CED2CE8FC2CECC”> [email&nbsp; procectived] 带有您的测试电子邮件帐户名称和命令)

New-MgInvitation -InvitedUserDisplayName "John Doe" -InvitedUserEmailAddress [email protected] -InviteRedirectUrl "https://myapplications.microsoft.com" -SendInvitationMessage:$true

:向指定的电子邮件地址发送邀请。

参考:

或相应的 Graph API端点:

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

{
  "invitedUserEmailAddress": "[email protected]",
  "inviteRedirectUrl": "https://myapp.contoso.com"
}

ref: https> https> https://学习。 microsoft.com/en-us/graph/api/invitation-post?view=graph-Rest-1.0&Amp; tabs = http

You need to invite them first, you can do so via the Azure AD (preview) module:

To send an invitation to your test email account, run the following PowerShell command (replace "John Doe" and [email protected] with your test email account name and email address):

New-MgInvitation -InvitedUserDisplayName "John Doe" -InvitedUserEmailAddress [email protected] -InviteRedirectUrl "https://myapplications.microsoft.com" -SendInvitationMessage:$true

The command sends an invitation to the email address specified.

Ref: https://learn.microsoft.com/en-us/azure/active-directory/external-identities/b2b-quickstart-invite-powershell

Or the corresponding Graph API endpoint:

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

{
  "invitedUserEmailAddress": "[email protected]",
  "inviteRedirectUrl": "https://myapp.contoso.com"
}

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文