SOLVED

Programatically Configure Incoming Webhook Connector in Microsoft Teams Channel

Copper Contributor

Hello,

I m working on automation that currently creates multiple Microsoft Teams Channels based on a list it receives. 
As part of this, i m looking to enable the Incoming Webhook connector for the channel at creation time. 
I am able to confirm that the Incoming Webhook App exists in the Team and i have the necessary permissions but i cannot find any documentation that would allow me to enable the connector. 

Is there any documentation you could point me to in regards to this? Alternatively, is there another recommended approach to enable Incoming Webhook connectors programatically?

2 Replies
best response confirmed by ChetanSharma-msft (Microsoft)
Solution
As far as I know, currently we can not create/configure incoming webhook automatically or programmatically.
You can create/configure the connector in team's channel's manually.
Reference doc: https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming...
Also a blocker for us - we keep secrets (including webhooks) in Azure Vault and deploy all with terraform. This lack of any API to fetch the webhook from Teams breaks our pipeline/deployment automation. (for creation we can probably get away with manual steps)
Hey folks at @teams - if you are listening - any plans here ?
1 best response

Accepted Solutions
best response confirmed by ChetanSharma-msft (Microsoft)
Solution
As far as I know, currently we can not create/configure incoming webhook automatically or programmatically.
You can create/configure the connector in team's channel's manually.
Reference doc: https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming...

View solution in original post