web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Binding a parameter to a Power BI Userrole with the liquid tag ?

(3) ShareShare
ReportReport
Posted on by 9

Dear Sir,

I have published a Power BI embedded report in a CRM Portal with a Liquid tag.

The CustomerRole is a Power BI user role in DAX: CustomerName = "IBM"

{% powerbi authentication_type:"powerbiembedded" path:"app.powerbi.com/groups/ab923679-4c30c/reports/51-4d30-91a2c39/ReportSection" roles:userroles1 %}

This works just fine, the dashboard is filtered in the portal with IBM records.

But now a want to use the CustomerRole for dynamic RLS, so I use the Power BI DAX Userprincipalname () function. (through the embedded API it is just a string...)

I want to pass on the Customer "IBM" for example.

The CustomerRole is now a Dynamic RLS user role: CustomerName = Userprincipalname ()

Question: How can I bind the "IBM" parameter to the CustomerRole in the liquid tag ? So that the "IBM" filter is passed on to the Power BI Model to filter out the IBM records in the Power BI dashboard.

In Powershell for example the code looks like this:
$bodyRLS = "{'accessLevel': 'View', 'identities': [{'username': 'BlaBla','roles': ['CustomerRole'],'datasets': ['5ba066-07224171cfa5']}]}"

Hope you can shine a light on this.

Thanx in advanced.

Regards,
Arthur




I have the same question (0)
  • Naresh123 Profile Picture
    10 on at

    Hi Arthur,

    I have the same exact issue that I am trying to resolve. I am using userprincipalname too but I think we need to strip the domain name from the email address and use that for our filter(customer role) value which indeed would filter our dataset.

    I am struck at the same spot where you are, at the liquid tag binding.

    Please let me know if you made it work

    Helps a ton

    Thank you in advance

  • CU04020854-0 Profile Picture
    3 on at
    Is there a solution to this problem or is it not possible?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 73 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans