handlers.restrict_sharing_handler
Restricts sharing of a saved search, report or diagram to a defined list of users. All permissions beyond the defined user list will be deleted. (POC stage).
description =
'Deletes all permissions of a shared element that exceed the permitted list of users.'
config_template =
{'allowed_users': ['3431f4e9-df8b-4601-8509-5d220e0bae08', 'c8bcbdab-fefd-4f4f-8a48-734e39820abc'], 'personal_api_token': 'paste a (deprecated) personal API token here'}
def
handle(self, event, fs, **kwargs):
Called automatically whenever a FactSheetUpdated event comes in via webhook.
Inherited Members
- handlers.eventhandler.EventHandler
- EventHandler
- get_trigger
- get_event_types
- get_fs_types
- get
- all
- lx_client
- data_requirements
- initial_sync_event
- update_with_uniqueness_check
- facet_matches
- is_tag_key
- SUBSCRIPTION_TYPES
- parse_subscription_key
- get_mapped_subscriptions
- get_notification_users
- get_send_email_for_users
- get_email_callback
- get_due_date