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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 128 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 95

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans