can't access the contents of the recycle box from msGraph

Rémi Picot 0 Reputation points
2025-02-19T10:42:26.2733333+00:00

Hello there, I'm trying to use msGraph to get the content of a recycle bin

I'm using a request like this using app permissions

GET /storage/fileStorage/containers/{containerId}/recycleBin/items

On the {containerId} I put my driveId

I tried directly with a curl like request and with the latest version of the official java connector to msgraph.

Do anyone manages to make it work ?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,113 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,321 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 45,496 Reputation points
    2025-02-20T07:53:17.3+00:00

    Hi @Rémi Picot

    Does the calling app have container type level permissions? According to the documentation:

    In addition to Microsoft Graph permissions, your app also must have the necessary container-type level permission or permissions to call this API. For details about container types, see Container Types. To learn more about container-type level permissions, see SharePoint Embedded Authorization.

    0 comments No comments

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.