Troubleshooting
Fixing "Sorry, you are not allowed to access this page" in WordPress
WordPress checked a capability and the account did not have it. After a migration the usual reason is not the role at all — it is that the table prefix changed and the row describing the account's role no longer matches.