How Can i achieve branch wise user permission in erpnext, frappe

I want to set a user permission, Who can only see employees of his own branch.
Like we have 2 branch, branch “A” , branch “B” and two HR User. HR User of Branch “A” only can see of his own branch employees and can do All employees related task but can’t do anything for branch “B” Employees. How i can achieve this ?

Set User Permissions for HR like one in the screenshot below:

and make sure you add Branch in Employee master.

2 Likes