Split the file /tmp/users.txt by the delimiter '-' and take the second and fourth fields. For each of these fields, use awk to find the line where the first field matches the field.
cut -d'-' -f2,4 /tmp/users.txt | xargs -I{} awk '$1 == "{}"'