Apply backend filter into MongoDB charts using Injected function on Embedd → Authenticated section

Hi @Klajdi_Tolis1, what behaviour are you seeing?

Looking at your code, one possible issue is that you are double-wrapping the tenantId in $oid. It looks like the value in the token is inside $oid and then you are adding a second one in the injected filter?

Tom