Home

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

%3CLINGO-SUB%20id%3D%22lingo-sub-810132%22%20slang%3D%22en-US%22%3EUsing%20%24filter%3DdeletedDateTime%20le%20'2018-01-01'%20to%20find%20deleted%20Groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810132%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20this%20%3CSTRONG%3E%24filter%3DdeletedDateTime%20le%20'2018-01-01'%3C%2FSTRONG%3Ea%20supported%20query%20parameter%20for%20Graph%20API%20when%20finding%20deleted%20groups%20in%20a%20set%20time%20period.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20tried%20both%20the%20Groups%20API%20and%20directory%20and%20none%20works.%20They%20all%20come%20with%20'Invalid%20filter%20clause'%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDeleted%20items%20API%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fdirectory%2FdeletedItems%2Fmicrosoft.graph.group%3F%24filter%3DdeletedDateTime%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fdirectory%2FdeletedItems%2Fmicrosoft.graph.group%3F%24filter%3DdeletedDateTime%3C%2FA%3Ege%20'2018-01-01'%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGroups%20API%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fgroups%3F%24filter%3DdeletedDateTime%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fgroups%3F%24filter%3DdeletedDateTime%3C%2FA%3Ege%20'2018-01-01'%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-810132%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGraph%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGroups%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-811098%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20%24filter%3DdeletedDateTime%20le%20'2018-01-01'%20to%20find%20deleted%20Groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-811098%22%20slang%3D%22en-US%22%3E%3CP%3EFiltering%20in%20the%20Graph%20is%20beyond%20crap%2C%20just%20get%20the%20full%20response%20and%20filter%20it%20client-side.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Gurdev Singh
Contributor

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=deletedDateTim... ge '2018-01-01'

 

Groups API

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

 

1 Reply

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

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies