Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Shortcut to OneDrive folder does not show in OnDrive File Picker #2741

Open
vancouverdeveloper opened this issue Jan 16, 2025 · 3 comments
Labels
Issue type - enhancement request New feature being requested outside of original scope. Plugin - repository_office365 Status - queued / not yet started The request is clear, but the work has yet to be scheduled.

Comments

@vancouverdeveloper
Copy link

I am able to see my OneDrive files throught the 365 Connect file picker in Moodle.

I created an "Add Shortcut to OneDrive" in our SharePoint Online site. The shortcut folder shows up in my OneDrive when I view it either in Window File Explorer or Mac's Finder.

However, when I try the file Picker, that shortcut folder that is linked to our SharePoint document library or folder is not there.

Image Image

thoughts?

@vancouverdeveloper
Copy link
Author

From what I understand or was told, the "ADD Shortcut to OneDrive" is is the preferred method by Microsoft to link to content from SharePoint Online and disregard the "Sync" method to a user's drive.

Image

@weilai-irl
Copy link
Collaborator

Hi @vancouverdeveloper,

I confirm this expected behaviour in the current implementation.

Moodle integration uses Graph APIs to interact with Microsoft systems, in this case OneDrive, to get/set data. The API used by the OneDrive repository plugin to list OneDrive files is https://learn.microsoft.com/en-us/graph/api/driveitem-list-children?view=graph-rest-1.0&tabs=http, and the exact call is GET https://graph.microsoft.com/v1.0/users/{userid}/drive/root/children. This API only returns direct child of OneDrive, and not any shortcuts.

Technically the only way to return SharePoint items in the repository plugin is to implement calls to the SharePoint API endpoints. Please convert this issue as a feature request for the feature.

Please note that feature requests are processed in queue based on demands. It will not start automatically, and it may take time for it to be processed.

Regards,
Lai

@weilai-irl weilai-irl added Issue type - enhancement request New feature being requested outside of original scope. Plugin - repository_office365 Status - queued / not yet started The request is clear, but the work has yet to be scheduled. labels Feb 7, 2025
@vancouverdeveloper
Copy link
Author

vancouverdeveloper commented Feb 7, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue type - enhancement request New feature being requested outside of original scope. Plugin - repository_office365 Status - queued / not yet started The request is clear, but the work has yet to be scheduled.
Projects
None yet
Development

No branches or pull requests

2 participants