How to assign branches to users

Hi how could I assign users to their respective branches? I tried customizing users but ERPNext wouldn’t allow it. Anyone can help me with this?

You can’t assign user to a branch directly.

You can only assign an Employee to a Branch and assign the username to the Employee

Ok I’ll try this. Thanks!