This error indicates that you no longer have admin access to the QuickBooks Online company, please check your user settings and contact the company admin to elevate your user access- https://www.quickbooksupportnet.com/quickbooks-error-code-401/