OneDrive共享文件夹权限异常:拥有写入权限却无法重命名文件夹
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
相关产品推荐
相关产品推荐

