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

Create document library (inside Sharepoint site) through graph APIs?

When I am trying to create Document library using below endpoint its creating folder inside existing document library. POST /drives/{drive-id}/root/children I need to create Document Library at site level. e.g. at…
0
votes
1 answer

Microsoft Graph - App is unauthorized to create Sharepoint List subscription

I struggle to make app with ClientCredential auth flow to create subscription on SharePoint List. Request: var subscription = new Subscription { ChangeType = "updated", NotificationUrl = "{validNotificationUrl}", Resource =…
0
votes
1 answer

ms graph file upload to sharepoint site

For some strange reason, I cannot upload files or create folders in a drive using the MS Graph API. I can view/list and even delete without any issues. Same goes for personal OneDrive files...I can list and delete, but not upload or create…
0
votes
1 answer

How to grant Azure Functions only specific Graph permissions (one sharepoint library)

My Azure Functions app shall use Excel input/output bindings. The files are stored on a specific sharepoint document library. I wish to use application permissions, not user-delegated ones. In the graph documentation there is…
0
votes
1 answer

Microsoft Graph Error - Resource not found for the segment 'root:' when uploading file to OneDrive

When working on this tutorial on Uploading File to OneDrive from Microsoft Graph OneDrive team, I'm getting the following error at the last line of the code shown below: Remarks: There are some posts online with a related issue, (such as: This, or…
nam
  • 21,967
  • 37
  • 158
  • 332
0
votes
1 answer

UWP - OneDrive file download error: “Access to the path '…' is denied” when using sample code from MS Graph team

I'm working on this exercise from Microsoft Graph team: Access and download files from OneDrive. And I'm getting the following Access denied error on the following code at the end under the section: Download a file from the user's OneDrive: Access…
nam
  • 21,967
  • 37
  • 158
  • 332
0
votes
0 answers

Why I am getting AADSTS50011 error when using Microsoft OneDrive sample with UWP app

On VS2019, when using this OneDrive sample with UWP from Microsoft, I am getting the following error. An online search shows some relevant links (such as this or this or this) but their context are different (as they are using web apps or Python…
nam
  • 21,967
  • 37
  • 158
  • 332
0
votes
1 answer

HTTP/1.1 403 Forbidden while create upload session

I am trying to upload a file to Sharepoint. I Got the Accesstoken based on the client id and tenant id given by the application and able to do…
0
votes
1 answer

Get a file from SharePoint Online using Microsoft Graph API

While learning graph API, I was trying to get a file from a SharePoint document library using Microsoft Graph API. I first tried by accessing files in Documents from https://graph.microsoft.com/v1.0/sites/tenant.sharepoint.com by doing this GET…
0
votes
1 answer

dotnet Core - Using azure AD authentication to retrive data from sharepoint REST API

My project is set up to use azure ad as login(from the dotnet core template). I have successfully managed to log in. However, i want to use the same logged in user to retrive data from sharepoint rest api. I have the following method: public async…
0
votes
1 answer

How to list all personal sharepoint sites using microsoft graph?

I want to fetch following data using Microsoft graph API All the root sites(group + personal) All group root sites All personal root sites For the first case currently I am using https://graph.microsoft.com/v1.0/sites in order to find out all…
0
votes
1 answer

Sharepoint list item using Api Rest

I need to get a list's items, so I created this function export function retrieveSPItems(spToken, alias) { var url = `{path_to_my_site}/_api/web/Lists/getByTitle('Briefs')/ItemCount`; var myHeaders = new Headers({ Accept:…
Lamloumi Afif
  • 8,941
  • 26
  • 98
  • 191
0
votes
1 answer

"webUrl" coming as null when sending an file invitation - Graph API (Send a sharing invitation)

I'm Using an invite API from MS GRAPH - Invite LINK Send a sharing invitation – External users POST /me/drive/items/{item-id}/invite POST /sites/{siteId}/drive/items/{itemId}/invite The responses from the above request returns 200 OK response…
0
votes
1 answer

How can users print whole documents from file preview in Microsoft Graph

We are using graph api in our app to allow users to view files hosted on our SharePoint site. We can get the files (mainly Word documents) to load fine in a new tab, using the URL format of: "https://graph.microsoft.com/v1.0/sites/" + siteId +…
0
votes
1 answer

How can users see the comments in a PowerPoint file via the graph-api Preview URL?

We are using Graph API to display our on-premises sharepoint files within a public facing web app. The users of the web app have complained that comments in powerpoint files are important and they cannot see these via our app (we use graph's preview…