Raimund Krämer
Raimund Krämer

Reputation: 1309

Retrieve a list of all users in Trac

Is there a way to get all users of the current Trac environment via Python? Similar to model.Priority.select(self.env) which returns a list of all priorities. Maybe there is a method of the Trac Account Manager?

Upvotes: 0

Views: 384

Answers (1)

RjOllos
RjOllos

Reputation: 2934

Environment.get_known_users() will give you a list of all known users that have logged in. Inside a class inheriting from Component you can use self.env.get_known_users().

Upvotes: 1

Related Questions