User Profile
DVTitov
Copper Contributor
Joined Nov 27, 2021
User Widgets
Recent Discussions
Re: Send personal messages to Teams from daemon service.
Hi! Example for Go behind that link is outdated, but anyway I cannot use chat API in applications only context. My application gets Auth token using application secret obtained at Azure. I don't have any user logged in so I can't get Authorization Code. Hence when I call chat API I get an error: "Chat API not allowed in application only context" (or similar).3.7KViews0likes2CommentsRe: Send personal messages to Teams from daemon service.
Hi! I'm not sure this is my case. I don't have a bot. I need to develop Linux daemon service that should propagate infrastructure monitoring alerts to system admins. I use Golang SDK and I'm able to query all users of my organization from Azure AD (Microsoft Graph API). Now I need a REST or Go SDK method to send message to Teams user referenced by their AD UPN. Me daemon service is by no means a bot or web app. Imagine it's a plugin for Zabbix or MS SCOM.3.7KViews0likes4CommentsSend personal messages to Teams from daemon service.
Hello, I need to send notifications to my colleagues using Teams in case of emergency which is detected by monitoring system. These messages must be sent on behalf of background service which cannot follow interactive user authentication flow and therefore cannot get Authorization Code to authenticate on behalf of user. I can connect to Azure AD using Graph SDK for Golang and get all users of my organization. But I cannot use Chat API because it's not allowed in "application only context". Is there a way to send personal user messages from daemon service?Solved4KViews1like7Comments
Recent Blog Articles
No content to show