I need to share my files to an external user how can I do it using Graph API

Allan Deyoung 20 Reputation points

I need to share my file from onedrive with an external user. Is it possible via Graph API.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,838 questions
A Microsoft file hosting and synchronization service.
866 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CharanyaB-MSFT 1,576 Reputation points Microsoft Vendor

    Hello @Allan Deyoung,

    Thanks for reaching out!

    You can use send a sharing invitation to share invitation for a driveItem with users. A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments