Page MenuHomePhabricator

Create Conduit API method to lookup Phabricator accounts by MediaWiki user name
Closed, ResolvedPublic

Description

Create a new Conduit API method to lookup Phabricator accounts by MediaWiki user name for symmetry with the user.ldapquery method that @mmodell made and to support user who have Phabricator accounts linked only to their SUL credentials.

Proposed name: user.mediawikiquery
Parameters:

  • names: list of MediaWiki usernames
  • offset: offset to start results from (optional)
  • limit: max results (optional)

Response:
Same as user.ldapquery but with a mediawiki_username field for each result rather than an ldap_username field.

Revisions and Commits

rPHEX phabricator-extensions
AuditedRestricted Differential Revision

Event Timeline

• bd808 added a revision: Restricted Differential Revision.Jun 3 2016, 11:35 PM

(Thanks again) Surprisingly but understandably the API does not normalize underscores. So, "Valerio_Bozzolan" is an alien while "Valerio Bozzolan" is found.

Is taking care of this normalization a welcomed sub-task I could create? :3

The Cloud-Services project tag is not intended to have any tasks. Please check the list on https://phabricator.wikimedia.org/project/profile/832/ and replace it with a more specific project tag to this task. Thanks!

Is taking care of this normalization a welcomed sub-task I could create? :3

It is not a subtask as it does not block this resolved task. Feel free to create a separate feature request and/or patch for https://gitlab.wikimedia.org/repos/phabricator/extensions/-/blob/wmf/stable/src/conduit/MediaWikiUserQueryConduitAPIMethod.php