Request for API with unrestricted scope to access Onedrive-files

Jens Berget 20 Reputation points
2025-12-03T19:56:27.8333333+00:00

Hi,

Google has an API-scope called drive.file which is unrestricted (you do not need approval from them or need to undergo a comprehensive security review) and allows developers to add Google Drive-integrations to their apps where users can select exactly which files to give access to. Would you consider adding such a scope to Microsoft Onedrive as well?

Microsoft 365 and Office | OneDrive | For education | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Killian-N 6,910 Reputation points Microsoft External Staff Moderator
    2025-12-03T20:43:23.0933333+00:00

    Hi @Jens Berget,

    Welcome to the Microsoft Q&A forum.

    Thank you for your thoughtful question. I completely understand why you’re looking for a per‑file, least‑privilege option like Google’s drive.file scope, and I appreciate the opportunity to clarify this for you.

    In Microsoft 365, we aim for the same “only what’s needed” principle, but the model is a bit different across OneDrive and SharePoint. Below are the closest equivalents and how to implement them. It's different from Google's drive.file because Google’s drive.file scope is a non‑restricted per‑file scope that generally avoids the heavier verification path and limits the app to files the user created or explicitly opened/shared with the app. We have Microsoft’s closest equivalents:

    • Delegated + File Picker (user selects items, you operate only on those IDs).
    • Selected scopes (admin‑granted resource‑level access for app‑only scenarios). The outcome (least‑privilege, per‑item) is similar, but the mechanics and consent flow differ.

    If you’d like Microsoft to consider a per‑file delegated scope with automatic narrowing similar to drive.file, I highly recommend submitting a suggestion directly with the product team through the Microsoft 365 Feedback Hub > Send Feedback > Describe your proposal in detail so the team can consider it for future improvements.

    User's image

    Once you've submitted your feedback, feel free to share the link here in the comments. I’ll be happy to upvote it to help bring more visibility.

    Additionally, since many other users have expressed similar concerns but may not know where to submit feedback, if my response has helped you better understand the situation and guided you toward a possible next step, please mark it as the “Accepted Answer.” Your action will help pin this post to the top, making it easier for others in the community who are experiencing the same issue to find your feedback and support it.  

    Thank you again for your time and for raising this important usability concern. 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.