Modify API call to retrieve user's team memberships #197

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

Originally created by @tollercode on 12/18/2025

Switch to membersof instead of joinedTeams

Due to false behaviour in MS Entra Graph API the /v1.0/users/{userId}/joinedTeams is wrongly redirect to https://graph.microsoft.com/edu/users/{userId}/memberOf. Fixing by directly using the memberOf endpoint with needed filter

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/18/2025* ### Switch to membersof instead of joinedTeams ### Due to false behaviour in MS Entra Graph API the /v1.0/users/{userId}/joinedTeams is wrongly redirect to https://graph.microsoft.com/edu/users/{userId}/memberOf. Fixing by directly using the memberOf endpoint with needed filter ### Pull Request Checklist: - [X] 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#197