You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

OneDrive共享文件夹权限异常:拥有写入权限却无法重命名文件夹

OneDrive Shared Folder Permissions & API Examples

When you gain access to a shared OneDrive folder from another user, here’s the breakdown of what you can and can’t do:

  • Allowed actions:
    • Add files or subfolders to the shared folder
    • Rename files and subfolders inside the shared folder
    • Delete the entire shared folder
  • Restricted action:
    • You cannot rename the shared folder itself

To grant this specific set of permissions to a user via the Microsoft Graph API, you can use the invite endpoint. Here’s a complete example:

Permission Grant API Request

POST /drives/{drive-id}/items/{item-id}/invite

Request Body

{
  "requireSignIn": false,
  "sendInvitation": false,
  "roles": [ "read | write"],
  "recipients": [ { "email": "ABC@CD.COM" } ],
  "message": "string"
}

Once the permission is applied, the user (like ABC@CD.COM in the example) will be able to successfully delete the target DriveItem by calling the appropriate DELETE /drive... API endpoint.

内容的提问来源于stack exchange,提问作者Prakash Verma

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 03:27:08