Adding user to Team members of an incident by python script

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

Adding user to Team members of an incident by python script

L1 Bithead


There is the section "Team Members" with two fields "Owner" and "Participants".


I want to add some users to "Participants" but there isn't this field in the context data.  

I found in the documentation that "Team members are added automatically when you send them a notification in the CLI".

What can I do in python script to add new user to Participants?


L2 Linker

Hey @PachaOne,


You can use the tagging option (@) in a script.

See this from the script helper:



The line in the code would look like this:

demisto.executeCommand("@", {"user":"<user>"})


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!