To configure a new Entra ID app registration go to AZURE Entra ID configuration - App Registration and register new application
Set an app name, Accounts in this organization and configure the redirect url, this is the url the desktop interface will be waiting for the response when creating new credentials
Now the application is created, you can get the Tenant ID and Client ID
Now it is necessary to create a client secret
Once the secret is created it will show the value, copy the value because this will be the only time it will show the value
Finally it is necessary to give the permissions for the application
The necessary permissions are
- IMAP.AccessAsUser.All
- email
- offline_acccess
- openid
- profile
The application is already created, you can go to the desktop interface and obtain credentials for that IMAP configuration