Forum Discussion
1 Reply
Replies have been turned off for this discussion
- viswanathCloud AppsHi, 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)