Hoe to share a document link for external user using one drive API

Pradyut Sinha 21 Reputation points

I am using Onedrive api for sharle a document link to extenal user in c# it is not working

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,087 questions
A set of technologies in the .NET Framework for building web applications and XML web services.
3,371 questions
A Microsoft file hosting and synchronization service.
909 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Srinivasa Rao Darna 6,701 Reputation points Microsoft Vendor

    Hello @Pradyut Sinha ,

    Refer Documentation: Send a sharing invitation, can be used to send sharing link to an external user.

    POST /drives/{drive-id}/items/{item-id}/invite

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

    0 comments No comments