Use managed identity for logic app (Teams, SharePoint)

Gerco Verweij 1 Reputation point
2021-05-27T11:55:38.69+00:00

Hello all,

I'm recently busy with logic apps to generate word documents, based on information which is available in a SharePoint list. That is working pretty well, however, my personal account is linked to all triggers and actions (like 'Send a message to a teams channel'). If I understand well, managed identities can be used for this (in most cases). I've searched the internet about managed identities, but I still can't use a managed identity for linking to my actions. I think I miss something.

What I've done so far:

  1. Create a user-managed identity within my resource group
  2. Give the identity 'Contributor' role within the resource group (don't know if this is necessary)

Should this be enough to use the identity for an API connection, like MS Forms? If I try to use the identity, I get the following error:

100258-afbeelding.png

For now, the following API connections are used within my logic apps in this resource:

  1. Microsoft Forms -> To collect new responses and adding them to a SharePoint list
  2. SharePoint online -> For adding and updating SharePoint lists and create items (Word documents)
  3. Teams -> For sending messages and adaptive cards to a teams channel
  4. Word online business -> For populating a word template and fill variables from SharePoint list
  5. Office365 -> Outlook, for sending the word document in an e-mail

I read something about adding permissions to the identity with AzureAD Powershell commandlets. Is this necessary to use a managed identity in logic apps? Or do I need to give the identity another role? If yes, which one? Because there are a lot of roles!

I hope someone can put me in the right direction.

Thanks in advance.

Gerco

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,457 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,273 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,896 Reputation points
    2021-05-27T13:06:10.687+00:00

    @Gerco Verweij Managed Identities are only supported for the listed build in triggers/action and managed connectors. As of now Micorosft teams and SharePoint are not supported.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.