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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

API for getting users of a dashboard without being admin, i.e. owner of the dashboard

Hi, 

 

I have created a report in my account of my organisation, and I have used RLS, I need to use an API to get 

1- List of users who have access to the dashboard

2-List of users within RLS

 

How I can achieve these?

 

I have found this link:

https://docs.microsoft.com/en-us/rest/api/power-bi/admin/dashboards-get-dashboard-users-as-admin

 

but I am not sure what myorg is?

 

I am the owner/developer of this dashboard and our BI platform is managed by another team, so do not have access to the backend.

 

The link to my dashboard is 

https://app.powerbi.com/groups/me/reports/someID/ReportSection

 

When I click on Try me, MS website asks for the credentials, and when I enter someID in the parameters I get the 404 error.

 

 
 

BI Error.png

 

How can I fix this issue?

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

The URI Parameters dashboardId of this Rest API request is a specific dashboard id of a workspace you are looking for, not a report id just as shown in below screenshot. And what you are getting is actually the report id ("ReportSection" after the ID)... You can follow the steps in my previous post to get the dashboard id...

yingyinr_1-1632823049853.png

Best Regards

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

If you want to use the Rest API: Admin - Dashboards GetDashboardUsersAsAdmin, the prerequisite is that you must have administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator) to call this API or authenticate via service principal. The 404 error (xx not found) is probably because you did not enter the correct dashboard id information. Please follow the steps below to get the correct dashboard id.
1. Sign in Power BI Service, click the dashboard you want to get the user list

yingyinr_0-1632467916918.png

2. Get the codes circled in red circle after the link dashboards/ in below screenshot

yingyinr_1-1632468084365.png

3.  Copy and paste it in the parameters dashboardId* textbox just as the one in below screenshot

yingyinr_2-1632468233606.png

Finally, it will return the user list who can access that dashboard...

yingyinr_3-1632468320032.png

Best Regards

Anonymous
Not applicable

Hi @Anonymous , 

 

Thanks for the time and your answer. I think I am using an exact approach to get the dashboard ID as shown below:

Sichanm_1-1632532030748.png

 

mine has a "ReportSection" after the ID, while your does not.

 

So, I guess that error (404) is indirectly related to the permission (I do not think I have been granted permission to use this API) rather than being related to the content. This 404 error is commonly known for 

"A 404 error message is a Hypertext Transfer Protocol (HTTP) status code indicating the server could not find the requested websit".

 

So my only explanation for "not receiving an error about the permission but instead receiving an error about the contnent " is that the Power BI server uses this 404 for the lack of permission as well.

 

Does this make sense to you or do you still think I am doing something wrong?

 

Thanks

 

 

Anonymous
Not applicable

Hi @Anonymous ,

The URI Parameters dashboardId of this Rest API request is a specific dashboard id of a workspace you are looking for, not a report id just as shown in below screenshot. And what you are getting is actually the report id ("ReportSection" after the ID)... You can follow the steps in my previous post to get the dashboard id...

yingyinr_1-1632823049853.png

Best Regards

Anonymous
Not applicable

Hi @Anonymous 

 

Thanks again for this. You are correct, I was using the Report ID not the dashbaord ID as shown below:

 

Sichanm_0-1632851310159.png

.Based on my org's security settings I cannot publish a report as the dashboard. So, I was using the wrong API. I should have used this one

https://docs.microsoft.com/en-us/rest/api/power-bi/admin/reports-get-report-users-as-admin#code-try-0

 

However, after using this one that asks for the report ID, I am still getting a 404 error, so I guess I do not have admin rights.

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors