Microsoft Graph Sites refers to the SharePoint Sites APIs in Microsoft Graph. This tag should always be used in conjunction with the [microsoft-graph] tag.
Questions tagged [microsoft-graph-sites]
19 questions
2
votes
0 answers
Using ms-graph 'Sites.Selected' permission to read role-assignments on Sharepoint document libraries
I am building an app which needs to be able to read role-assignments from document libraries on a specific Sharepoint site with the help of ms-graph. The Sites.Selected API permission works almost perfectly for my use case but for some reason I…

Blink
- 163
- 1
- 6
2
votes
3 answers
Differences between Sharepoint REST API and Microsoft Graph Sharepoint API
I want to interact with Office365 Sharepoint sites, so I am trying to choose right API for this. There are different APIs for working with Sharepoint, which are good for me: Sharepoint REST API and Microsoft Graph API for Sharepoint. Which one…

zamazan4ik
- 167
- 3
- 13
1
vote
1 answer
Access OneDrive file with .svc extension using Microsoft graph API
We have to access several OneDrive files using Microsoft graph API. This works well until we met some file whose name ends with .svc (they are regular files).
We have a request that looks…

picrap
- 1,236
- 1
- 13
- 35
1
vote
0 answers
Get SPO Listitems via Microsoft Graph SDK for .net fails with exception: System.NotSupportedException
I'm trying to get some ListItems out of SPO using the following code:
using Microsoft.Graph;
using Microsoft.Graph.Core;
using Microsoft.Graph.Auth;
using Newtonsoft.Json;
using System;
using System.Security.Principal;
using…

Thomas Poth
- 73
- 1
- 4
0
votes
1 answer
MS Graph SDK: User's SharePoint FollowedSites
I am trying to get a list of the SharePoint sites a user follows using the MSGraph SDK V4.54.0. All the examples I have found use await graphClient.Me.FollowedSites.Request().GetAsync(). I am not using Me, but a specific user so I am accessing it as…

TechyGypo
- 824
- 1
- 11
- 27
0
votes
1 answer
Microsoft Graph API - not able to use orderby or filter on createdDateTime for Sites
I want to query Sites using Microsoft Graph API that were created after a certain time. So I created the following filter query:
createdDateTime ge 2023-01-01T00:00:00Z
I also tried:
createdDateTime ge `2023-01-01T00:00:00Z`
Both generated an…

A X
- 905
- 2
- 13
- 31
0
votes
1 answer
Microsoft Graph API - Sharepoint list unable to call create/update SharePoint list items, GET/DELETE works
Unable to use Microsoft Graph API to create or update SharePoint list items with client credentials access token (getting access token with out a user), I get the following error,
I'm able to successfully call GET and DELETE methods with the same…

starlordmars
- 1
- 1
0
votes
2 answers
Cannot Get Get-MgSite to return CreatedBy or CreatedByUser
I'm using the Microsoft Graph PowerShell SDK to try and get some data from SharePoint sites using the Get-MgSite command. I'm running this command specifically
$site = Get-MgSite -SiteId -Property…

Martin
- 503
- 1
- 6
- 20
0
votes
2 answers
Add term to listItem in Microsoft Graph API
How do I add a term to a listItem in Microsoft Graph API?
For simple String types (ProductSegment in the example) I do the following:
PATCH…

Balázs Németh
- 6,222
- 9
- 45
- 60
0
votes
0 answers
What does it mean for a driveItem to be accessible via a group path?
According to Microsoft Graph "Groups are collections of principals with shared access to resources in Microsoft services or in your app."
However you can also get driveItems inside a group, e.g. GET /groups/{group-id}/drive/items/{item-id}
Which…

Jan Martin
- 408
- 3
- 11
0
votes
1 answer
Receiving accessDenied when using App Only permissions calling Graph API sites?search=*
I have a web application which uses App only tokens to override the end user's permission to retrieve all Site Collections in the tenant. When attempting to use the boiler plate code provided in the example with one minor change, the Graph API is…
user1760623
0
votes
1 answer
Internal Server Error while using MS Graph Site API with C#
I'm trying to search file on SharePoint using Graph API. Getting the correct result on Microsoft graph-explorer but when I try with C# Getting error Status Code: 500 Reason Phrase:Internal Server Error
Response Details as below:
{
"error": {
…

Ashok
- 1,868
- 6
- 36
- 70
0
votes
1 answer
Need guidance on use of Microsoft Graph SDK's WithShouldRetry() delegate
i am trying to overcome intermittent 409 error that occurs while uploading/updating metadata of a file in SharePoint's Document library using Microsoft Graph SDK. To retry failed calls SDK provides WithMaxRetry() and WithShouldRetry() options. The…

user527614
- 465
- 5
- 19
0
votes
2 answers
"Item not found" error is returned when i try to get file details that has been shared by the external user
Shared with me API provides me the list of all files and folders that are shared by internal and external users.
The Shared API URL is mentioned below
https://learn.microsoft.com/en-us/graph/api/drive-sharedwithme?view=graph-rest-1.0&tabs=http
But…

Kuldeep Kushwaha
- 23
- 6
0
votes
1 answer
Microsoft graph api search doesn't return all files
I have a folder hierarchy in OneDrive containing around 1000 files spread out under those folders. All files are .mp4 files.
When I do a search using the graph api and specify q='.mp4' it returns only 500 files (paged with 200 in each page). I have…

Thomas
- 469
- 6
- 16