Looks like I'll need to make 3 queries.
one to retrieve my current users teams ids teams.list()
. another to retrieve the current users membership id teams.listMemberships($teamId)
and yet another to retreive the roles teams.getMembership($teamId, $membershipId)
Wondering if there was any way to retreive the membership id and roles on the initial teams.list()?
TL;DR
Best way to retrieve current user's roles on a given team using Web SDK:
- Initial query for user's team IDs `teams.list()`
- Second query: current user's membership ID `teams.listMemberships($teamId)`
- Third query: roles by `teams.getMembership($teamId, $membershipId)`
No direct way to retrieve membership ID and roles on the initial `teams.list()`.