List joinedTeams

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported.

Get the teams in Microsoft Teams that the user is a direct member of.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) User.Read.All, User.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application User.Read.All, User.ReadWrite.All

Currently, with user delegated permissions this operation only works for the 'me' user. With application permissions, it works for all users by specifying the specific user id. ('me' alias is not supported with application permissions) For details, see Known issues.

HTTP request

GET /me/joinedTeams
or
GET /users/{id}/joinedTeams

Optional query parameters

The OData Query Parameters are not currently supported.

Request headers

Header Value
Authorization Bearer {token}. Required.
Accept application/json

Request body

Do not supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and collection of group objects in the response body.

Example

Request

Here is an example of the request.

GET https://graph.microsoft.com/beta/me/joinedTeams
Response

Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.

HTTP/1.1 200 OK
Content-type: application/json
Content-length: 55

{
  "value": [
    {
      "id": "id-value"
    }
  ]
}

SDK sample code


GraphServiceClient graphClient = new GraphServiceClient( authProvider );

var joinedTeams = await graphClient.Me.JoinedTeams
	.Request()
	.GetAsync();

Read the SDK documentation for details on how to add the SDK to your project and create an authProvider instance.

See also

List all teams