Using Service Account for Office 365 Outlook Connector
Published Dec 10 2020 10:31 PM 10.8K Views
Microsoft

Some of the users have a need to use service account for the connection - some other account than the logged in user. However because of SSO, this does not work - even after providing username in the credential pop up, it defaults back to the logged in user. The workarounds are documented here - Integrate with Office 365 Outlook - Azure Logic Apps | Microsoft Docs

Also as a workaround, it is possible to use HTTP action with AAD authentication to call the Graph API directly.

 

One of the members from dev team has found a hack to get it working. For a good number of users, it has worked. If you are are reluctant to provide contributor access to the service account, it may be worth trying.

 

Symptom: 

 

A user logs into Azure portal as user1@xxx.com and he wants to create a logic app to send emails from logic app. He does not want the email to be sent from user1@xxx.com and instead he wants the email to be sent from user2@xxx.com.  Logically he add the Outlook365 action to the logic app and then try to create the connection as user2@xxx.com.  The problem is that even though he specifies user2@xxx.com on connection creation, the connection is still created with user1@xxx.com.  This is because AAD has the SSO feature, where AAD notices he has already logged in as user1@xxx.com and it just uses that as the credential.  

 

Solution:  

 

This feature/ issue lies on the AAD SSO side - can check SSO article for more details What is Azure single sign-on (SSO)? | Microsoft Docs.   

 

From the Logic Apps side dev member Dan has found a workaround below. It is a hacky workaround but works most of the times: 

 

  

  • Open IE Browser setting to disable Integrated Windows Authentication under Internet Options/Advanced tab. Close the browser and open it again to verify the setting is good. 

 

  

Picture for reference: 

 

Shailesh_Agre_0-1607667629987.png

 

 

 

 

1 Comment
Version history
Last update:
‎Dec 10 2020 10:34 PM
Updated by: