We know that it's possible to start a Microsoft Teams conversation via a link on a website like the following:
<a href="MSTeams:/l/chat/0/0?users=john.doe#my-organisation.com>Start direct MS Teams Chat</a>
Now we're searching for a way to create a new public team for all members of our organization within MS-Teams from the outside. With a simple link that won't be possible as we need to know the Teams link to this public team.
So from UX side we want to have first a button
<button>Start new discussion in MS Teams for this issue</button>
And once a user has klicked this button we replace it by this button:
<a href="MSTeams:/link-to-the-new-public-team>Join the discussion for this issue in MS Teams</a>
Is it understandable what we are trying to achieve?
Are there any MS Teams-API methods to achieve this behavior?
Create a new public team within Microsoft Teams from the outside
This is not possible with a link, like you can create a new chat.
But you can create a team using the Microsoft Graph API.
POST https://graph.microsoft.com/v1.0/teams
Content-Type: application/json
{
"template#odata.bind": "https://graph.microsoft.com/v1.0/teamsTemplates('standard')",
"displayName": "My Sample Team",
"description": "My Sample Team’s Description"
}
Related
Im working with microsoft graph with the new api for teams.
I was wondering if i can set up the access to an online meeting, where i can pass an url to a person with a pre-assigned name on it (like adding a parameter to the url).
If its not a posibility, is any way to do this? and are you planning on adding it? It could be a nice feature to makes things easier when using microsoft teams.
Thanks in advance
Is it possible to create a Teams Template that contains the General Posts? I have disclaimers in pinned post in the General channel and I want those to be included in Teams created using this template. Also, if you open up the Teams in SharePoint, I want the same look and feel when a created from this template. Is this possible even using Graph?
Copying answer from comments for better understanding.
Teams support the create a Teams Template that contains the General Posts. You need to use Teams template to achieve the above or Graph to customise within teams.
Is there any way to get the list of joined teams details of members except graph API? Using graph API of below link we can get the list of joined teams details of any members. Similarly, is there any other way to get the list of joined MS teams group details? I want to use these details in Microsoft bot framework.
https://learn.microsoft.com/en-us/graph/api/user-list-joinedteams?view=graph-rest-1.0&tabs=csharp
Due to some security concern I can not use graph API as of now.
I am also exploring below link but I am not getting anything here... Looking for any REST API like graph API where I can provide the users name and I can get details.
https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/get-teams-context?tabs=dotnet
It's not a security concern, rather it's part of the requirement. If i am in your place, i would set Graph API as prerequisite for my app to work, explain the benefits that you're going to get with Graph/application permissions. Apart from Microsoft Graph API you can try with Powershell, CLI.
I want to join a public team. Let's call it Experiment.
Using the Microsoft Graph API from my WPF app, I add myself to Experiment by calling (with proper content):
POST /groups/{id}/members/$ref
It seems to work. The webrequest returns success, and when I query my joined teams (GET /me/joinedTeams), I can see Experiment in the list.
Unfortunately, when I launch the Teams desktop app (Windows), or the web client, I don't see Experiment inside the list on the left. Even worse, when trying to join the team directly from the app, I can't find Experiment when searching for it.
The only workaround I found is to ask another member to invite me to Experiment.
In a program, I am hoping to use Microsoft Graph to create a Microsoft Team, and then a channel in that team. I read on this forum that creating teams is not yet supported, but the date of the answers do not include the year. Is it correct that it is still not supported? What is the ETA?
I believe that there is now an API for this - but it looks like a 2 step process - first create a group and then "make it into a Team".
See https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/team_put_teams
I also believe that we are working on a single API call to create a Team, but that's not available yet.
Hope this helps,
Looks like the Team creation API is now out of beta GA API to create Team using Group
Group has to be created before the Team as per this API