Share via

How to filter by createdDateTime Graph API /sharedWithMe ?

Henry Paula 0 Reputation points
2023-05-04T14:55:04.9+00:00

Hello, im trying to filter by the createdDaTime but I always get an InvalidRequest.

https://graph.microsoft.com/v1.0/users/<user>/drive/sharedWithMe?$top=10&$filter=createdDateTime ge 2021-05-24T09:24:52Z

This is the response:

{
    "error": {
        "code": "invalidRequest",
        "message": "Invalid request",
        "innerError": {
            "date": "2023-05-04T14:43:08",
            "request-id": <id>,
            "client-request-id": <id>
        }
    }
}
Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-05-04T17:33:30.0666667+00:00

    Henry Paula,

    Thanks for reaching out. I as able to reproduce the issue with the filter for the Sharedwithme API call. It seems filtering does not appear to work currently the any of the supported properties for this API. I would suggest opening a ticket with Microsoft Graph support for further investigation or provide your feedback on the Microsoft Graph Feedback platform.

    Thanks.

    Was this answer helpful?

    0 comments No comments

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.