Back

how to remove a member from team

  • 0
  • Teams
  • Realtime
Karthik
13 Nov, 2023, 11:00

when deleting a member from team this error is coming : "{message: The requested team invitation could not be found., code: 404, type: team_invite_not_found, version: 1.4.2}" ,

TL;DR
User is seeking help on how to remove a member from a team. They are unable to find the membership ID in the console, but it can be fetched through a program. The user wants to know how to identify the membership ID. A possible ID 'u213' is mentioned but needs verification. When trying to delete a member, they encounter a 404 error stating that the team invitation could not be found. Solution: - To find the membership ID in the console UI of Appwrite Cloud, navigate to the "Membership" tab on a specific user's page, or look at the specific user in the list on the "Team
Mosh Ontong
13 Nov, 2023, 14:25

can you verify that u213 is the membership id of the specific user?

Mosh Ontong
13 Nov, 2023, 14:26

I think u213 is a name rather than a membership id

Karthik
13 Nov, 2023, 18:06

i added the user like this and userids is now just number ,( my aim is to give permission to a collection so that all the users in that group can get realtime and remove user if necessary) . how to spot membership id ?.

Mosh Ontong
13 Nov, 2023, 21:34

in programs you can actually fetch the membership id in that ‘result’ variable you try to log that result and you can see the ‘$id’ here and that can be the possible membership, as the documentation state here

https://appwrite.io/docs/references/cloud/models/membership

Mosh Ontong
13 Nov, 2023, 21:37

In the console UI of Appwrite Cloud, you can navigate to the membership ID through:

  1. On a specific user's page, navigate to the "Membership" tab.
  2. On the "Team" page, look at the specific user in the list, where you can see the membership ID alongside.
Karthik
14 Nov, 2023, 09:04

i am able to delete using membership id from result. But this id is not seeing in console

Karthik
14 Nov, 2023, 09:06
D5
14 Nov, 2023, 09:19

Are you doing this client sided?

D5
14 Nov, 2023, 09:20

If so, unless it's the same user that has the session, it will not be possible removing other users

Karthik
14 Nov, 2023, 09:28

its used in server side with key.

Drake
14 Nov, 2023, 17:54

correct...i don't think we show the membership ID in the console. Feel free to create a feature request issue for that if you'd like

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