cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Disabling Dashboards to Select User Groups on Sisense

bayram-kapti
8 - Cloud Apps
8 - Cloud Apps

We have over 2,000 User Groups on Sisense and we want to share a specific dashboard to all groups except one.

Is there an easy way to do this?

1 REPLY 1

viswanath
8 - Cloud Apps
8 - Cloud Apps

Hi, You can achieve this by using Pysense in easier way I guess. I have tried in our instance, it's working. Please go through this link, if you want to make any changes accordingly. 

https://github.com/nathangiusti/PySense

 

from PySense import PySense
config_file_location = r'C:\Users\91863\PyCharmProjects\MyPySenseTests\sampleconfig'
py_client = PySense.authenticate_by_file(config_file_location)
groups = py_client.get_groups()
a = py_client.get_groups_by_name('Group1')
dashboard = py_client.get_dashboard_by_id('6176f9b412cac600350d2d7a')
for group in py_client.get_groups(): dashboard.add_share(groups,'View', True)
dashboard.remove_shares(a)