Installed with domain separation

Several types of components are installed with domain separation.

Roles

Role Description
domain_admin Can create, edit, and delete domains.

Additions to [sys_domain] fields

The sys_domain field is added to the following tables:

Table 1. Tables with the sys_domain field
Tables
sys_attachment
sys_user_has_role
sys_group_has_role
sys_email
sys_user_group
core_company
cmn_location
cmn_department
sys_gauge
sys_report
kb_feedback
sysapproval_approver
sys_user_grmember

Field for the Task Table

MSP Extensions add a task_for field to the Task table to support the New Ticket module. This reference field refers to the User table.

Figure 1. The task_for column on the Task table

Options for the Group Type

MSP Extensions add several new default options to the type field of the Group table. Add to or update these types as needed to support your domains.

Tables
Security
Support
Visibility

Business rules

Name Table Description
Domain - Activate/Deactivate core_company Activates the related domain if at least one of its companies is active. Deactivates the related domain if all related companies are inactive.
Domain - Cascade Company core_company Keeps a company's domain in sync with its users, groups, departments, and locations.
Domain - Cascade Domain - Email sys_email Keeps an email's domain in sync with its attachments.
Domain - Cascade Domain - Group sys_user_group Keeps a group's domain in sync with its inherited roles (sys_group_has_role records).
Domain - Cascade Domain - Knowledge kb_knowledge keeps a knowledge article's domain in sync with its related feedback.
Domain - Cascade Domain - Task task Keeps the domain in sync with related tasks for wf_context, wf_executing, wf_history, attachments, emails, task_sla and its workflow, sysapproval_approver and its workflow, and sysapproval_group and its workflow.
Domain - Cascade Domain - User sys_user Keeps a user's domain in sync with its group membership (sys_user_grmember) and role (sys_user_has_role) records.
Domain - Cascade Domain - Version wf_workflow_version Keeps domains in sync with related workflow versions for wf_activity and wf_transition.
Domain - Deactivate Companies domain Deactivates related companies if a domain is deactivated.
Domain - Default - Task task Sets the task domain based on the Task for user's domain. If this domain would be global, sets domain to Default instead.
Domain - Default - User sys_user Sets a user's domain to Default if the domain otherwise would have been global.
Domain - Disallow Global Domain Record domain Prevents creation of a domain with the name global.
Domain - Override Copy sys_app_application When an application is overridden for a domain, creates a copy of its modules for the new application.
Domain - Override Copy sys_data_policy2 When a data policy is overridden for a domain, creates a copy of its data policy rules for the new data policy.
Domain - Override Copy sys_gauge When a gauge is overridden for a domain, creates a copy of its gauge counts for the new gauge.
Domain - Override Copy sys_ui_action When a UI action is overridden for a domain, creates a copy of its UI action views for the new UI action.
Domain - Override Copy sys_ui_list_control_embedded When an embedded list control is overridden for a domain, creates a copy of its client and server scripts for the new embedded list control.
Domain - Override Copy sys_ui_policy When a UI policy is overridden for a domain, creates a copy of its UI policy actions for the new UI policy.
Domain - Set Domain - Approvals sysapproval_approver Sets the domain based on that of the record being approved.
Domain - Set Domain - Attachment sys_attachment Sets the domain based on the parent record's domain.
Domain - Set Domain - CMDB_CI cmdb_ci Sets a CI's domain to that of its company.
Domain - Set Domain - Department cmn_department Sets a department's domain to that of its company.
Domain - Set Domain - Domain domain Sets a domain's domain to itself.
Domain - Set Domain - Email sys_email Sets the domain based on the parent record's domain. An email's parent record is the record specified in the instance field.
Domain - Set Domain - Feedback kb_feedback Sets a knowledge feedback's domain to that of its knowledge article.
Domain - Set Domain - Group sys_user_group Sets a group's domain to that of its company.
Domain - Set Domain - Group Approvals sysapproval_group Sets the domain based on that of the record being approved.
Domain - Set Domain - Group Role sys_group_has_role Sets a group role's domain to that of its group.
Domain - Set Domain - Location cmn_location Sets a location's domain to that of its company.
Domain - Set Domain - Task SLA task_sla Sets a task SLA's domain to that of its task.
Domain - Set Domain - User sys_user Sets a user's domain to that of its company.
Domain - Set Domain - User Role sys_user_has_role Sets a user role's domain to that of its user.
Domain - Set Domain - WF Activity Hist wf_history Sets the workflow activity history domain based on the parent workflow context's domain.
Domain - Set Domain - WF Context wf_context Sets the workflow context domain based on the referenced record's domain, if it has one.
Domain - Set Domain - WF Exec Activity wf_executing Sets the workflow executing activity domain based on the parent workflow context's domain.
Domain - Set task for - Change change-request When converting a ticket to a change request, sets the Requested by field to the ticket's Task for value.
Domain - Set task for - Incident incident When converting a ticket to an incident, sets the Caller field to the ticket's Task for value.
Domain - Validate Default domain Ensures only one domain has the Default check box selected.
Domain - Validate Primary domain Ensures only one domain has the Primary check box selected.
Business Rules Installed with Domain Support Plugin
Change Domain Set sys_dictionary Sets the domain set to the current domain.
Domain support properties sys_properties Sets the system properties to match the domain query method (domain paths or domain numbering).

Client scripts

Client script Description
Domain - Set Company and Location (sys_script) Monitors the incident caller field for changes. If the company and location fields do not already have a value, the script adds this information from the caller record. If the company and location fields already have a value, the script retains the existing values.
Deactivated script
(BP) Set Location to User Monitors the incident location field and sets the location field to the caller's location.