Documentation for server sdks of permissions are missing on site. I was looking for permissions example regarding python server sdk but couldn't find.
https://appwrite.io/docs/permissions
It's really similar on both sides (server and client ), so you shouldn't have any problem working with it.
Regarding adding an example, The web SDK kinda works but you can create an issue for it (showing examples on all sdks)
If you're using a server SDK with API key, the access would depend on the scopes on the API key. For example, if you grant documents.read, it'll have access to all documents.
Actually i was creating different permissions for different users. I solved this. But there is something more to i think ... In next message
When creating permissions user param takes only userId at a time, and was trying to create permissions for group of userIds and for this I have pass every time as permissions=[Permissions.create(role="user:user1id"),Permissions.create(role="user:user1id")] This means that to add creat permission for all users I have to the same process. My suggestion was why not we should pass Permissions.create(role="users:user1id,user2id...usernid")
Because parsing it would be more of a pain π
You should be able to simplify your code by using an array and a map function
ππ€£β π
Recommended threads
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support π I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...
- Bug: TOTP MFA verification always fails ...
*Bug: TOTP MFA verify always returns `user_invalid_token` (Cloud 1.8.1, Frankfurt)** Project ID: `68dd48440003e537d849` SDK: `appwrite@18.2.0` (also tested wit...