I cannot view/see my files which i have uploaded on OneDrive using Microsoft.Graph api. Where can i find them in OneDrive?

Rajkumar Purushothman 5 Reputation points
2023-01-19T05:57:02.0133333+00:00

Steps:

  1. There is a OneDrive folder shared by a generic/functional/service account with some human user account. Both are haveing Business account type only.
  2. Upload file into already shared OneDrive folder using some generic functional/service Account programatically using graph API (site.selected api application permission is given into Azure app). File is successfully uploaded as same file can be downloaded successfully using programatically calling graph api.
  3. Issue is that human user unable to see newly uploaded file into given OneDrive shared path. Same user can able to see already existing files.

Any solution how to handle this issue?

Would appreciate your response.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,972 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
890 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. CarlZhao-MSFT 38,356 Reputation points
    2023-01-19T10:09:57.73+00:00

    Hi @Rajkumar Purushothman

    You can try letting users call the graph API to list the files uploaded under a specific folder.

    GET https://graph.microsoft.com/v1.0/drives/{drive id}/root:/{folder name}:/children

    User's image

    Hope this helps.

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


  2. Anonymous
    2023-01-19T17:23:53.9566667+00:00

    Hi @Rajkumar Purushothman,

    Thanks for reaching out!

    Use one of the following workarounds as appropriate for your situation:

    • Share individual files but not folders.
    • Share a whole site collection or subsite.
    • If your site doesn't require Limited-access user permission lockdown mode, deactivate this site collection feature.

    Reference document: Accessing Shared Folder

    Hope this helps.

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

    0 comments No comments