XMLRPC user related APIs
Description
This plugin provides some user related APIs for XmlRpcPlugin.
This plugin provides the following APIs:
user.getAllUsers
,
returns a dict of all known users, equals to env.get_known_users(True)
, for example:
{ 'a': ('nameof a', 'a@a.com'), 'b': ('nameof b', 'b@b.com'), }
user.getAllUserGroups
,
returns a dict of all user groups, equals to PermissionSystem.get_groups_dict
, for example:
{ 'groupa': ['a', 'b'], }
user.getPermission
,
returns a list of all permissions and actions, for example:
['WIKI_VIEW', 'authecated', ..]
user.resolveUsers
returns a list of users according to given permission or group, for example:
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
This plugin requires XmlRpcPlugin to be installed.
General instructions on installing Trac plugins can be found on the TracPlugins page.