I am trying to filter out EntraID applications which has at least one owner assigned.
As per the Microsoft documentation, Owners supports filter based on count.
Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand.
Here is the query I am trying. Appreciate any help on this.
Cheers !
2
Answers
It seems that this cannot be achieved with one request, two requests are required
Filtering will work, but you need to add the request header
ConsistencyLevel
with the valueeventual
and the query must contain$count=true
parameter.Applications with at least one owner
When filtering applications by the number of owners, you can’t expand
owners
(expand and filter on owners is not supported in one query)