Deduping in Playbooks

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

Deduping in Playbooks

L1 Bithead

I'm confused as to how to use the DedupBy command/script in my Playbook. I have a set command that grabs all the UPNs from a list of alerts in the data. This results in the Context data of:
Defender:{
UPNs:[
0:"user1@domain.com"
1:"user2@domain.com"
2:"user1@domain.com"
3:"user3@domain.com"]
}

I'd like to Dedup this list to use later on in my Playbook but I'm not sure the best way to go about it. After a bit of Googleing I found the command DedupBy, but I've tried all kinds of combinations for keys and/or value inputs, and I cannot get it to work. What is the proper usage here?  Or am I making this harder than it should be?

1 REPLY 1

L1 Bithead

I'd leverage the unique transformer

jason_blackburn_0-1762528984246.png

 

  • 153 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!