@Goel -
Yes, it is possible to achieve the integration you described between your Angular application and Microsoft Teams. You have to build custom Teams app that allows the company admin to connect their account with Teams, and then other users, including the admin, can post messages to a Teams channel without having to individually connect their accounts.
- You need to build a custom Teams app in the Microsoft Teams developer portal. This app will allow you to interact with Teams and post messages to channels.
- Set up authentication for your Angular application, allowing company admins to connect their accounts with Teams. You can use OAuth 2.0 to authenticate the admin's account with Microsoft Teams.
- Once the company admin connects their account with Teams, your application should obtain an access token for the admin's account. This token will be used to authenticate API requests made from your application to Teams on behalf of the admin.
- With the access token, your Angular application can use the Microsoft Teams Graph API to post messages to the desired channel within Teams. The API allows you to send messages, notifications, and more to a channel.
Graph API to post message in channel.
POST /teams/{team-id}/channels/{channel-id}/messages
Ref Doc: https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http
Thanks,
Nivedipa
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.