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

Top comments (0)