Adding user to Team members of an incident by python script

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

Adding user to Team members of an incident by python script

L1 Bithead

Hello, 

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

PachaOne_1-1666882573164.png

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


I found in the documentation https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-9/cortex-xsoar-admin/incidents/incident-acce... 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?

1 REPLY 1

L2 Linker

Hey @PachaOne,

 

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

See this from the script helper:

nkazinets_0-1671058083279.png

 

The line in the code would look like this:

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

 

  • 1356 Views
  • 1 replies
  • 0 Likes
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!