Microsoft Graph API:使用“邀请”端点时为400

问题描述

我想通过邮件向客户发送邀请,以便他们可以从我们的SharePoint下载文件。该请求是这样的:

https://graph.microsoft.com/v1.0/sites/{{siteId}}/drives/{{driveId}}/root:/Prueba/prueba.txt:/microsoft.graph.invite

随身:

{
  "recipients": [
    {"email": "[email protected]"},{"email": "[email protected]"}
  ],"message": "Download your file","requireSignIn": true,"sendInvitation": true,"roles": [ "read" ]
}

如果我用来自组织的邮件填写“收件人”,一切正常。

但是当我使用外部邮件(gmail,hotmail,其他公司邮件等)时,此正文的响应为400:

{
    "error": {
        "code": "invalidRequest","message": "The request is malformed or incorrect.",}
    }
}

我想我们需要以某种方式配置SharePoint,但是Microsoft支持无法帮助我们。有人可以提出任何解决方案吗?

谢谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)