Roles and Permissions

Please tell me, as an administrator, how I can restrict access to modules for other users. I want the module to be hidden from the dashboard, and files from the module should not be visible in the search bar

Reference: How to configure User rights so that a user can only access HRMS and no other parts of ERPNext? - #2 by NCP