[CLOSED] Create room with 2 userid read permission: Permissions must be one of: (any, users…)
- 0
- Databases
- Web

Hello everyone,
I am trying to create room document with permissions. As i understand i cannot authorized to give to any permissions for any other user due to response.
First idea coming to my mind is : Should i create a team for every private room with 2 users ?
How can i handle with this situation ?
Why i am doing this : Because i want to be get notified another user by listening realtime and see that room as well.
createRoom(data: any): Promise<any> {
console.log(data);
return this.api.createDocument(
environment.appwrite.ROOMS_COLLECTION,
ID.unique(),
data,
[
Permission.read(Role.user(data.users[0])),
Permission.read(Role.user(data.users[1])),
]
);
}
Response :

Yes, you can use a team or an appwrite function

[SOLVED] Create room with 2 userid read permission: Permissions must be one of: (any, users…)

Create room with 2 userid read permission: Permissions must be one of: (any, users…)

I can create a team by client side but and cannot add a membership for different user.
I want to create a team when createRoom
function called, then create membership with these 2 members. Is it possible to createMembership for another user in client side ?

Client-side, only the owner of a team is allowed to invite users to the team

Im sorry but i cant add/invite any users in appwrite version of 1.4.x Created a bug issue about it: https://github.com/appwrite/appwrite/issues/6839

Would you please include the SDK and version you're using?

edited in the issue entry! Best

[CLOSED] Create room with 2 userid read permission: Permissions must be one of: (any, users…)
Recommended threads
- Subdomain failed verification
So I wanted to do a custom subdomain, because local storage doesn't work for me, but I've tried it a long time ago, it didn't work for me, and now I'm trying ag...
- Query params are way too limiting in ter...
I was trying to list rows in a table that do not already exist in another table. I retrieved around 260 row IDs which are 13 characters in length each, and then...
- [Node.js SDK] Bypass 2GB file limit?
Hello. Using either InputFile.fromPath or InputFile.fromBuffer throws this error: File size (2295467305) is greater than 2 GiB Bucket limit etc. is setup corre...
