WordPress Admin – Sorry, you are not allowed to access this page
The issue was caused by modified table prefixes on WordPress MySQL database. Even though the correct prefix was entered in wp-config.php file, there were some leftover references to the old prefix in some MySQL tables. Specifically:
_usermeta table had bunch of references to the old prefix in meta_key column
_options table had one reference in option_name column (
Replacing old prefixes with the correct ones resolved the issue.