Forum Discussion
AniGarikipati
Mar 08, 2022Copper Contributor
Programatically Configure Incoming Webhook Connector in Microsoft Teams Channel
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?
- 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-webhook#:~:text=To%20add%20an%20Incoming%20Webhook%20to%20a%20Teams,webhook%20URL%20present%20in%20the%20dialog%20window.%20
- ChetanSharma-msftMicrosoftAs 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-webhook#:~:text=To%20add%20an%20Incoming%20Webhook%20to%20a%20Teams,webhook%20URL%20present%20in%20the%20dialog%20window.%20- MarkSterinCopper ContributorAlso 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 ?