wiki:TracRpcGetAllUsersPlugin

XMLRPC user related APIs

Description

This plugin provides some user related APIs for XmlRpcPlugin.

This plugin provides the following APIs:

  1. 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'),
}
  1. user.getAllUserGroups,

returns a dict of all user groups, equals to PermissionSystem.get_groups_dict, for example:

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

returns a list of all permissions and actions, for example:

['WIKI_VIEW', 'authecated', ..]
  1. 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.

Author/Contributors

Author: cauly
Maintainer: Cauly
Contributors:

Last modified 7 years ago Last modified on Jan 16, 2018, 6:24:06 AM