#Is it possible to search document by permission?

5 messages · Page 1 of 1 (latest)

placid igloo
#

I would like to allow the Admins, to see which documents does the user has permissions to. Is it possible to search by permissions?

stuck heart
#

I think you can use the Query.contains and target the $permissions attribute. But I've not tried this.

hearty breach
#

I just tried, but doesn't seem to work.. Getting this error:

{"severity":"error","message":"{\"name\":\"AppwriteException\",\"code\":400,\"type\":\"general_query_invalid\",\"response\":{\"message\":\"Invalid query: Attribute not found in schema: $permissions\",\"code\":400,\"type\":\"general_query_invalid\",\"version\":\"1.6.0\"}}"}
frosty cradle
# hearty breach I just tried, but doesn't seem to work.. Getting this error: ``` {"severity":"er...

Yes, queries are not supported for permissions.
Giive this a 👍 : https://github.com/appwrite/appwrite/issues/5169

GitHub

🔖 Feature description Extend the functionality of: Database List Documents (get a list of all the user's documents in a given collection.) Suggestions: List Documents(X) Get a list of all the u...

supple lagoon
#

Such a coincidence. Looking for the exact same thing. I hope that permissions can be used in queries at some point. 😊