【问题标题】:access denied while accessing a sharepoint 2013 list over http using rest使用rest通过http访问sharepoint 2013列表时访问被拒绝
【发布时间】:2018-03-16 16:27:38
【问题描述】:

我试图通过 HTTPS 使用 REST 访问 sharepoint 2013 列表

我使用了以下语法

https://name.sharepoint.com/sites/siteName/_api/web/lists

但它会返回一个错误提示 访问被拒绝。您无权执行此操作或访问此资源

我应该在某处给予许可吗?请求可能有什么问题?

【问题讨论】:

    标签: rest sharepoint-2013


    【解决方案1】:

    以后在 sharepoint.stackexchange.com 上发布此消息,您将获得更快的答案,我只是在 google 查询中偶然看到的。

    基本上这是设计使然,它不是要授予权限,只有预先授权的帐户无需身份验证即可直接访问,然后再进行安全调整。

    否则您需要使用 OAUTH 对 api 进行身份验证。

    其余的 api 是一个庞大的主题,我在这里无法涵盖我推荐你谷歌:

    “使用 oauth sharepoint rest api”

    一些不错的链接是:

    http://msdn.microsoft.com/en-gb/library/jj164022.aspx
    http://www.sharepointnutsandbolts.com/2013/01/calling-sharepoint-search-using-rest-eg.html

    祝你好运。

    【讨论】:

      猜你喜欢
      • 2014-06-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-14
      • 1970-01-01
      • 2011-01-18
      • 1970-01-01
      相关资源
      最近更新 更多