Full Error Message:
Error while creating new document. Error message: Error: 401. Error description: { “error”: { “code”: 401, “message”: “Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.”,”status”: “UNAUTHENTICATED” } }

-You may get this error message when trying to generate a document though your google drive has not  been connected and app unauthorized. Or it needs to be reconnected after package install update or major change in A5 Documents process.

How to resolve:
-First you need to make sure this user is an assigned app user by following our activation instructions.
-Second the user also needs edit access to the google doc template in document action, you can see more detail about sharing permissions of google docs in this article . If you specified a google drive folder ID in document action, the user will also need edit access to the google drive folder.
-Third, you should refresh your app authorization with steps in this article.  If each user authorized the app with their own drive, any user getting this error would need to refresh authorization. Or you can use optional app feature to have only one Salesforce authorize the app and the google drive to force authorization over ALL app users to generate documents too. See this article for more detail on this optional feature. If you need assistance to set this feature up and remove previous authorizations, you can submit a case to support and provide login access to your Salesforce org to A5 Apps support and let support know which user you would like the feature configured under.