Setting permissions for downloads from OneDrive

Open
#1,621 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
18/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
node.js, typescript

Research direction

Start with the linked Actions.md getStream entry and the Microsoft Graph create-link and list-permissions documentation. Trace how the download request generates its share URL, then determine whether request parameters or headers can constrain access and document the supported outcome.

Written by the indexing model from the issue text.

Description

Is it possible when generating a share URL as part of the download operation to limit scope of access?

I am creating an access token on an application level and then requesting a download from OneDrive using NodeJS streams with .getStream(). As part of this process a share URL is generated, this URL is accessible to anonymous users for up to an hour.

I have been reading up on creating share links and setting permissions, with the idea of limiting access to the share URL to either specific users or to the organization generating the share URL.

Is this possible with the SDK?
Are there query parameters or headers that can be added to the initial download request that would limit access to the share URL?

Dominant language
TypeScript
Stars
833
Forks
240
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoftgraph/msgraph-sdk-javascript

All issues in microsoftgraph/msgraph-sdk-javascript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.