Hello,
One way would be to create a new role with block ticked as context type where the role may be assigned and the view block capability set to prohibit. You can then assign the role to the user in the block context.
Please see the documentation Creating custom roles and Assign roles for more details.
General developer forum
How to deny a particular student by accessing a block?
This discussion has been locked so you can no longer reply to it.