Refactor the use app-scoped token for fetching teams per user #198

Closed
opened 2026-04-05 16:19:03 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @tollercode on 12/17/2025

Refactor the use app-scoped token for fetching teams per user

Previous approach to fetch only the teams that the user who created the MSTeams integration did not work. Switchign back to app-scoped token but using the users/{user-id}/joinedTeams Graph endpoint.

Pull Request Checklist:

  • Please make sure all jobs pass before requesting a review.
  • Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).
  • Have you lint your code locally before submission?
  • Did you write tests where appropriate?

Screenshots (if appropriate):

*Originally created by @tollercode on 12/17/2025* ### Refactor the use app-scoped token for fetching teams per user ### Previous approach to fetch only the teams that the user who created the MSTeams integration did not work. Switchign back to app-scoped token but using the users/{user-id}/joinedTeams Graph endpoint. ### Pull Request Checklist: - [ ] Please make sure all jobs pass before requesting a review. - [ ] Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if such). - [X] Have you lint your code locally before submission? - [ ] Did you write tests where appropriate? ### Related Issue? ### Screenshots (if appropriate):
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#198