Running Script or Playbook in one tenant from another tenant.

Showing results for 
Show  only  | Search instead for 
Did you mean: 

Running Script or Playbook in one tenant from another tenant.

L2 Linker

Hi all,

I have a multi-tenant deployment. I want to run a script or playbook from one tenant to another tenant. How can I do this?



L2 Linker

Hi, what kind of script do you want to run? You can make use of API calls for this purpose.

Yes, actually I want to run an automation script in XSOAR via API.

L2 Linker

You can use different API endpints. Please see the below example, which will retrieve the incidents under the tenant customer1. You can change the query according to your needs.

body = {

incidents = demisto.executeCommand("demisto-api-post", {'uri': f"/incidents/search/", 'body': body})[0]["Contents"]["response"]["data"]

Hi Gyldz,

Thank for your reply.
I didn't want to run script on an existing incident. My bad, I didn't specify that. For this, I first created an incident and assigned a default playbook to the incident. This way I can run the script I want.
demisto-api-post uri = /tenant_name/incident and

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!