cancel
Showing results for 
Search instead for 
Did you mean: 

IMAP connectivity test failure in SAP CPI

Shreyas_01
Explorer
0 Kudos
162

Hello, 

I'm trying to establish a connection between SAP CPI to Microsoft 365 with OAuth 2 credentials using Mail sender adapter, although my credentials are deployed successfully, when I'm trying to do the connectivity test, I'm getting (javax.mail.AuthenticationFailedException: AUTHENTICATE failed). 

Below are the screenshots attached for reference

Connectivity TestConnectivity Test

 

Credentials deployedCredentials deployed

I've given scope as:

https://outlook.office.com/IMAP.AccessAsUser.All 
https://outlook.office.com/SMTP.Send 

offline_access

 Am I missing something? Please help me out.

Thanks in advance

Shreyas

 

 

View Entire Topic
nileshnagane12
Explorer
0 Kudos

Hi Shreyas,

Can you check if you have given required scope to the mail user in oauth2 code. You can add this scope to the user : https://outlook.office365.com/IMAP.AccessAsUser.All offline_access

Thanks,

Nilesh

Shreyas_01
Explorer
0 Kudos

Hi Nilesh,

Thanks for your response, I'll try using this scope.