handlers.create_subscription_handler
Whenever somebody creates an Application, we want them to be automatically subscribed to it so that we don't get any orphaned applications. So if we receive a FactSheetCreatedEvent for an Application fact sheet, this handler creates a RESPONSIBLE subscription for the user who created the fact sheet. Note that we don't add a subscription if the acting user is in the exception list.
Runtime Configuration:
fs_types: List of fact sheet types for which this automation will be active. E.g. ["Application"]
role:
name: The name of the subscription role that you want to subscribe.
type: The subscription type of the subscription (RESPONSIBLE, ACCOUNTABLE or OBSERVER).
ignore_technical_users: true or false. If set to true, don't subscribe if the fact sheet was created by a
technical user.
exceptions: List of e-mail addresses of users that should not be auto-subscribed, e.g. LeanIX admin users.
Called automatically whenever a FactSheetCreated or FactSheetUpdated event comes in via webhook.
Inherited Members
- handlers.eventhandler.EventHandler
- EventHandler
- supports_initial_sync
- 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