How to make changes in User doctype

If you want to add a custom field to a core doctype without customizing the core doctype itself, you will need to create a custom app and then add the custom field using code. Check out the default HRMS app concept, which added a custom field to the core doctype or normal doctype, and see how it works: How to edit core doctypes like DocType or User? - #2 by NCP