![](https://cdn.discordapp.com/avatars/395923095472570368/700e94e0d6a6cb4c7daa53ee91d237a4.webp)
When I try to change a user's team with createMembership and updateMembershipStatus, the user is somehow in the new team, but appwrite doesn't show a second member in the list + when I try to add any security to a document with the given team (e.g. Read Access), the user doesn't have access to it.
Running on Nuxt btw.
newRole is the Teamname
this.$appwrite.teams.createMembership(
newRole,
[
newRole, // Is this even necessary?
],
undefined,
userId,
undefined,
membershipUrl,
)
useAppwrite().teams.updateMembershipStatus(
teamId,
membershipId,
userId,
secret,
)
The appwrite call difference is because the create statement is on a page. And I handle the status update through a middleware :)
Recommended threads
- Check if username or email is already us...
How can I check in Appwrite Flutter if a email or username is already used?
- How to get a pref
Hello, how can I get user-preferences. I tried to many thing and they just don't work. I have no idea how I could convert a Preference into a string.
- Can i have conditional statements inside...
As I’m migrating my code from using Supabase to Appwrite, I’ve encountered an issue with migrating the email templates. Supabase uses Go templates, and in one o...
![](/images/bgs/pre-footer.png)