Thread:Project:Support desk/Is it possible to restrict user from all the Special Pages and Recent Changes Page??/reply (6)

So you are using a hook now? Which one? Check the page of this hook (here is a list: Category:MediaWiki hooks) and see, which parameters you get there. One of them should be the user object. (And inside the user object you somewhere have the user ID; just display the contents of the user object to get the exact name of the key.)