maintain per wiki a set of all documents that are groups
Yes, this was my plan. The issue description was a quick thing and I thought about the implementation later.