Back

Users Permissions Bug

  • 1
  • Users
  • Databases
  • Apple
ROAD 6
16 Dec, 2023, 11:14

in the appwrite console i can add multiple users to read permission of db document but when im trying to implement that in apple-appwrtie-sdk thats crash its a bug ? for example i have two users -> user1_ID = "a1", user2_ID = "a2" i use database.createDocument(databaseId:"databaseId",collectionID:"collectionID",documentID:ID.unieqe() ,Data:[data...], Permissions:[Permission.read(Role.user(user1_ID), Permission.read(Role.user(user2_ID) ) ]) error : the bug Permissions must be one of: (any, users, user:user1_ID, user:user1_ID/verified, users/verified, label:admin)

TL;DR
In the appwrite console, I can add multiple users to have read permission for a database document. However, when I try to implement this using the Apple Appwrite SDK, it crashes. It seems to be a bug. For example, I have two users with IDs "a1" and "a2". I use the `database.createDocument` function with the appropriate parameters, including the permissions for the users. However, I receive an error message saying that the permissions must be one of the following: any, users, user:user1_ID, user:user1_ID/verified, users/verified, or label:admin. Currently
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