Hello,
I found one working solution (in my case).
There is just one condition :
You need to know at least one member of the security or distribution group.
1) Use Get-groups of a user (the known user as stated above). You then have a list of all the ID groups of the user

2) Next step is using Get-Group by using "value"; it gets all ID groups of the user one by one and gives the display name of each

3) Use the "Condition" to test if the group Display Name matches the targeted group

4) If condition is true, then you found the id group, congratulations !
For an unknow reason, it's never "True" for me, but it worked in another flow, with dynamics values...
But I hope you can understand the logic !