o365-moodle icon indicating copy to clipboard operation
o365-moodle copied to clipboard

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

Open vancouverdeveloper opened this issue 1 year ago • 3 comments

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 avatar Jan 16 '25 17:01 vancouverdeveloper

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

vancouverdeveloper avatar Jan 16 '25 18:01 vancouverdeveloper

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 avatar Feb 07 '25 12:02 weilai-irl

Thank you

What about team membership sync?

From: Lai Wei @.> Sent: February 7, 2025 4:23 AM To: microsoft/o365-moodle @.> Cc: Lawrence Ng @.>; Mention @.> Subject: Re: [microsoft/o365-moodle] Add Shortcut to OneDrive folder does not show in OnDrive File Picker (Issue #2741)

CAUTION ⚠ External Sender! Do not click links or open attachments unless you expect this email or verified with the sender that the email is legitimate.

Hi @vancouverdeveloperhttps://github.com/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/childrenhttps://graph.microsoft.com/v1.0/users/%7Buserid%7D/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

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/o365-moodle/issues/2741#issuecomment-2642778568, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF4K4MEWWRXUA454MJ2IKNL2OSQRBAVCNFSM6AAAAABVKEBR4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBSG43TQNJWHA. You are receiving this because you were mentioned.Message ID: @.@.>>

vancouverdeveloper avatar Feb 07 '25 16:02 vancouverdeveloper