Back

[Solved] How to get user Teams Membership ID

  • 0
  • Teams
  • Self Hosted
punti_z
2 Dec, 2023, 16:05

I am trying to manage users team memberships using appwrite functions. To be able to remove a user from a specific team, apparently the only way us using membership ID, is that accurate. Also how do I get the membership ID.

Sorry if its basic, I have read through the documentation but still not sure. When I take ID from the create membership response I get teams ID but not the membership I'd if the user.

TL;DR
The user is trying to find the membership ID for Teams. They are confused about the difference between team ID, membership ID, and user ID. They want to know if the membership ID is the same as the user's ID. The solution is to use the create membership function, as it should provide both the team ID and the membership ID. The user is also trying to remove a user from a specific team and wants to know if the only way to do that is using the membership ID. They apologize for the basic question and mention that they have read the documentation but are still unsure.
Drake
2 Dec, 2023, 16:10

Create membership should give you both the team ID and membership id

punti_z
2 Dec, 2023, 16:13

Thanks Steven but this page is what confused me. Here $id, teamsId and userId are all the same ?? Which is supposed to be memshipId

punti_z
2 Dec, 2023, 16:17

Am I correct is assuming $id is membership ID?

Drake
2 Dec, 2023, 18:17

This is just a dummy sample. That is is membership id.

punti_z
4 Dec, 2023, 12:34

[Solved] How to get user Teams Membership ID

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