代码之家  ›  专栏  ›  技术社区  ›  ilooner

来宾用户邀请未发送电子邮件

  •  0
  • ilooner  · 技术社区  · 6 年前

    here 将来宾用户添加到我的Active Directory。

    post请求成功,返回201响应代码并返回以下数据:

    {
       "@odata.context":"https://graph.microsoft.com/v1.0/$metadata#invitations/$entity",
       "id":"xxx",
       "inviteRedeemUrl":"https://invitations.microsoft.com/redeem/?tenant=xxx&ticket=xxx&ver=2.0",
       "invitedUserDisplayName":"xxx",
       "invitedUserType":"Guest",
       "invitedUserEmailAddress":"xxx@gmail.com",
       "sendInvitationMessage":false,
       "inviteRedirectUrl":"http://localhost:4200/",
       "status":"PendingAcceptance",
       "invitedUserMessageInfo":{
          "messageLanguage":null,
          "customizedMessageBody":null,
          "ccRecipients":[
             {
                "emailAddress":{
                   "name":null,
                   "address":null
                }
             }
          ]
       },
       "invitedUser":{
          "id":"xxx"
       }
    }
    

    当我使用azureui检查activedirectory时,我看到用户是在目录中创建的。但我从未收到邀请电子邮件,除非我在用户界面中单击“重新发送邀请”按钮。

    1 回复  |  直到 6 年前
        1
  •  1
  •   ilooner    6 年前

    我犯了个愚蠢的错误。你需要添加 sendInvitationMessage: true https://docs.microsoft.com/en-us/graph/api/resources/invitation?view=graph-rest-1.0