Feature summary (what you would like to be able to do and where):
Get the local user ID from the API with a single call using meta=globaluserinfo. Currently the API already provides the information of each local account that was unified, however the local ID is not provided.
Example:
{ "wiki": "mediawikiwiki", "url": "https://www.mediawiki.org", "timestamp": "2014-10-08T20:34:48Z", "method": "login", "editcount": 150, "registration": "2014-10-08T20:34:47Z", "groups": [ "autopatrolled" ] }
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
- The Outreach Dashboard updated their CSV of users enrolled in programs, adding the users' global user ID: T322662. It is an important measure to avoid conflicts after a user renaming, as this ID is not modified by that.
- The action=compare (and other parts of the API), on the other hand, only work using the username and the local ID.
- The only way I could figure it out is to use meta=globaluserinfo, collect the username (which I would like to avoid for the beginning) and then use list=users to convert the name to the local ID.
Benefits (why should this be implemented?):
If it were possible to do this directly with globaluserinfo, it would be possible:
- Getting this information with just a single API call.
- Avoid possible inconsistencies when using usernames that are occasionally renamed.
Relevant pictures: