You can assign a user as “HR Manager” for this functionality.
“HR Management -> Employees -> Visit Employee Profile -> Go to Permission tab”
Now check the role “HR Management” and update permission. That’s all!
Now, this employee will be able to access only in HR module.