Last modified: 2014-09-18 22:44:50 UTC
list=logevents doesn't return the user ID of the user who is creating an account. The userid property contains the user ID of the account that is being created, but there is no property containing the user ID of the account that is creating it (which would be different in create2 log actions).
It does when leprop=userid is used. See the following query, for example: User:Conieliandi created User:Conielia, and you can see that the 'userid' field returned is that for Conieliandi, not Conielia. https://en.wikipedia.org/w/api.php?format=jsonfm&action=query&list=logevents|users&leprop=ids|title|type|user|userid|timestamp|comment|parsedcomment|details|tags&leaction=newusers/create2&lelimit=1&lestart=2014-09-18T20:49:50Z&ususers=Conielia|Conieliandi OTOH, if you omit leprop=userid, then the 'userid' field is that for Conielia; it's not possible to get both at the same time. I'm going to assign this bug to myself, to be fixed during the major overhaul of logevents detail handling described at https://www.mediawiki.org/wiki/Requests_for_comment/API_roadmap#Clean_up_log_event_parameter_handling_in_action.3Dlogevents.