I need to change the role of user in case the user fills up all the required details from limited to administrator. However I need this to be done programmatically so please guide me the way I can make this possible.
$role = Mage::getModel("admin/role");
$role->setParent_id(5); //This is role id
$role->setUser_id($user_id); //user id that role need to change