【问题标题】:Onedrive for Business - Cannot share file/folder: 403 "forbidden"Onedrive for Business - 无法共享文件/文件夹:403“禁止”
【发布时间】:2016-04-03 05:17:51
【问题描述】:

我在 Azure 门户中设置了一个 iOS 应用程序以与 OneDrive for business 集成。

在“对其他应用程序的权限”中,我们选择了所有权限 - 微软图形 - Office 365 在线共享点 - 窗口 Azure Active Directory

我在 SDK 中运行 iOS 示例代码,它适用于接受“共享文件”的几乎功能。错误:403“禁止” UserInfo={error=notAllowed:该功能已被禁用。请联系您的管理员启用它。, NSLocalizedDescription=forbidden}

screenshot

也许我错过了某处的任何配置?能否请教一下

谢谢问候,

【问题讨论】:

    标签: azure onedrive office365-apps


    【解决方案1】:

    您是如何共享文件、创建共享链接或邀请他人的?根据测试,OneDrive REST API 在创建共享链接和邀请人员方面都表现出色。您能否使用 OneDrive REST API 重现此问题?

    这是供您参考的 OneDrive REST API。

    分享链接:

    发布https://msdnofficedev-my.sharepoint.com/_api/v2.0/drive/items/01EOIEB3KQBZ74CI7DYBELCRPNZVJKSOUC/action.createLink

    标题:

    authorization: bearer {token}
    
    Content-Type: application/json
    

    主体:

    {
      "type": "view"
    }
    

    邀请人:

    发布https://msdnofficedev-my.sharepoint.com/_api/v2.0/drive/items/01EOIEB3KQBZ74CI7DYBELCRPNZVJKSOUC/action.invite

    标题:

    authorization: bearer {token}
    
    Content-Type: application/json
    

    主体:

    {
      "requireSignIn": false,
      "sendInvitation": true,
      "roles": ["write"],
      "recipients": [
      { "email": "user1@msdnofficedev.onmicrosoft.com" }
      ],
      "message": "Here's the document I was talking about yesterday."
    }
    

    您可以参考以下链接获取访问令牌: https://dev.onedrive.com/auth/aad_oauth.htm

    【讨论】:

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