将Webhook添加到SharePoint列表

时间:2017-07-20 06:32:08

标签: postman webhooks sharepoint-online

我使用Postman将Webhook添加到SharePoint列表并且遇到权限问题:

POST https://[Company].sharepoint.com/sites/Test/_api/web/lists('80105E8F-2CEA-4D49-8238-2A1829B46494')/subscriptions

Body:
{
  "resource": "https://[Company].sharepoint.com/sites/Test/_api/web/lists('80105E8F-2CEA-4D49-8238-2A1829B46494')",
  "notificationUrl": "https://MyFunctions.azurewebsites.net/api/HttpTriggerCSharp1?code=[ClientCode]",
  "expirationDateTime": "2017-09-27T16:17:57+00:00"
}

Response:
{
    "error": {
        "code": "-2147024891, System.UnauthorizedAccessException",
        "message": {
            "lang": "en-US",
            "value": "Access denied. You do not have permission to perform this action or access this resource."
        }
    }
}

我是SharePoint网站集管理员,我可以成功列出当前的网络连接(没有)。 我使用以下命令列出当前的webhook:

GET https://[Company].sharepoint.com/sites/Test/_api/web/lists('80105E8F-2CEA-4D49-8238-2A1829B46494')/subscriptions

Response:
{
    "d": {
        "results": []
    }
}

0 个答案:

没有答案