03-06-2018 11:58 PM - edited 03-07-2018 12:00 AM
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
https://teams.microsoft.com/_?tenantId=<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
Vijay
03-07-2018 09:45 AM
03-07-2018 11:53 AM
07-11-2018 09:29 AM
07-12-2018 05:52 AM
11-25-2018 06:44 PM
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 ?
11-25-2018 07:16 PM
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
https://teams.microsoft.com/l/team/conversations/General?groupId=<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
D
11-28-2018 11:30 PM
Hi,
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 = @"https://teams.microsoft.com/l/team/" + 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.
11-29-2018 11:25 AM
Thanks so much - that makes sense.
A small part of New Zealand is better off :)
Dorje
06-03-2020 03:24 PM - edited 06-03-2020 03:27 PM
GET https://graph.microsoft.com/v1.0/groups/{groupid}/team?$select=webUrl