Register a Microsoft Entra app for OAuth2
Register a Microsoft Entra app to get the client ID and tenant ID UserLock uses to send email through Microsoft 365.
You need this only if UserLock sends email through Microsoft 365 with Modern authentication (OAuth 2.0). It produces the Application (client) ID and Directory (tenant) ID that you enter in the OAuth2 path of Configure SMTP settings Guide.
Make sure you have:
A Microsoft account with at least the Application Developer role on the tenant you will use. Without sufficient permissions, the app registration options are not available.
Access to the Microsoft Entra admin center.
You register the app in your own Microsoft Entra tenant. Microsoft owns the console, so each step links to Microsoft's own documentation, which stays current when the interface changes.
Register a new application, choosing the Supported account types that match who will sign in, following Register an application.
On the app's Overview page, copy the Application (client) ID and the Directory (tenant) ID.
Add a redirect URI for the Mobile and desktop applications platform, and select the suggested URI
https://login.microsoftonline.com/common/oauth2/nativeclient, following How to add a redirect URI.
Note
UserLock uses a public client (desktop app). Do not create a client secret: for Microsoft, UserLock authenticates with the tenant ID, not a secret.
Enter the IDs in the UserLock console on the server, as described in the Configure SMTP with OAuth2 section of Configure SMTP settings Guide:
In Server, enter
smtp.office365.com.In Authentication, select Modern authentication (OAuth 2.0).
In Client ID, enter the Application (client) ID.
In Tenant ID, enter the Directory (tenant) ID.
Click Sign in and sign in with the account entered in From.