DEV Community

Cover image for What details can be accessed via Teams context
Dev365
Dev365

Posted on

What details can be accessed via Teams context

When you are building a Microsoft Teams Tap app, you might want to know what kind of information are exposed via the teams context.

Context details are revealed about some user, team and company information. following code foreach context properties that is taken from personal tab app

Object.keys(microsoftTeams.context).forEach(key => {
//...
});

  • locale: en-us
  • theme: default
  • entityId: personal-tab-entityId
  • subEntityId:
  • isFullScreen: false
  • sessionId: 6a9040ee-3e75-b7b1-1c34-b33cb38e4c22
  • chatId:
  • meetingId:
  • hostClientType: web
  • tenantSKU: unknown
  • jsonTabUrl: microsoft-teams-json-tab.azurewebsites.net
  • userLicenseType: Unknown
  • appSessionId: c94922f8-6cfb-425a-9675-034631329eae
  • isMultiWindow: false
  • appIconPosition: 303
  • frameContext: content
  • teamSiteDomain: abc.sharepoint.com
  • teamSitePath:
  • teamSiteUrl:
  • ringId: general
  • tid: 22235f37-6421-4209-a601-aad98974a222
  • loginHint: admin@abc.onmicrosoft.com
  • upn: admi@abc.onmicrosoft.com
  • userPrincipalName: admin@abc.onmicrosoft.com
  • userObjectId: 226ca1c0-2108-4be7-955b-90f39abdcc22

more details can be found here
https://docs.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/access-teams-context#getting-context-by-inserting-url-placeholder-values

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay