Forum Discussion
Unique Dashboard per User in Embedded?
Hi ctaulbee
If you are looking to enable the ability for users to create dashboards within your embedded application - then I dont think that is currently possible. You can create reports via embedding, but not dashboards: https://github.com/Microsoft/PowerBI-JavaScript/wiki/Create%5CEdit-Report-in-Embed-View
If you are creating dashboards within the Power BI Service, and want users who login to your app to each have a different dashboard, then this is "possible"... but it would be up to your application to load the appropriate dashboard depending on the user accessing it. You can retrieve a list of dashboards in your workspaces via the REST API: https://docs.microsoft.com/en-us/rest/api/power-bi/dashboards/getdashboardsingroup
One possible workaround for your scenario to enable end-user (in app) dashboard creation (I have not tried this at all btw)....
The REST API does look like it will allow you to create dashboards via an API call.
https://docs.microsoft.com/en-us/rest/api/power-bi/dashboards/adddashboardingroup
Which you could call - giving it a unique name or something that ties it back to the user.
Then use the 'Clone Tile' function - to copy tiles from a source dashboard -> to the one you have just created.
https://docs.microsoft.com/en-us/rest/api/power-bi/dashboards/clonetileingroup
As mentioned, I have not tested these endpoints myself... but you might be able to build user-specific customized dashboards this way. It might take quite a bit of code though.
Hope this helps,
Matt