dnn-create-user-programatically A common requirement for custom modules is to dynamically create new users and assign them with their relevant roles. This is achieved via the usage of the UserController and RoleController classes.