Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature: List Teams in Account.get() #62

Closed
2 tasks done
silentmado opened this issue Jul 4, 2023 · 2 comments
Closed
2 tasks done

🚀 Feature: List Teams in Account.get() #62

silentmado opened this issue Jul 4, 2023 · 2 comments

Comments

@silentmado
Copy link

🔖 Feature description

I don't find a way to get the list of teams that the user belongs to, unless using Users.

I need to manage the logged user authorizations in my app, so I think it would be very useful if we can find out which Teams the user is a member of in the Account Object returned by Account.get().

🎤 Pitch

It will be very easy to manage authorizations in the application.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@trashcoder
Copy link

trashcoder commented Jul 5, 2023

Doesn't
const promise = teams.list();

work for this?

docs says:
Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.
https://appwrite.io/docs/client/teams?sdk=web-default#teamsList

@lohanidamodar
Copy link
Member

@trashcoder you are correct. While using client SDK, teams.list returns the teams current user is member of. @silentmado you should make a request, using teams service.

@stnguyen90 stnguyen90 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants