- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
10-27-2025 02:54 PM
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?
11-07-2025 07:24 AM
I'd leverage the unique transformer
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!

