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

Allan Deyoung 20 Reputation points
2023-04-07T05:00:00.25+00:00

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.
11,457 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
981 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CharanyaB-MSFT 1,886 Reputation points Microsoft Vendor
    2023-04-07T05:05:47.53+00:00

    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