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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

how to limit the access of power bi dashboard

Hello All, I have created a testing role from desktop manage roles. After I published this dashboard, What I know is go to the secury to test it. It works.

What about the testing role , if he loginto the share point dashboard, does he need to go to secury and test? I don't understand what happen next.

I would like to use a column that dynamically restrict the access, for example , if user login to the sharepoint, it will only show the data from his department. 

 

Sorry this is a broader question, any suggesetion or learning materials related to this will be very appreicated. 

 

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Username() returned the UPN of the user using the report. Before that, we should have a UPN list in our data model. Please refer to the online document.

https://powerbi.microsoft.com/en-us/blog/using-username-in-dax-with-row-level-security/

 

If it doesn't meet your requirement,  kindly share your sample data to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Username() returned the UPN of the user using the report. Before that, we should have a UPN list in our data model. Please refer to the online document.

https://powerbi.microsoft.com/en-us/blog/using-username-in-dax-with-row-level-security/

 

If it doesn't meet your requirement,  kindly share your sample data to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Try these articles

https://docs.microsoft.com/en-us/power-bi/service-embed-report-spo

https://community.powerbi.com/t5/Community-Blog/Dynamic-Row-Level-Security-Dynamic-RLS/ba-p/787399

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

 

Anonymous
Not applicable

@Mariusz Thanks for sharing the links. I followed the second link. and created a dynamic role based the column NTUSER I have. It is not an email infor, something like this below:

NTUSER

VTD001

VTD003

VTD004

VTD005

...

Capture.PNG

However, When I go back to the view as , use VTD001, all dashboards show blank.. 

Capture.PNG

Any clue.. thank you

 

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors