0

Failed to create connection for connection id '/subscriptions/xxx/resourceGroups/test/providers/Microsoft.Web/connections/outlook'.

The client 'xxx@xxx.xxx' with object id 'xxx' does not have authorization to perform action 'Microsoft.Web/connections/write'over scope '/subscriptions/xxxxx/resourceGroups/test/providers/Microsoft.Web/connections/outlook' or the scope is invalid.

If access was recently granted, please refresh your credentials.

Trying to connect the Outlook through the logic apps, for the mail trigger when the job failed.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

1 Answers1

0

If using Office 365 connecter in the logic app in your resource group and logged in Make sure to add Logic App Contributor/ contributor permission at resource group or subscription level. Check if the role is assigned at only logic app level. And assign it to larger scope

Accesscontrol(IAM)> +Add

enter image description here

Add role assignment> Select Contrubutor from Privileged permissions. and later also select Logic app contributor if needed.

enter image description here and select the resource to assigned> logic app and the user .

enter image description here Also check the following

References:

  1. Azure built-in roles - Azure RBAC | Microsoft Learn
  2. logic-apps-and-configuring-office-365-email | StackOverflow
kavyaS
  • 8,026
  • 1
  • 7
  • 19