Search code examples
onedrive

OneDrive API Link Sharing Options


I'm currently working on an application that interacts with OneDrive. I've read RESTful API manual and the only option available is to share document.

My questions are:

  • Is there any way to remove or regenerate file sharing link?
  • Is there any way to specify user emails to give an access to them?
  • Is there any way to control this UI option "Recipients need to sign in with Microsoft Account"?

Solution

  • The only way to regenerate link to a file is to:

    • Copy file "foo.docx" to "(Copy) foo.docx"
    • Remove file "foo.docx"
    • Rename "(Copy) foo.docx" to "foo.docx"
    • Generate link for "foo.docx"

    There is no way to specify emails for document access

    There is no way to control this UI option "Recipients need to sign in with Microsoft Account"