Try ERPNext Buy Support Partners Foundation

Show employee record if user is the employee

Hi Everyone,

I have tried searching for the answer to this problem but I failed.

I need help on how to implement permission that if the logged-in user is the Employee, then the user is allowed to view the record or a certain field.

Like for example in my case, Salary fields should only be visible to HR Manager, CEO, or the employee itself.

Thank you so much in advance!

In employee master, there is a section called ERPNext user and in that there is a checkbox. If you enable that then the employee will only be able to see his details like salary slip, his employee master, etc. For CEO or HR Manager, you can give a higher role like that of HR user / Manager so that they can also view their details as well as other employees.

Hope this helps.


1 Like