Mosh OntongOriginal post
Rank 5: Hypervisor
Upon logging into the application, then I want to check which teams is the user a member of?
Summary
To check which team a user belongs to and their role, you can follow these steps:
1. Use the `listTeams` method to retrieve a list of all teams. Documentation: [listTeams](https://appwrite.io/docs/client/teams?sdk=web-default#teamsList)
2. Use the `listMemberships` method to get the user's roles in each team. Documentation: [listMemberships](https://appwrite.io/docs/client/teams?sdk=web-default#teamsListMemberships)
3. Iterate through the list of teams to find the user's memberships and their respective roles.
tl;dr