wiki:TracRpcGetAllUsersPlugin

Version 2 (modified by Cauly, 7 years ago) (diff)

--

TracRpcGetAllUsers - Trac xmlrpc user related apis

Description

Trac xmlrpc user related apis.

This plugin provides following api:

  1. user.getAllUsers,

returning a dict of all known users, equals to env.get_known_users(True) e.g.

{
'a': ('nameof a', 'a@a.com'), 
'b': ('nameof b', 'b@b.com'),
}
  1. user.getAllUserGroups,

returning a dict of all user gruops, equals to PermissionSystem.get_groups_dict e.g.

{
'groupa': ['a', 'b'],
}
  1. user.getPermission,

returning a list of all permissions and actions, e.g.

['WIKI_VIEW', 'authecated', ..]
  1. user.resolveUsers

returning a list of users according to given permission or group e.g.

user.resolveUsers('WIKI_VIEW')

['a', 'b']

Bugs/Feature Requests

Existing bugs and feature requests for TracRpcGetAllUsersPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out TracRpcGetAllUsers from here using Git, or browse the source.

Installation

requires XmlRpcPlugin

General instructions on installing Trac plugins can be found on the TracPlugins page.

Author/Contributors

Author: cauly
Maintainer: Cauly
Contributors: