Domain Seperation - How to run a Scheduled Job on Specific Domain

shaik_irfan
Tera Guru

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 ?

 

4 REPLIES 4

sachin_namjoshi
Kilo Patron
Kilo Patron

- 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

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

You will create service account for each domain and then use these service accounts run scheduled jobs.

 

Regards,

Sachin

dvp
Mega Sage
Mega Sage

In the query you filter it by domain

Here is the sample script

gr.addQuery('sys_domain',DOMAIN_ID);