Finding Common Members Between Two Groups in Subflow

saint
Tera Guru
Hi Experts,
 
I’m currently retrieving members from two different groups using lookup records and passing them as inputs into a subflow as reference.sys_user types. This process returns the sys\_ids of all users in each group.
 
I’m looking for a way to identify the common members between these two groups and set the result in an output field. I’ve tried several scripts and variable types, but the result is either blank or errors out.
 
If anyone has implemented something similar, I’d really appreciate your guidance.
 
Regards,