Modern Authentication Fields for Forms Printer E-mailing
6 October 2022
Regarding: “Use Default Forms Printer Multitenant App ID and Tenant ID”. Checkbox.
Check this to use Modern Authentication with Exchange Online, And use the Default “Forms Printer For Dynamics GP Multitenant” Azure registered Application for permissions and approval for Email Sending.
This will result in a dialog such as the below for each user when they First Log in while sending E-mail with Forms Printer.
After The user Accepts this Permission Request, then they will only need to Log in once per GP Session, when the First e-mail is sent:
If you choose not to use this Default “Forms Printer For Dynamics GP Multitenant” Azure Application, then you can create your own Azure Registered Application, and enforce more restrictive security on your users: If you do this, you will enter your own “Modern Auth App ID/Client ID” for the Application you create, and the “Modern Auth Tenant ID” for the Azure Domain, (Tenant) it is created in.
In order to Create a custom Azure Registered Application, you can follow the steps here:
Forms Printer uses “Delegated Authentication”, so only the Section under “Register your Application” needs to be performed: (duplicated below)
Register your application
In order to use OAuth (Modern Authentication) , an application must have an application ID issued by Azure Active Directory. In this tutorial, it is assumed that the application is a Windows application, so you need to register your application as a public client with Azure Active Directory. You can register an application in the Azure Active Directory admin center or by using Microsoft Graph.
Open a browser and navigate to the Azure Active Directory admin center and login using a personal account (aka: Microsoft Account) or Work or School Account.
Select Azure Active Directory in the left-hand navigation, then select App registrations under Manage.
Select New registration. On the Register an application page, set the values as follows.
1. Set Name to a friendly name for your app.
2. Set Supported account types to the choice that makes sense for your scenario.
3. For Redirect URI, change the dropdown to Public client (mobile & desktop) and set the value to: https://login.microsoftonline.com/common/oauth2/nativeclient
Choose Register. On the next page, copy the values of the Application (client) ID and Directory (tenant) ID and save them, you will need them later.