onedrive-api-docs | Official documentation for the OneDrive API | REST library
kandi X-RAY | onedrive-api-docs Summary
kandi X-RAY | onedrive-api-docs Summary
Official documentation for the OneDrive API
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of onedrive-api-docs
onedrive-api-docs Key Features
onedrive-api-docs Examples and Code Snippets
Community Discussions
Trending Discussions on onedrive-api-docs
QUESTION
I am able to access OneDrive items of all the users in Office 365 business account using a free trial created from this link.
However, in order to make it work I needed to give my application below permission, which eventually allows this app to access OneDrive items of all the users in this tenant because of these permissions.
File.Read.All -> Delegate
File.Read.All -> Application
User.Read -> Delegate
User.Read.All -> Delegate
Site.Read.All -> Delegate
Now, my requirement is to access OneDrive document of only one users from this tenant and block the application from accessing documents from other users, or access document of any personal account (@hotmail.com/@live.com).
Please let me know if there is any way or in case I am doing anything wrong with the application I registered.
Asked the same question here but bot told to ask to azure team in stackoverflow https://github.com/OneDrive/onedrive-api-docs/issues/1219
Appreciate any help.
...ANSWER
Answered 2020-Feb-11 at 06:31Firstly, you need to understand the differences between Application permission and Delegate permission.
Application permission means App-only, the application acts as a user but there is no user sign in.
Delegate permission means App + User, a user will need to log into the application and access the resources.
So based on the permissions you have provided, I can't tell if your application requires a user to log in. If yes, Delegate permissions will take effect. Based on Delegated permissions, Files.Read.All
allows the app to read all files the signed-in user can access. If the signed in user can access others' document, then your app can access them too. So if you control the access permissions for the user in OneDrive or SharePoint, your app with this signed in user will have the same permissions.
If your app doesn't require a signed in user, Application permissions will take effect in this case. Based on Application permissions, Files.Read.All
allows the app to read all files in all site collections without a signed in user. So this scenario does not meet your needs.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install onedrive-api-docs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page