Get Link to Team - Create Link/URL with Group ID

New Contributor

We have designed a solution that creates teams and add users programmatically (C#) using automation namespace classes and commands from MicrosoftTeams PowerShell Module. We are storing GroupID returned after successfully creating the Team.  Using this groupID we have formed a URL/Link as below to navigate to Teams in browser. Link created in following format was working fine when we tested few days ago however this URL format seems to have been updated and now redirects users to 'Last visited Team Channel' instead specific Team (corresponding GroupID) in the URL<Tenant ID>&groupId=<Group ID>


Can someone guide us as to how to create a URL (Link to Team) which will redirect user to a specific Team?


Thanks in advance


10 Replies
Well, this is a problem that others has suffered and as far as I know, we don't currently have a guidance about how to build and deal with Teams URLs
Thanks for the inputs Juan
Anything new on this?
Teams itself has a working link, but I don't find a documentation on how to create this link and a part of it isn't obvious to me.
Solved it in the evening myself.
"" + encodedChannelId + "/conversations?groupId=" + groupId + "&tenantId=" + tennantId;

Hi @Carsten Juretzka,


could you give a little more detail please ?

I'm trying to do the same thing 


encodedChannelId ? could you give an example please ?

groupID ? I can get from Azure objectID I assume

tennantID ? Where can I get this ?

I got part of the way there.


encodedChannelId ? could you give an example please ? I still don't have a way to get this


groupID ? In Azure , look up the item and then look at the properties. Copy the objectID

tennantID ? Get this from another team. Click the ... to the right of an TEAM name (not the channel name) you have access to, select the copy link to team option. Paste that into Notepad and you'll get your tennantID


The following works to get you to a Group Modal window<from Azure Group Properties>&tenantId=<from an existing team link>


In my case this opened a Modal window (when opened in the browser) showing the details about the Office365 Group I was interested in. The only button was "Joined", because the user I was logged in as is already a member of the group.
On clicking "Joined" nothing happened.

Adding and removing my account from the members of the Office365 group got me an email, from which I found out that the Office365 group had been created from Outlook (not Teams) and that was why it failed using a Teams URL.

@Carsten Juretzka I'm still interested in how you got the ChannelID if you can let me know.

Many thanks


since we had trouble getting the data we needed via the GraphAPI, we used for a POC a workaround involving the MS-Teams PS-Cmdlet.

We bundled the connections and functions we needed and executed them from our .NET solution.

Using "Get-TeamChannel -GroupId $GroupId" in PS we did get the Channel-ID, which we could use in a url in the form:

var encodedChannelId = Uri.EscapeDataString(channelId);
var link = @"" + encodedChannelId + "/conversations?groupId=" + groupId + "&tenantId=" + tennantId;


Hope this helps. I am no longer involved in the project, so I am not sure, where they went from there.

Hi @Carsten Juretzka,


Thanks so much - that makes sense.

A small part of New Zealand is better off :)