Forum Discussion

Gurdev Singh's avatar
Gurdev Singh
Iron Contributor
Aug 18, 2019

Using $filter=deletedDateTime le '2018-01-01' to find deleted Groups

Is this $filter=deletedDateTime le '2018-01-01' a supported query parameter for Graph API when finding deleted groups in a set time period.

 

I have tried both the Groups API and directory and none works. They all come with 'Invalid filter clause' error.

 

Deleted items API

https://graph.microsoft.com/v1.0/directory/deletedItems/microsoft.graph.group?$filter=deletedDateTime ge '2018-01-01'

 

Groups API

https://graph.microsoft.com/v1.0/groups?$filter=deletedDateTime ge '2018-01-01'

 

  • Filtering in the Graph is beyond crap, just get the full response and filter it client-side. 

Resources