Forum Discussion

Jeff Walzer's avatar
Jeff Walzer
Iron Contributor
Dec 22, 2022

How to use multiple filter operations in beta Graph API?

I am trying to run the following API:

 

 https://graph.microsoft.com/beta/users?$count=true&$filter=signInActivity/lastSignInDateTime le 2022-09-01T00:00:00Z and endsWith(mail,'@alumni.xxx.xxx')

 

and I get the following response: 

 

 {
     "error": {
         "code": "BadRequest",
         "message": "Filter not supported.",
         "innerError": {
             "date": "2022-12-22T19:21:39",
             "request-id": "d994b51c-xxxx-xxxx-b0d5-97a8923ab5t9",
             "client-request-id": "d302b51c-xxxx-yyyy-zzzz-12a8035ce9r9"
         }
     }
 }

 

Any idea as to what I'm doing wrong?

 

Thx

Resources