Skip to content

feat(adapter-teams): add getUser() support#404

Open
heyitsaamir wants to merge 3 commits intovercel:feat/get-userfrom
heyitsaamir:feat/teams-get-user
Open

feat(adapter-teams): add getUser() support#404
heyitsaamir wants to merge 3 commits intovercel:feat/get-userfrom
heyitsaamir:feat/teams-get-user

Conversation

@heyitsaamir
Copy link
Copy Markdown
Contributor

@heyitsaamir heyitsaamir commented Apr 20, 2026

Summary

  • Implements getUser() for the Teams adapter, stacked on feat: add chat.getUser() for cross-platform user lookups #391
  • Uses Microsoft Graph API (GET /users/{user-id}) with cached aadObjectId
  • Caches activity.from.aadObjectId during webhook handling for later lookups
  • Requires User.Read.All application permission
  • Minor fix to bump up teams.apps package, and user User-Agent for telemetry instead of X-UserAgent

Test plan

image

- Cache aadObjectId from activity.from during webhook handling
- Implement getUser() using Graph GET /users/{user-id} endpoint
- Requires User.Read.All application permission
- Returns null gracefully when user hasn't interacted or Graph call fails
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 20, 2026

@heyitsaamir is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@heyitsaamir heyitsaamir marked this pull request as ready for review April 21, 2026 05:34
@socket-security
Copy link
Copy Markdown

socket-security Bot commented Apr 21, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​microsoft/​teams.apps@​2.0.6 ⏵ 2.0.88510084 +199 +2100
Updatednpm/​@​microsoft/​teams.api@​2.0.6 ⏵ 2.0.88610085 +199 +2100
Updatednpm/​@​microsoft/​teams.cards@​2.0.6 ⏵ 2.0.88810087 +197100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant