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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
aka
Helper II
Helper II

to implement a security model

I have implement security model for following data structure.

 

Employee is sales rep and will only see his territory.Manager, and needs to see his own territory AND his Employee

I have tried creating roles and using Username() function on access as [access]=USERNAME() .

please give some suggestions. 

sample.PNG

1 REPLY 1
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @aka,

1. You create a role by clicking manage roles->create a new role->type [Access]=USERNAME().

2. Select the View as roles to test if you create the role correctly.

3. Publish the report to Power BI service. Select the dataset->Security. Add the member, apply the role to him. Then share the dashbord to them. 

More details, please reference to the articles.

Row level security with Power BI Embedded

Row-level security (RLS) with Power BI

 

If you have other issues, please feel free to ask.

Best Regards,

Angelia

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.