[Zope] How to get all users for a role

Dieter Maurer dieter@handshake.de
Tue, 15 Jan 2002 21:01:17 +0100


Robert Rottermann writes:
 > Is there a method that returns all users having a given set of roles?
 > 
 > I know how to get all users and how to ask them for their roles. But not how
 > to do it the other way round.
I fear, it is not supported directly.

But you know enough to implement it yourself. The implementation
may be a bit slow but perhaps you use this function not in every request...


Dieter