Permission in Version 4

Hi There,

In version 3, we were able to use condition to define permission. For example, in version 3, one can add a Read permission on Employee doctype for "Department Head" role with condition "Department in Employee matches User Property department." This gives department head read access over for all employees from the same department. When a new employee gets added to the same department, the department head automatically able to see this new employee. How do you achieve the same in version 4?

Kind regards,
Mayur Patel



If you are posting an issue,


  1. ERPNext is a free and open source software and support is given on this forum by a team ( So please consider donating if you find this forum useful ( Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at or and send only the URL via email
  4. For sending images, use or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.


    End of Note

    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…

    To view this discussion on the web visit

    For more options, visit

Regarding, Role permission
-I think there is no difference between Version 3 and 4.

  • In version 4, you can also give Role permission
  1. Go to “Setup” module
  2. Go to " Users and Permission"
    3)Go to “User permission manager”. either “Add User Permission” or Edit permission
  3. Select User i.e Employee, Doc Type= Department
  4. Add User Permission , set “Value” and Add it Finally

You can refer this link also

Shraddha Ranjane
New Indictrans Technology PVT LTD

Thanks Shraddha for your reply.