Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
giuliapiazza94
Helper IV
Helper IV

Role of external agent

Hi guys,

I have to do a report that I want to give an agent. 

This agent can see only his data (his sales, his orders, etc).

I've published the report on Power BI web with a license PRO and I want to share it with him.

Do I need to use this? I don't know how write dax query to limite his email address (he must have an account with license PRO, right?)

 

giuliapiazza94_0-1642091245924.png

 

Can you help me, please?

Thank you all 😊

 

1 ACCEPTED SOLUTION
ValtteriN
Super User
Super User

Hi,

You can create filter rules by pressing the "..." next to tables. Here is an RLS example, but I do recommend checking this documentation (it is quite good): 


https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls
Example data:

ValtteriN_0-1642101310456.png

Rule:
[Email] = "John.Doe@email.com"


By pressing view as I can check if this works:

ValtteriN_1-1642101414693.png

 

ValtteriN_2-1642101430317.png


To add users to a group check the documentation I linked.

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!






Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @giuliapiazza94 ,

 

If you want to restrict data access for many users, please use username() or userprincipalname() to configure RLS to enable dynamic data security. 

 

For example, please create roles-->select a table that has Account field-->write the DAX syntax as shown below. After publishing,  go to Power BI service , select the dateset--> More options, select Security-->Manage roles 

[Account]=username()

 

Here is a blog talking about how to set  Dynamic Row Level Security (Dynamic RLS)

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ValtteriN
Super User
Super User

Hi,

You can create filter rules by pressing the "..." next to tables. Here is an RLS example, but I do recommend checking this documentation (it is quite good): 


https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls
Example data:

ValtteriN_0-1642101310456.png

Rule:
[Email] = "John.Doe@email.com"


By pressing view as I can check if this works:

ValtteriN_1-1642101414693.png

 

ValtteriN_2-1642101430317.png


To add users to a group check the documentation I linked.

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!






Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.