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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-eqin-msft
Community Support
Community Support

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors