How to restrict number of Max users in ERPNEXT?

Hi there,

I would like to restrict the number of Max users can be used/registered in ERPNEXT.
Example 20 users.

How can I do that?

Many thanks.


You can write a custom hook before_insert in User to do that.

Dear Mehta

Thanks for your feedbak!