Skip to content
Back

i wonder if i can use user ID to get user Team and permission. any one with idea

  • 0
  • Users
  • Teams
  • Databases
  • Accounts
eng.mghase
7 Mar, 2023, 17:46

i wonder if i can use user ID to get user Team and permision. any one with idea

TL;DR
You can use the listMemberships() endpoint with the user ID to retrieve the teams a user is a part of. Each membership object will provide the team ID and permissions. Check out the link for more details on how to implement this.
Christy Jacob
7 Mar, 2023, 17:47

Yes, you can use the listMemberships() endpoint to get all the teams a user is a member of .. Each membership object contains the team ID https://appwrite.io/docs/server/users?sdk=nodejs-default#usersListMemberships

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more