HOWTO: Migrate Zetadocs Expenses to use Service-to-Service (S2S) authentication
This Zetadocs technical note applies to:
- Zetadocs Expenses
- Business Central Online (public cloud hosted system)
Many current Zetadocs Expenses systems which are linked to a Business Central public hosted cloud system use a web service access key to connect to Business Central. However Microsoft have withdrawn support for web service access keys, requiring appplications like Zetadocs Expenses to use an alternative authentication method called Service-to-Service (S2S) authentication instead.
This document describes how to update an installed Zetadocs Expenses system to use Service-to-Service authentication so that it continues to work without any disruption after upgrading to a version of Business Central which does not support web service access keys.
These are the steps to migrate an existing Zetadocs Expenses system from using a web service access key to using Service-to-Service authentication.
Step 1: Grant access permissions for Azure Active Directory (AAD)
- Grant consent for the Zetadocs Expenses app by clicking this link (if you have an AAD administrator account), or forwarding the link to your support team.
- Follow the on-screen instructions to sign in with an administrator account and grant required access permissions to the Zetadocs Expenses app on behalf of your organisation.
Step 2: Upgrade the Zetadocs Expenses Extension for Business Central
Service-to-Service authentication requires the Zetadocs Expenses Extension for Business Central version 1.2.22050 or later.
- Run the Business Central Admin Center
- Display the Environments page, click on the first environment, then click on Apps to display the installed extensions
- Find the Zetadocs Expenses extension in the list. If it shows that a newer version of the extension is available then click Install update to start the installation process.
- Run Business Central for that environment then display the Assisted Setup administration page
- Find the Zetadocs Expenses extension in the list, then run the Assisted Setup.
- Click Yes when prompted to run the Assisted Setup again.
- Complete the Assisted Setup wizard. This will create an Azure Active Directory Application entry to allow Zetadocs Expenses to access all companies in this Business Central environment.
- Repeat for each Business Central environment
Step 3: Change the authentication method for the company in Zetadocs Expenses
- Run the Zetadocs Expense admin site, display the Companies tab then manage the first company using Business Central Online to display the Company Details page.
- Check that the System Type is set to “Business Central Online”, then change the Authentication Method to “Service-to-Service Authentication”.
- Save the change, then repeat for each company using Business Central Online.
Step 4: Testing
- Run the Zetadocs Expenses desktop app, display the Status screen and select a previously exported report which includes expenses for the first Business Central Online company only. Choose Re-export from the ellipses (three dots) action menu.
- Once the report export status has returned to Done, open the report and check the history lines for the Business Central purchase invoice number which has been created.
- Run the Business Central client and delete the duplicate purchase invoice record which was created by the export.
- Repeat for each company using Business Central Online.
Last updated: 17th January 2023 (GW / GC)
Keywords: Web service access key basic authentication modern authentication