Forum Discussion

salvijansen's avatar
salvijansen
Copper Contributor
Sep 07, 2019
Solved

Validating a user's membership of a Team - Context object

We should use the values from the Context object with due care, as someone might be running our app in a rogue environment, injecting values to manipulate the outcome.   For the user's login, I und...
  • salvijansen's avatar
    Jan 09, 2020

    There seems to be /checkMemberGroups endpoint which can be reached with the non-admin User.ReadBasic.All permission to which you can submit the user and the groupId provided by the Teams context object and it will return whether the user is actually in the group (thank you to the MVPs @paulschaeflein and @kevindockx !)

     

    I'm still hopeful that at some point the /joinedTeams endpoint can also be reached with this User.ReadBasic.All permission, because that would actually "list" the joined teams with their id and could be used when you don't know the groupId upfront.

Resources