Hi Team, I have embed Dashboard using iframe which...
# gooddata-ui
z
Hi Team, I have embed Dashboard using iframe which works fine. i was testing it with wrong workspace-id which opens the user dashboard where we can see all of the workspace. what i want is to show the same message when we have no access or incorrect dashboardId. is their any solution to that.
m
Hi Zeeshan, If you want to restrict the access to a particular workspace, then you can do this via permissions: https://www.gooddata.com/docs/cloud/manage-organization/manage-permissions/. When the proper permission is in place, for example the user do not have access to the workspace, they will get an error stating so when they try opening the link. Alternatively, you may share dashboards between certain users, but please note that this is not a security feature: https://www.gooddata.com/docs/cloud/create-dashboards/share-dashboards/ If you wish to customize the error message shown by GoodData, I am afraid that this is not possible out of the box. You may be able to capture the event of the wrong permission on your app and redirect the user to a custom page with more info, so to speak, but I would not be able to advise further on this implementation.
z
Hi Moises, we have proper permission in place. i was testing everything it works good. What i did was deliberately adding a wrong workspace id which redirects users to their respective dashboard in Gooddata. so the question is is their any way that restrict user from their dashboard.(any custom implementation). i have tried the listening for events to iframe but the case which i described their is no message received. I know if proper permission are in place then their is no harm that user see's their own dashboard.
m
Thanks for providing further context. I am afraid that this is not possible at the moment, I can imagine there could be some custom solution implemented via our SDK, but unfortunately I would not be able to advise further on it as it is not documented, as it turns out, we are unable to provide "one size fits all" solutions in the documentation, although our Services team would certainly be glad to take a look. Please note that this is a paid service. In case you would be interested, I will be glad to hook you up with them.