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

403 Forbidden error for getting drives for shareddrive mailboxes

I'm trying to send a request for a shared mailbox user: GET https://graph.microsoft.com/v1.0/users/{userId}/drive This shared mailbox user doesn't have an OneDrive setup. Expected result: 404 error with Error Code: ResourceNotFound. Actual Result:…
0
votes
1 answer

MS-Graph-SDK cannot add folder to Drive

I am trying to add a folder to a drive in a SharePoint site. I have tried many examples yet I am always receiving a 500 Internal Server Error. I have allocated and consented to the permissions as stated are required by the ms docs for adding files…
0
votes
1 answer

How can a user get a working token from Microsoft Graph?

I am making an application for Microsoft Teams. Must get the teams in Microsoft Teams that the user is a direct member of. If I use the same email under which I registered the application in Active Directory, then getting the list on request to…
0
votes
0 answers

Uploading large file word document using microsoft graph API using uploadsession

I am uploading word document using microsoft graph UploadSession. Document uploaded successfully and received uploaded file link which is open in next browser tab using application. But all the data are displays in single line. There is no line…
0
votes
0 answers

Does site-id/itemId on Sharepoint get regenerated without being prompted?

Context: I find DriveItem's with request calls like the following: https://graph.microsoft.com/v1.0/sites/knockycode.sharepoint.com,{siteId},{driveId}/drive/items/{itemId}/children Keep in mind that {siteId}, {driveId}, and {itemId} are…
Key007
  • 143
  • 2
  • 10
0
votes
1 answer

GraphAPI com.microsoft.graph.core.ClientException Caused by: java.lang.IllegalStateException

I'm using microsoft graph api version 2.3.2 to upload/download the document with sharepoint. My uploading functionality is working fine. But to download the document randomly sometime facing com.microsoft.graph.core.ClientException: Error during…
0
votes
1 answer

MS Graph API: Invalid JWT token. The token is expired

Using MS Graph API driveItem: preview driveItem: preview to edit word document online. Displaying the MS Word web URL in iframe: