Skip to content

Commit 99ac2d6

Browse files
committed
Update get-teams-context.md
1 parent a7bd942 commit 99ac2d6

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

msteams-platform/bots/how-to/get-teams-context.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,17 @@ description: Get Teams specific context for your bot, fetch user profile, get si
44
ms.topic: conceptual
55
ms.localizationpriority: high
66
ms.owner: angovil
7-
ms.date: 03/30/2026
7+
ms.date: 03/31/2026
88
---
99
# Get Teams specific context for your bot
1010

1111
A bot can access additional context data about a team or chat where it's installed. This information can be used to enrich the bot's functionality and provide a more personalized experience.
1212

1313
## Fetch the roster or user profile
1414

15-
Your bot can query for the list of members and their basic user profiles, including Teams user IDs and Microsoft Entra information, such as name and objectId. You can use this information to correlate user identities. For example, to check whether a user logged into a tab through Microsoft Entra credentials is a member of the team. For get conversation members, minimum or maximum page size depends on the implementation. Page size less than 50, are treated as 50, and greater than 500, are capped at 500. Even if you use the non-paged version, it's unreliable in large teams and must not be used.
15+
Your bot can query for the list of members and their basic user profiles, including Teams user IDs and Microsoft Entra information, such as name and objectId. You can use this information to correlate user identities. For example, to check whether a user logged into a tab through Microsoft Entra credentials is a member of the team.
1616

17-
> [!NOTE]
18-
>
19-
> * Pagination is available in a team and a channel.
20-
> * Pagination isn't supported in chats. For chats, the entire roster is always returned.
21-
22-
The following sample code uses the paged endpoint for fetching the roster:
17+
The following sample code is used for fetching the roster:
2318

2419
# [C#](#tab/dotnet)
2520

@@ -257,7 +252,7 @@ Response body
257252

258253
* * *
259254

260-
After you get details of the team, you can get the list of channels in a team. To retrieve information for a list of channels in a team, use the Teams bot APIs `context.Api.Teams.GetByIdAsync(teamId)` for C# or `api.teams.getById(teamId)` for TypeScript APIs.
255+
After you get details of the team, you can get the list of channels in a team. To retrieve information for a list of channels in a team, use the Teams bot APIs `context.Api.Teams.GetConversationsAsync(teamId)` for C# or `api.teams.getConversations(teamId)` for TypeScript APIs.
261256

262257
## Get the list of channels in a team
263258

0 commit comments

Comments
 (0)