None
None

Reputation: 2433

How to limit an API key to unidirectional write without read to a single OneDrive folder?

I want a single API key to be able to backup files and folders to a single Microsoft OneDrive Business folder.

I feel my requirement very basic but I struggle a lot.

Upvotes: 0

Views: 52

Answers (1)

daspek
daspek

Reputation: 1474

Unfortunately it's not currently possible to grant an app write-only access. If you don't mind, please request that feature on UserVoice so others can vote on it.

Depending on your requirements, it may be possible to do something that works for you, though. The createUploadSession API produces a write-only URL targeted at a single file. If you have a trusted component of your app (that's allowed to have full read/write access), you can let that app call createUploadSession and hand off the URL to a less-trusted piece of code that does the actual upload. I hope this suggestion helps.

Upvotes: 1

Related Questions