Hi @shenlaroche
It seems that your working environment is an app-only context (unattended), then you need to grant Files.ReadWrite.All
application permission to the calling app and grant admin consent, after which use daemon based client credentials flow request access token.
GET https://graph.microsoft.com/v1.0/users/{user-id}/drive/root/children
Note that we can only download files and not folders, so the @microsoft.graph.downloadUrl
property is not returned for folder items. You need to list all the files in the folder.
https://graph.microsoft.com/v1.0/users/{user-id}/drive/items/{folder-id}/children
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.