Hi Mohammed,
try out this steps in a microflow:
Be aware that by default the user can be assigned to multiple userRoles. So if the user should only have the Configurator Role, you have to remove the Admin role as well. Another way to manage user roles on the front end is to use the AccountManagement module. Manage Local Users in Studio | Mendix Documentation