Share files with between group of user using Microsoft Live sdk

204 Views Asked by At

I am developing an application that requires to share files between users using Microsoft Live sdk. But only resource that I came across is by providing a shared link or embed link which expires after some time and are open to public usage. Instead, I want to share files among only certain group of one drive users and that too, permanently. This functionality is already present in one drive itself. Is there any way of doing it using one drive api ?

UPDATE: google drive api supports these.

1

There are 1 best solutions below

3
On BEST ANSWER

The OneDrive API support the creation of sharing links, which would be easy to send to the group that you want to give access to a specific file or folder. These links do not expire, however they can be revoked.

Here is an example of the kind of request you can use to create one of these links

POST https://api.onedrive.com/v1.0/drive/items/{item-id}/action.createLink
Content-Type: application/json

{
  "type": "view"
}