Microsoft Graph Files refers to the OneDrive and SharePoint Files APIs in Microsoft Graph. This tag should always be used in conjunction with the [microsoft-graph] tag.
Questions tagged [microsoft-graph-files]
204 questions
2
votes
0 answers
Microsoft Graph API 403 for Guest on Drive List Children
I'm having a problem using Microsoft Graph for external users (i.e. guests invited to the tenant) in my project.
Angular 8 application for the front end
NestJs for the backend
Delegated permissions added to the App Registration for…

Pruntarious
- 43
- 4
2
votes
1 answer
Microsoft.Graph SDK connects to user's OneDrive but Items returns NULL
I'm writing a utility in C# using the Microsoft.Graph SDK that connects and reads a user's OneDrive. I have created an App Registration, granted the application Files.Read.All permissions, and given Admin consent per the documentation.
I am able to…

Joel Cochran
- 7,139
- 2
- 30
- 43
2
votes
0 answers
How to get a list of just files in a particular folder on OneDrive using Microsoft Graph API
Can anybody tell me how to get a list of just files in a particular folder on OneDrive using Microsoft Graph API? I believe I found an approach I have to use but either I don't understand something or it is impossible. I can get a list of children…

Alex
- 655
- 1
- 8
- 16
2
votes
0 answers
MS Graph API: unable to get users list of single file's permissions, instead of members, visitors and owners
I am trying to get file permission list of users (email id name etc), using path and also tried using id of file but it shows array of members, owner and visitors. I want to check how many users has access to that specific file and i want to delete…

Amir Khan
- 401
- 5
- 13
2
votes
0 answers
How to determine if the caller has permissions to edit a OneDrive file using MSGraph API
What is the correct way to determine a file’s access permissions on OneDrive when using MSGraph API? Specifically, how can I tell if the caller can edit the file?
I used the list permissions API and I get a collection of permission objects. The docs…

galsh83
- 550
- 3
- 16
2
votes
0 answers
Microsoft Graph Api, Onedrive ou Sharepoint : how to get the current user read or witre role
How to get the current user permission role of a folder (or file) with MS Graph Api ?
I try : https://graph.microsoft.com/[v1.0 or beta]/drives/[driveId]/items/[itemId]/permissions
but the role array is empty for all but the owner one...
I would…

Dadv
- 324
- 2
- 17
2
votes
2 answers
OneDrive REST APIs: "message": "The specified item does not have content." when downloading a file
the use case
I would like to download an excel sheet from OneDrive using the REST API
Documentation:
the documentation proposed to call this Endpoint : GET…

Abdelkrim
- 2,048
- 5
- 30
- 44
2
votes
0 answers
Microsoft Graph v1.0 download file content not working
I am trying to download a word document file named Test.docx located in Sharepoint Document Library from within a Visio File macro referring to the Microsoft documentation…

codebug
- 197
- 1
- 3
- 15
2
votes
2 answers
Copy a file, rename in case it exists using MS Graph for Onedrive/Sharepoint
I am copying a file from one drive to another. As part of the body request, I am also providing conflictBehavior as rename (tried with replace as well) but the copy is failing.
POST:…

aikadakh
- 57
- 7
2
votes
1 answer
Is it possible to get real time update for updates via microsoft graph webhooks?
I am trying to get the updates on SharePoint using MS graph webhooks.
I am using the following API to subscribe
POST https://graph.microsoft.com/v1.0/subscriptions
Content-type: application/json
{
"changeType": "updated",
"notificationUrl":…

Deepali
- 35
- 4
2
votes
1 answer
Create a Folder in Specific Directory in Sharepoint Drive using Graph SDK
how to make this real using just a given Url and whether it's possible or not, idk?
what i am trying to do :
Creating Folder in specific place in the Drive according to a String..
this String consist from 3 parts (every part represents folder…

Hasan Othman
- 68
- 1
- 10
2
votes
0 answers
403 Forbidden for create folder in Teams private channel drive
I'm trying to create a folder into Drive of Teams private channel.
But request is failing with 403 Forbidden
I'm owner of that particular channel,
Also I can create folders manually using SharePoint website.
Request
POST…

AbdulKareem
- 1,199
- 8
- 24
2
votes
0 answers
OneDrive Personal list versions API does not provide a unique id for the current version
I'm accessing OneDrive on a mobile app using the msgraph iOS SDK. I want to allow the user to manage a file's versions and for that I'm using the list versions API. In addition, I'm caching already downloaded files on the mobile device. I have…

galsh83
- 550
- 3
- 16
2
votes
0 answers
No odata nextlink with microsoft graph drive children
I am trying to get all the files from a SharePoint folder. There are a lot of files in the folder, so I need some way to get them all.
This is the code I used for the request:
$graph = new Graph();
$graph->setBaseUrl("https://graph.microsoft.com/")
…

Rick Verhagen
- 21
- 1
2
votes
1 answer
"DeferCommit was set to false for this upload session" Error
I am trying to implement Upload large files with an upload session.
For now I have (getting the upload session):
UploadSession uploadSession = await graphClient
.Users["user3@myComp.onmicrosoft.com"]
.Drive
.Root
…

Codey
- 487
- 1
- 8
- 27