Articles in this section
Category / Section

How to restrict 'Edit' and 'Delete' options of data source in Embedded dashboard designer?

Published:

Restricting Edit and Delete Options for Users in Dashboards

In some cases, you may want to provide users with the ability to add and remove data sources from their dashboards, but restrict their ability to edit or view the details of those data sources. This can be achieved by setting the dashboard properties canEdit and canDelete to false and managing user permissions accordingly.

Setting Dashboard Properties

To restrict the edit and delete options for users, set the canEdit and canDelete properties to false. This can be done using the Bold BI JavaScript API. For more information on setting these properties, refer to the Bold BI API Reference.

var dashboard = BoldBI.create({
    datasources: [
         {"id": "348e414b-c8c6-4542-839a-2e12934fe64f", "canEdit": true, "canDelete": false},  
         {"id": "d9a28bba-e6dd-46c9-89d7-810ebb4796b3", "canEdit": false, "canDelete": true}
    ]
});
dashboard.loadDesigner();

image.png

Managing User Permissions

To further restrict user access, you can set user privileges to read-only. This will disable the edit and delete options for those users, preventing any actions from being taken if they click on these options. To manage user permissions, refer to the Bold BI Manage Permissions documentation.

By following these steps, you can ensure that users can add and remove data sources from their dashboards without being able to edit or view the details of those data sources.

Additional References

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
SM
Written by Soundarya Mani Meharan
Updated:
Comments (0)
Please  to leave a comment
Access denied
Access denied