Forum Discussion

bayram-kapti's avatar
bayram-kapti
Cloud Apps
01-21-2022

Disabling Dashboards to Select User Groups on Sisense

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

Replies have been turned off for this discussion
  • 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)