“Access to unauthorized or invalid companies.” or “No access” appears on a document of another company
Symptom
When you open a document received through a link, the No access window appears; in an integration, the refusal is “Access to unauthorized or invalid companies.”. The company does not even appear in the company selector, in the top right corner. If you only have one company, its name in the top right corner does not open any list.
Message
On screen, with the Invoicing profile and only “Empresa Demonstração, Lda” among your companies, when opening through a link an invoice of “Empresa Teste Portugal (COMMUNITY)”, the No access window says:
“You do not have access to this record of “Journal Entry”. It may belong to another company: check the company selected at the top of the screen. This area is for: User: All Documents, Administrator, Invoicing, Treasury: User. Ask your administrator to give you the profile you need.”
The window is the one in I do not have permission to do this operation. Here the This area is for list includes Invoicing, the profile the user already has: the cause is the company, not the profile. In this window, changing the profile does not fix it.
Through the integration, with the Invoicing profile, when requesting data of “Empresa Teste Filial (COMMUNITY)”, which is not one of your companies:
“Access to unauthorized or invalid companies.”
On screen, a link that names only a company that is not yours gives no message: it opens in the company in the top right corner.
Verified causes
- The company is not among yours. Each user works only in the companies of the Companies field on their user form. A document of another company does not open, even with the right profile.
What to check
- Open the company selector, in the top right corner. If the document's company does not appear in the list, you do not have access to it. If the company name in the top right corner does not open a list, you only have that company: the document's company is not yours.
- If it appears but is not ticked, the case is different: “…a company you do not work in” or “It may belong to another company” appears.
- Whether you really should work in that company (for example, an accounting firm that handles several client companies).
How to fix it
The database administrator adds the company to the user:
- In Settings › Users & Companies › Users, open the user.
- In the Advanced settings tab, in Companies, type the company name and choose it from the list.
- Click Save (the cloud icon).
Who does it: the database administrator (only they see Settings).
The profile applies in all the user's companies. Before adding a company, check that the profile also suits it.
Expected result
The company now appears in the user's selector. In the demonstration, after saving, the same link opened the invoice and its company was also ticked in the selector. The name in the top right corner remained that of the first company, where new documents are created. What that changes is explained in “…a company you do not work in” or “It may belong to another company” appears.
When to contact support
- The company is in the user's Companies field and the window still appears.
Information to send
Follow How to ask support for help and what information to send, with the user's name, the companies on their form and the document you tried to open.