Domain Seperation - How to run a Scheduled Job on Specific Domain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2019 09:00 AM
Hello,
I have a Schduled Job which i want to run on specific Domain, Hierarchy is mention below:
TOP/Cisco/Network/Router/Switch
I want my Domain to trigger on Cisco & related child domains can anyone please help me on this ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2019 09:08 AM
- Scheduled jobs which query data which is not accessible by any user should run as system (run as should be empty)
- Any scheduled report should ideally run as the user within that report's company (domain in case of domain exasperated instance) so as they extract only the data which is authorized.
- Jobs to run platform scripts (like closing an incident after x days) should always run as system.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2019 09:59 AM
Sachin,
Thanks for the clear explanation.
What i am looking for is i have a Schduled Job which i want to run only on Cisco & related child domains but not on other domains can you please help me on this.
I tought of having a user created in Cisco domain and under run as i can give that name but it is triggering only Cisco domain but not for Child domains of Cisco.
Hope you understand my requirement

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2019 10:27 AM
You will create service account for each domain and then use these service accounts run scheduled jobs.
Regards,
Sachin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2019 11:45 AM
In the query you filter it by domain
Here is the sample script
gr.addQuery('sys_domain',DOMAIN_ID);