Receiving null values in response while running Graph api for root site

Young Fitzpatrick 20 Reputation points
2023-03-24T19:23:30.64+00:00

Hi,

i am using graph api Get sites/{siteId}/drives to enumerate the document libraries under the root site, and it is giving me 200 Ok but it is only returning the null values in the response preview.

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,831 Reputation points
    2023-03-24T21:34:14.7766667+00:00

    Hello Young Fitzpatrick,

    Thanks for reaching out!

    As per the documentation, these are the permissions required:88

    As you are using Get sites/{site-id}/drives please ensure that you consent the required permissions before executing the above Graph API endpoint. You can use https://jwt.ms/ to decode your token in order to check if the token has the required permissions under scp/roles property to run the Graph call.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.