This is quite useful when debugging federation issues. This could be as simple as getting the domain parts of every user in a set