User setup and Roles is standard Mendix Functionality and you shouldn’t deviate from this unless there is a strong reason for doing so. Kindly refer to the following link to understand the App security and User Roleshttps://docs.mendix.com/studio-how-to/security-how-to-configure-roles
In case you would still like to do what you are doing, there are two things you would need to do: