Skip to main content

OAuth 2.0 setup (for SaaS only)

Access to web services in Microsoft Dynamics 365 Business Central (BC) in the SaaS version is only possible via OAuth 2.0. The necessary setup of the app in Azure Active Directory and its link to BC is described below.

Azure Portal

Launch Azure Portal and open the Azure Active Directory

image-1666695107040.png

Create a new app under App registrations

image-1666695222272.png

image-1666695353025.png

Create API permissions

The Application (client) ID can already be copied and stored at this point (will be needed later)

image-1666698096645.png

image-1666696539153.png

image-1666696558451.png

image-1666696591385.png

Create Client secret and store it in a secure location

image-1666697533453.png

image-1666697558892.png

Business Central

Open Azure Active Directory applications and create a new entry

image-1666700705499.png

image-1666700731874.png

Set up Active Directory application

  1. Enter the Client ID
  2. Enter description (description is a bit misleading. This is rather a user name).
  3. Assign user permission set(s) individually.
  4. (Optional)
  5. Activate application

image-1666700793976.png