question

JonathanPerlman-3111 avatar image
0 Votes"
JonathanPerlman-3111 asked ·

MS Graph can't query for SharePoint data

Hello,

I'm trying to query 365 SharePoint list data from MS Graph.

I've setup the app via portal.azure.com and I gave it application permissions to everything that is required for User, Mail, Sites and Groups. I gave it permissions on the MS Graph and SharePoint sections within the permissions.

I can query for Users and their calendar information but when it comes to Sites I get the following.

77277-2021-03-12-115128.png

We have the Azure AD Premium P1 subscription for Education.

I tried using the same tenant ID, Client ID and secret in Postman and I get similar results.

I tried to query for the same data via myself logged into Graph Explorer and I get the data I'm expecting.

How can I query for the data from SharePoint via the app credentials for all sites and all data in my tenant

Thank you.


microsoft-graph-sites-lists
2021-03-12-115128.png (111.1 KiB)
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Try replicate the same application permission in POSTMAN and see if you can still repro the issue or not.


0 Votes 0 ·

Hello Deva,

I've added the following permissions to my app and this doesn't allow me to query over to Sites.

Do I need the permissions in the SharePoint section?


77878-image.png


77820-image.png


0 Votes 0 ·
image.png (115.3 KiB)
image.png (57.1 KiB)

0 Answers