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
0 answers

Add permission to Sharepoint file/foler function is not working

I'm having a problem adding user permission to a specific file on Sharepoint, and I've tried with both UI and API approach. UI approach: It shows "Access granted", but the user is not in the access list. API approach: I use POST…
0
votes
1 answer

Error creating an upload session using Microsoft.Graph

I am trying to create an upload session (ref. https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_createuploadsession?view=odsp-graph-online) in order to upload a "large" document (any doc that exceeds 4MB). I am leveraging…
0
votes
0 answers

Copy a file in a new provisioned general-teams channel

I want to copy a file in a new provisioned teams in the general-channel via graph. For that I need the folder-id of the target-folder(general-folder) but it seems that I could not get the folder-id unless i open manually the files tab in the…
0
votes
1 answer

Getting Unauthorized 401 from Microsoft Graph API (OneDrive)

I've been trying to reach Microsoft Graph API, to get list of items on my OneDrive, but suddenly I got error with code 80049217. I tried use different permissions types (Files.something), but nothing work. I seach up on the internet but I didn't…
0
votes
1 answer

"Item not found" error while trying to access files in a folder on sharepoint using MS Graph api

I am trying to read the contents of a file present in a folder of a site in SharePoint using MS graph API. When I am trying to read a file which is direct present on the site I am able to read it but unable to read the file which is present inside a…
0
votes
1 answer

Sites list getting empty results in graph API

We are getting empty results even though we are having sites in the sharepoint account. API - https://graph.microsoft.com/sites MS Documentation Method - GET We have Sites.Read.All and Sites.ReadWrite permission in graph access token. Could you…
0
votes
1 answer

Issue while calling MS graph API

I am working on an API that will download the videos from OneDrive by providing a URI. I was able to get the access token but when I try to download the file I get an error stating: /me request is only valid with delegated authentication…
0
votes
1 answer

How can I get the deleted file name using Microsoft graph's delta query

I am running a delta query against SharePoint site drive root. For the removed files I am just getting "deleted" property and DriveItem Id and the name property is always null. Whenever doing a separate DriveItem request with the corresponding…
0
votes
1 answer

delegated jwt token for microsoft graph api working only for my resources

I'm following the microsoft documentation to acquire a user token: https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow I create an Azure AD Application and authorize several apis. I generate the consent url and…
0
votes
0 answers

Is there a way to upload mobileApp files, or files in general without using Azure Storage?

As the title reads, currently our organization doesn't have Azure Storage as an option for our developers. However, we are trying to automate and streamline our iOS and Android deployments into Intune using Microsoft's Graph API. Currently we have…
0
votes
0 answers

Preventing overwriting of specific worksheet cell through the MS Graph API

I'm building a device reservation system, and was instructed to do so via Microsoft Sharepoint (to save on server hassle / cost). As such, I plan to create a daemon consuming the MS Graph API to programmatically update some Excel workbook, which…
Destaq
  • 655
  • 9
  • 23
0
votes
1 answer

How to call Microsoft Graph API from Java application

I am trying to build a Java application which will use Microsoft Graph API in order to view files on SharePoint. Can anyone suggest any github urls or demo projects or a third party libraries available on maven .
0
votes
1 answer

CreateUploadSession for OneDrive upload using Microsoft Graph API: The request is malformed or incorrect

Using MSAL 1.1.24 & making API calls in an iOS app that supports uploading to OneDrive for a year now. Some users reported that they sometimes (not 100% of the time) see their upload fail. The error message is "The request is malformed or…
vomi
  • 993
  • 8
  • 18
0
votes
0 answers

Microsoft Graph Api, audio metadata stuck to processingMetadata

If I upload an .mp3 file to OneDrive through the Windows Explorer. Most of the time, when querying the folder, the audio facet is missing on that file. If I copy it with the OneDrive Web interface, seems to work ok most of the time. Upon…
0
votes
1 answer

Adding Metadata to Sharepoint File with ListItem and FieldValueSet

I am trying to add some metadata to my file I uploaded into Sharepoint. In Sharepoint I added "columns" for "DocumentType" and "User". But when I run my code to add the values to the file that was uploaded I get an error…