...
Register your External Application
Log in to Dynamics to Dynamics 365 Finance and operations application.
Navigate to System administration > Setup > Azure Active Directory applications and Select New.
Fill in the fields for the new record:
In the Client Id field, specify the application ID you registered in the Azure Active Directory.
In the Name field, specify a name for the application.
In the User ID field, select an appropriate service account user ID.
Select Save to apply the changes.
...