Forum Discussion
API for getting users of a dashboard without being admin, i.e. owner of the dashboard
- Anonymous4 years ago
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...
Best Regards
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:
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
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...
Best Regards
- Anonymous4 years agoNot applicable
Hi Anonymous
Thanks again for this. You are correct, I was using the Report ID not the dashbaord ID as shown below:
.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
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.