Open an Existing Group Chat via URL or Deep Link

Copper Contributor

I am attempting to open an existing Group Chat via a URL or Deep Link.  I've read info about creating a chat via a URL but not navigating to an existing Chat.  We plan to reuse an existing group chat room and would like to provide users a URL via an email to join or simply view the discussion from the existing Group Chat.  Can this be done?  How do i determine or construct the URL of the Group Chat Room?

8 Replies

Hi, use this and add the parameter topicName https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-links#deep-lin...

 

Edit, worked just fine when I tried.

 

Ex.

https://teams.microsoft.com/l/chat/0/0?users=frodo@shire.com,sam@shire.com&topicName=Mordor 

@ChristianJBergstrom I should have mentioned this.  We'd like to use these chat rooms with open ended users.  Mean that the room is used over and over by responders of an incident and the responders vary from chat to chat.  We plan to have a pool of rooms and round robin thru them as incidents occur.

 

The command that you mentioned seems to require a static list of users.  It seems to be trying to open a new chat for me.

Okay, never encountered that scenario and as far as I know you need to add users with deep links to chats.
Hi, I suppose you can develop a bot app that can add the user into the required group chat with chat histories by graphAPI, but you should consider more regarding the security and data protection. since once the app has permission to add anyone into any chat group. then the chat history will open for anyone.
Reference:
https://docs.microsoft.com/en-us/graph/api/chat-post-members?view=graph-rest-1.0&tabs=http

@ChristianJBergstrom 
Hi
the problem is that this method is onetime use.
While you left this chat and try to get back using same link with emails and chat name you will create or chat launcher will create another chat with same groups and same chant name, but with different deeplink-id.
And that would be a question, how to get back to once created chat using link, not asking this chat's members to draw you back.
I tell you what we need that for. Previously we used Slack, and there we have channels with straight ID identification. Teams have channels also, but is heavily restricted in terms of numbers of channels per team.

Any more suggestions about how to use links to enter chat?

Hi Artur, our application needs the exact same functionality to open existing groupchat via deep link.

I created an enhancement request if you want to upvote it or add comments.
https://feedbackportal.microsoft.com/feedback/idea/1ec1de7c-82fc-ec11-a81b-6045bd864d4f

The URL is https://teams.microsoft.com/I/chat/xx:xxxxx@thread.v2/  but replace the xx:xxxxx with the code from a "Copy Link" URL which looks like com/I/message/xx:xxxxx@threads.v2/

Note xx:xxxxx is 2 characters, a colon, then about 30 characters, but I only put it as a smaller number of x's in the example.

How do you get "Copy Link"? You may need to be on the web URL teams.microsoft.com or on the desktop app. While there, hover the mouse cursor over a message in the chat room, click the 3 dots, and choose "Copy Link".

So, the chat has to exist, and there has to be at least one message. And I assume if you don't have permission to that chat room it won't work, but you should test that.

This also works with meetings, but the xx:xxxxx has the word "meeting" in it, but you can still copy and paste it.

Useful, thanks @gamerkilo 

Why does MS make such a basic thing so, so hard.