I am beginner in power bi and trying to embed reports for customers using onboarding tool https://app.powerbi.com/embedsetup .
I have downloaded sample app and .net code generated by the tool for my reports.
When Role and username values are provided in the UI form, RLS works well.
My queries here are:
1)Will it be possible to get username and assigned role dynamically at runtime based on logged in user instead of passing it as static/form values?
2) Is it possible to dynamically generate embed token along with role and username values?
Any pointers here are really appreciated.
P.S : I have refered https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security as well.
Here also roles are passed as static values and not dynamic ones.
Thanks in advance for your help,