Questions tagged [microsoft-graph-files]

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.

204 questions
0
votes
1 answer

How to least privilege Microsoft Graph API daemon application permissions to a single OneDrive Excel file?

Trying to leverage the Microsoft Graph API within a daemon application to update a single OneDrive Excel file. How do I accomplish least privilege permissions to a single file. I have scoured the documentation for a straightforward explanation of…
jspeaks
  • 433
  • 1
  • 4
  • 13
0
votes
1 answer

"Empty Payload. JSON content expected" When making a folder with the graph api

I use the following code to make a new folder using the microsoft graph api: $tokenCache = new TokenCache(); $accessToken = $tokenCache->getAccessToken(); $graph = new Graph(); $graph->setAccessToken($accessToken); $queryParams…
Mister Verleg
  • 4,053
  • 5
  • 43
  • 68
0
votes
2 answers

Microsoft Update DriveItem API throwing locked exception if the file is open in desktop

1.This is the behavior I am observing when I use Update DriveItem graph API to update my file name.https://learn.microsoft.com/en-us/graph/api/driveitem-update?view=graph-rest-1.0&tabs=http. 2.If the file is open in my office desktop document it…
constantlearner
  • 5,157
  • 7
  • 42
  • 64
0
votes
1 answer

How can I get the thumbnail of a SitePage from SharePoint using the Microsoft Graph Api and App Access Permissions?

I need to get the thumbnail for a SitePages from the SitePages library in SharePoint Online. My current approach is to use this URL: https://graph.microsoft.com/v1.0/sites/{siteId}/lists/{listId}/items/31/driveItem/thumbnails/0/large/content Using…
0
votes
1 answer

OneDrive FB create Folder with Microsoft Graph API Powershell

I just want to create a folder one my OneDrive for Buiness Account through the Graph API. After many hours I got stuck with an error which I really can't comprehend. It says that the property 'Attributes' does not exist on type 'oneDrive.folder' and…
0
votes
1 answer

Calling Microsoft graph API from dotnetcore app returns NotFound

I'm trying to get items from SharePoint using the Graph API in the name of the user, all these done inside a .net core 3.1 web app using oauth. When I request for specific items in a SharePoint document library I get the following…
0
votes
1 answer

How to submit for content approval/ approve content in sharpepoint using graph api

I currently have bunch of files stored in Sharepoint. I've set the versioning so - that everytime user uploads a file it's set as draft and versions are set as 0.1, 0.2. Once the content is approved my version then gets updated to major version ex…
Biplov
  • 1,136
  • 1
  • 20
  • 44
0
votes
1 answer

Microsoft Graph Api Update file version number

I have a document library where I've setup Minor versions for files in that library. Everytime a file is edited, version gets incremented from 0.1, 0.2, 0.3 etc. However, I want to be able to update a version number of a file and give it a 2.0…
Biplov
  • 1,136
  • 1
  • 20
  • 44
0
votes
0 answers

OneDrive - uploading file using Graph API results in occasional 416

I'm using the "get an upload session, upload chunks" method. Generally, it's working. I'm using a chunk size of 640 * 1024, which according to the docs is legit. Occasionally I'll get a response code of 416 (Requested Range Not Satisfiable). The…
0
votes
1 answer

Can't Move DriveItem in Mocrosoft Graph

I am using Python to download PDF files from OneDrive to a local folder, and also moving the files to a different folder in OneDrive after they have been downloaded. I am able to download the files from OneDrive to a local folder, however, I get a…
0
votes
0 answers

CreateFileUploadSession() calls result in "Object reference not set to an instance of an object." response from Graph API

I have a website running in production that uploads files on behalf of users. This functionality has been working for months with only transient network issues. Past two weekdays (Friday and Monday, virtually no usage over the weekend), all users…
0
votes
0 answers

O365 - E5 Developer Program - Microsoft Graph query service not available

I am trying to set up the E5 program and start doing some integration with my app. One feature of my application is it should be able to upload files to a Teams channel in Teams. While I was able to grant permissions on the development account to…
Felix Cen
  • 733
  • 1
  • 6
  • 24
0
votes
1 answer

MS Graph API: webUrl to driveItem

Our web app allows storing links to OneDrive/SharePoint drive documents. These links are obtained with OneDrive File Picker UI, webUrl field, look like this…
0
votes
1 answer

"The audience claim value is invalid for current resource" when using ChunkedUploadProvider for Attachment in Microsoft Graph Client API

I am trying to use the following code, but am getting "Message: The audience claim value is invalid for current resource. Audience claim is 'https://graph.microsoft.com', request url is 'https://outlook.office.com/api/beta/Users..." I get it on the…
0
votes
0 answers

DriveItem.Size = 0 after upload a file

I'm uploading lot of files to OneDrive using Graph API. Sometimes I receive DriveItem with size of 0. Response always return 20x status code. When I check file on OneDrive, file size is not displayed at all. I'm using request for small size files…
1 2 3
13
14