Forum Discussion
Paginated report embedded for your customer, RLS and CUSTOMDATA()
mora11 wrote:
What will change after token generation?
You must currently be generating a token for the embedding to be work, you just need to push the value you are injecting into the CustomData into the User value for the token.
mora11 wrote:
Should I generate token for each and every user?
Yes, you should be doing this already
mora11 wrote:
I just need to know who is logged to my custom web application. Thanks
Your app should already know this as it should be doing it's own authentication. What you need to do to get the RLS to work with a paginated report is to push the value you want to use for filtering in your RLS rule into the User field so that this can be passed on from the paginated report to the dataset UserName() function.
No, the case is that USERNAME() in Paginated Reports retreives service principal id instead of user id. Built in function UserId does not recognize custom users properly.