Skip to content
Back

No permissions provided for action 'read'

  • 0
  • Self Hosted
  • Functions
Guille
23 Dec, 2025, 03:21

I have a very weird error;

In a function I'm using dynamic keys to perform read write operation in rows. I have the scopes for read and write rows.

The function perform successfully listRows at the beginning of the function, but later in the code I have a table holidays with a date and description fields

The previous read are nothing special and it doesn't too much time to read information

Without any permission I get this error

TypeScript
appwrite  | [Error]Line: 6732
appwrite  | [Error] Method: GET
appwrite  | [Error] URL: /v1/tablesdb/:databaseId/tables/:tableId/rows
appwrite  | [Error] Type: Utopia\Database\Exception\Authorization
appwrite  | [Error] Message: No permissions provided for action 'read'
appwrite  | [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php

If in the table I add users:read I got this error:

TypeScript
appwrite  | [Error] Line: 6732
appwrite  | [Error] Method: GET
appwrite  | [Error] URL: /v1/tablesdb/:databaseId/tables/:tableId/rows
appwrite  | [Error] Type: Utopia\Database\Exception\Authorization
appwrite  | [Error] Message: Missing "read" permission for role "users". Only "["any","guests"]" scopes are allowed and "["users"]" was given.
appwrite  | [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php

If I add any:read

TypeScript
appwrite  | [Error] Line: 184
appwrite  | [Error] Method: POST
appwrite  | [Error] URL: /v1/tablesdb/:databaseId/tables/:tableId/rows
appwrite  | [Error] Type: Appwrite\Extend\Exception
appwrite  | [Error] Message: The current user or API key does not have the required scopes to access the requested resource.
appwrite  | [Error] File: /usr/src/code/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php

I'm out of ideas to debug this error

I'm using:

Appwrite: 1.8.0 node-appwrite: 20.3.0

TL;DR
Developers are encountering authorization errors while performing read operations on a table in Appwrite. They have tried adding various permissions like `users:read` and `any:read` but still face issues. The error message indicates missing or incorrect permissions. The developers are using Appwrite 1.8.0 and node-appwrite 20.3.0.
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