https://microsoftandbeyond.blogspot.c...
https://learn.microsoft.com/en-us/exc...
Application (client) ID
:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Object ID
:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Directory (tenant) ID
:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
secret value:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Install-Module -Name AzureAD
Install-Module -Name ExchangeOnlineManagement
$AppId = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
$TenantId = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
Import-module AzureAD
Connect-AzureAd -Tenant $TenantId
($Principal = Get-AzureADServicePrincipal -filter "AppId eq '$AppId'")
$PrincipalId = $Principal.ObjectId
$DisplayName = "principal for IMAP/POP3"
Import-module ExchangeOnlineManagement
Connect-ExchangeOnline -Organization $TenantId
New-ServicePrincipal -AppId $AppId -ServiceId $PrincipalId -DisplayName $DisplayName
Add-MailboxPermission -User $PrincipalId -AccessRights FullAccess -Identity "Your email ID"
Watch video How to Authenticate an IMAP, POP, or SMTP connection using 2.0 Auth for ERP, SMTP application server online without registration, duration hours minute second in high quality. This video was added by user Microsoft & beyond 16 February 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 25,917 once and liked it 230 people.