Graph List permissions endpoint returns 403

Muthomi Mate 0 Reputation points Microsoft Employee
2024-08-28T15:17:45.2466667+00:00

I am trying to make a request to graph drive item and drive item permissions

GET /drive/items/{item-id}/permissions

The request to get driveitem succeeds but the permissions one fails with 403. Are there special permissions for this endpoint?

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

2 answers

Sort by: Most helpful
  1. ayesha0899 0 Reputation points
    2024-08-28T19:06:44.86+00:00

    To make a request for Graph drive items and drive item permissions, you'll need to use Microsoft Graph API. You can utilize the following endpoints:

    1. To get drive items:
      • Use GET /me/drive/items/{item-id} to retrieve details of a specific drive item.
      • Use GET /me/drive/root/children to list all items in the root directory.
    2. To manage permissions:
      • Use GET /me/drive/items/{item-id}/permissions to fetch permissions for a specific drive item.
      • You can also use POST /me/drive/items/{item-id}/invite to share the item and set permissions.

    Make sure to authenticate your requests with the necessary permissions (like Files.Read, Files.ReadWrite) in your access token.


  2. CarlZhao-MSFT 46,371 Reputation points
    2024-08-29T08:01:47.3033333+00:00

    Hi @Muthomi Mate

    This is because you lack the necessary permissions. Before that, try giving one of the following permissions to the calling app.

    User's image

    User's image

    Hope this helps.

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


Your answer

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