Conditional apply of AutoFilterAttribute

Hello,
I’m trying to understand if it’s possible to apply the “AutoFilter” attribute based on Request context.
For example, I would like to apply a filter only if the user is not an Admin.
[AutoFilter(QueryTerm.Ensure, nameof(IAppUserFilter.AppUserId), Eval = “userAuthId”)]

Is it possible?

Thanks. Gianmaria

No it’s not possible with declarative attributes. Create separate Services with and without filters you want or create a Custom AutoQuery implementation that only applies the filter when you want.