Here’s how to add administrator user using functions.php when you have no clue if what is the username or email registered in the wordpress and you have only ftp access.
Solutions:
1. Add this to your functions.php
$admintemp= array('user_login' => 'tempadmin','user_pass' => 'yourpassword','user_email' => 'your@email.com','role' => 'administrator'); var_dump(wp_insert_user($admintemp));
2. Remove after you change the email or password of your original username used.