Search code examples
office365microsoft-graph-apionedrivesharepoint-online

Share a file from shared with me folder in Microsoft one drive using graph api


Is it possible to share the file from my Shared with me folder to other user using Microsoft Graph API.

Example:

  • User_1 created file_1 and shared it with User_2.
  • User_2 wants to share file_1 with User_3.

Solution

  • You cannot share a file someone has shared with you. Only the owner of the file can dictate how and with whom a file is shared. The alternative (allowing re-sharing of a file) would open a huge security hole as the actual owner would have no idea who has access to their data.