How to hide create new user

how to hide this create new user from this option of user id field in employee doc

Remove create permission from that User.

how to do it using code?

You ideally shouldn’t hard code permissions in code. User “role permission manager” to remove create permission from particular roles.

1 Like