Hi Jswk1
Thank you for reaching out to Microsoft Q&A forum and sharing your concern.
From your relevant documentation links and observations, I understand that you're having an issue with the OneDrive File Picker requesting tokens for undocumented resources. I truly appreciate you highlighting this issue with the OneDrive File Picker requesting tokens for undocumented resources like https://loki.delve.office.com/ and https://substrate.office.com/. You're spot on that these aren't mentioned in the official OneDrive File Picker documentation, which only covers the standard permissions.
You’re running into behavior with the OneDrive File Picker and Microsoft Graph integration, where the picker internally calls additional Microsoft 365 services. If your app does not declare these permissions in Azure AD, token acquisition for those resources fails, causing AADSTS65001. Adding these permissions would require admin consent and grant broad access (e.g., to user profiles and organizational graph), which is likely beyond your intended scope.
Importantly, please do not add these extra permissions to your Azure AD app registration. That would violate least-privilege principles and expose your app to unnecessary risks. Instead, handle them gracefully in your code.
Based on my research, I've found a similar discussion on AADSTS65001 errors in this thread: AADSTS65001: The user or administrator has not consented to use the application. You may consider referring to this thread and trying the steps outlined there such as:
- Verifying admin consent in your Azure AD app registration
- Ensuring the right scopes are included in your token requests
- Checking your API permissions setup
Many users found the suggested steps helpful and reported that they resolved their issues. Please let me know how you get on, as your feedback is valuable to the community.
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.