Currently there is no API to search all memberships for a specified user.
You have to look through every team if you want to get the teamleader or the team id of a user which could be simplified into one request.
Tempo Products | Tempo Teams |
Tempo Platform | Cloud |
I also need to retrieve the list of the teams in which a user is member of.
Currently it is possible through the web interface : https://xxxxxxx.atlassian.net/plugins/servlet/ac/io.tempo.jira/tempo-app#!/teams/?member=61f971c7c224b800693Iieud
But it can't be done directly with the API. You need to fetch the list of all the teams, then the list of members for each team, and then find in which teams is your user. We have over 200 teams, so it takes... very long.
The endpoint could be teams/members/{userId}, and the result would return the list of the teams.
Another endpoint could be provided for teams leads : teams/leads/{userId}