in ees_network_drive/permission_sync_command.py [0:0]
def remove_all_permissions(self):
""" Removes all the permissions present in the workplace
"""
try:
user_permission = self.workplace_search_custom_client.list_permissions()
if user_permission:
self.logger.info("Removing the permissions from the workplace...")
permission_list = user_permission['results']
for permission in permission_list:
self.workplace_search_custom_client.remove_permissions(permission)
except Exception as exception:
self.logger.exception(f"Error while removing the permissions from the workplace. Error: {exception}")