Show the current/logged in user in a single line item
I'm looking for a solution to show the current/logged in user in a single line item that has no dimensionality.
The use case for which I'm looking for a solution is a dynamic filter based on the logged in user + to calculate totals based on this filter. More specifically, I have a mapping table dimensioned as cost centers and Fake users (a mimic of the native user list mapped to the native list), and a boolean formatted line item where you can map to each users of which cost centers you want to give access to.
Then I'd like to have an other boolean formatted line item (maybe a separate module) where only cost centers list is the dimension, and I would like to set up the value of this line item with a lookup from the aforementioned mapping table (deriving the fake user from the logged in user single line item used as lookup criteria).