Domain separation and Notifications
Domain separation is supported in the Notifications application. Domain separation enables you to separate data, processes, and administrative tasks into logical groupings called domains. You can control several aspects of this separation, including which users can see and access data.
Support level: Standard
- Includes all aspects of Basic level support.
- Application properties are domain-aware as needed.
- Business logic: The service provider (SP) creates or modifies processes per customer. The use cases reflect proper use of the application by multiple SP customers in a single instance.
- The instance owner must configure the minimum viable product (MVP) business logic and data parameters per tenant as expected for the specific application.
Sample use case: An admin must be able to make comments required when a record closes for one tenant, but not for another.
For more information on support levels, see Application support for domain separation.
Overview
Domain separation is specifically supported in Notifications but not in email accounts. Notifications are not data-separated but they are process-separated. Notifications are also triggered by specific actions.
How domain separation works in Notifications
There are two basic components of domain separation and Notifications.
- Notifications are process-separated (not data-separated).
- Notifications are triggered in two main ways:
- When a record is Inserted or Updated
Notifications with matching conditions AND in the same domain and global domain as the inserted/updated record are processed.
- When an event defined in the notification is triggered
- Events typically have a target record. For example, [incident.inserted] event references the incident record being inserted.
- When an event is fired, notifications configured for that event in the same domain and global domain as the event’s target record are processed.
- When a record is Inserted or Updated
Domains and email accounts
Domain separation is not supported in email accounts for these reasons:
- Sending mail: There is only one SMTP sender per account. This prohibits providing domains for each account, and they are not configurable.
- For receiving Inbound mail: You can set up multiple email accounts but cannot meaningfully set the domain of an inbound email action. Inbound Actions are processed in the domain of the user who sent the email. For example: User_A in Domain A sends an email to a ServiceNow email account which executes the “Create an incident” inbound email action. The resulting new incident created by the inbound action is in Domain A.
Use case
If an instance is using the Domain separation plugin and a new email notification is defined for a domain that has the same event as the notification on the global domain, the user receives two emails for the same event.
Solution: Set the [sys_overrides] field on the notification that belongs to the domain so it overrides the setting on global. For more information, see Delegated administration.