(Country-specific functionality in Norway.)

Authentication error: Token expired or user lacks necessary Altinn roles

A reason for this can be the user i lacking the necessary roles/access in Altinn to send the VAT declaration to Altinn.

Who can fill in and deliver the VAT declaration can be found in the Altinn page for as seen here: Roller og rettigheter - Altinn

Nb! The user receives an ID. It is not necessary to add this in RamBase.  
       It used to be when reporting for the VAT period 2021 or before.

       Now it is necessary to have the correct roles/access in Altinn to send it in.

There is an option to submit the VAT declaration manually too -using the solution on the 'Skatteetaten.no' site.