Sharing items in OneDrive and SharePoint
OneDrive Personal, OneDrive for Business, and SharePoint provide two different primary ways to share items with other users:
- Sharing links make it easy to share files with anyone who has the link. The link includes the authentication required to access the file and allows either read or read-write access to the shared item.
- Permissions on the item allow it to be shared with specific users who must be signed in to access the files.
OneDrive API supports creating both sharing links and item permissions.
Tasks for sharing items
Task | HTTP method |
---|---|
Create a sharing link | POST /drive/items/{item-id}/createLink |
Add permissions | POST /drive/items/{item-id}/invite |
Read permissions | GET /drive/items/{item-id}/permissions |
Remove permissions | DELETE /drive/items/{item-id}/permissions/{id} |
Update permissions | PATCH /drive/items/{item-id}/permissions/{id} |
Send sharing invitation | POST /drive/items/{item-id}/invite |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應