Hi all,
I’m currently working on integrating Microsoft Teams messaging within Alteryx. Here’s what I’m doing manually right now:
I use browser to log in with my credentials.
After login, I copy the access token from the browser.
I use that access token to post messages in a Teams channel using @mentions (tags).
I also have access to an Azure App and its token, but that token doesn’t allow me to post messages using tags—user authentication is required for that.
My questions:
How can I replicate the browser-based user authentication flow within Alteryx, so the user can log in and we can retrieve the proper access token?
Is there a way to handle browser redirection and token extraction in Alteryx, or through an API-based approach integrated with Alteryx workflows?
Has anyone successfully posted Teams messages with tags using authenticated user tokens within Alteryx?
Any guidance or examples would be greatly appreciated!
Thanks in advance.
As there is no comment on this yet, I'll add some comments. The graph API and Teams integration is something that I've always found lacking. Especially when the functionality is implemented to try and offer an alternative to the likes of Slack...
In order to replicate the browser based auth, you would be trying to mimic the interaction, and so I would expect that to get detected at some stage by the id service or the browser. The browser based auth is designed not to be programmatic vs token/app based that is programmatic. I imagine the difference in capability is on purpose to stop mass programmatic spamming.
You may be able to mimic it with HTML posting, but I imagine you want the notification rather than the user link, so maybe look for if you can use the notification endpoint (beta most likely) at the same time as the post. Not ideal, but may be a workaround.