Topic on Talk:Quarry

Jump to navigation Jump to search

Seeking list of Wikimedia user accounts with blocks

2
Bluerasberry (talkcontribs)

Thanks for any help anyone can provide. If it is easy then I would appreciate a query. If it is more complicated then I would appreciate general instructions.

I need to learn how to list all English Wikipedia user accounts which are blocked.

I am looking at Manual:Database layout trying to understand which property in this scheme matches to a user account block. After I learn how to query for blocks I want to query for accounts with other userrights, but I am not seeing how this is mapped. If anyone has advice then I would appreciate it. Thanks.

Matěj Suchánek (talkcontribs)
USE enwiki_p;
SELECT ipb_address FROM ipblocks WHERE ipb_user <> 0;

SELECT ipb_address FROM ipblocks
JOIN user_groups ON ug_user = ipb_user
WHERE ipb_user <> 0
AND ug_group = 'user_group_identifier';
Reply to "Seeking list of Wikimedia user accounts with blocks"