I would like that some users (but not all of them) could view course categories. How can I do that?
You need to elaborate. In normal Moodle, users can see course categories unless "mymoodle" is turned on.
Based on what I have learnt researching my issue, you should be able to set this up in Permissions but, as Robert indicated, without more details, I couldn't say for certain.