[SOLVED] User invited to team has access to team Permissions, but can't list team members
- 0
- Databases
- Accounts
- Web
When a user is invited to a team, they immediately (without having accepted the invite) can access resources tagged with Role.team(teamId), however teams.listMemberships(teamId) fails until they accept.
I would expect users not to have access to those resources until they accept. Is this intended behaviour?
yes, they shouldn't have access to resources. how are you adding users?
teams.createMembership(
id,
[],
email,
undefined,
undefined,
"http://localhost:5173/accept_team_invitation",
);
This is using a client SDK?
Yep, from Web
Oh, wait, I'm an idiot - Permission.read(Role.any())
[SOLVED] User invited to team has access to team Permissions, but can't list team members
Recommended threads
- Auth not working on expo react native
I'm trying to launch a development server with expo go and appwrite as a backend. On my windows pc, I've got a local docker instance of appwrite running as my b...
- Bulk delete failed with 401
- I created a transaction to bulk delete rows in a table has `done` equal `true` follow documentation. But when run, it returns 401 unauthorized error as screen...
- In which format should i pass the date?
I have a column with the type `datetime`. So i want to know which format is suitable for passing the date