Forum Discussion
adamhouck
Feb 24, 2020Copper Contributor
How to create connector programmatically?
I have a web application that has channels that I would like to allow the users to map 1:1 to channels in Teams. The channels will always keep the 1:1 mapping so as they create channels in the ap...
Trinetra-MSFT
Microsoft
Please take a look Teams connector sample code.
Let me know if this doesn't help you.
adamhouck
Feb 25, 2020Copper Contributor
Trinetra-MSFT Looking at these examples I don't think a connector is what I need.
I want to have more flexibility and not need the user to manually install it to every team in their organization then enable it on each channel.
Looking at the Graph API it looks like utilizing oAuth to get a token, then being able to post a message to any channel on any team on behalf of a user is the functionality I am looking for.
However, to request the permission
"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize"
It looks like the Teams account has to be work or school which is fine, but that the user requesting it has to be the administrator.
It looks like the Teams account has to be work or school which is fine, but that the user requesting it has to be the administrator.
How can I set up a test environment for this? When I create my own teams account it is setup as personal.
- Trinetra-MSFTMar 04, 2020Microsoft
adamhouck , Please take a look at enable teams for your org.