Skip to content
Back

The current user is not authorized to perform the requested action.

  • 0
  • Web
  • Databases
  • Storage
  • Cloud
  • Self Hosted
Unidentified
6 Aug, 2025, 01:43

Hello, I am attempting to receive fetch data from databases.listDocuments with each of its env parameter data for it to be shown on a NextJS project. However I keep stumbling on a series of error messages such "the current user is not authorized to perform the requested action.] " and "{ code: 401, type: 'user_unauthorized', response: '{"message":"The current user is not authorized to perform the requested action.","code":401,"type":"user_unauthorized","version":"1.7.4"}' }" . I set up the permissions on it's usage, I have the .env content variables, and even attempted to setup document security. What seems to not to be working?

TL;DR
Developers are facing authorization issues when trying to fetch data from databases.listDocuments in a NextJS project. The error message "the current user is not authorized to perform the requested action" keeps appearing despite setting up permissions and .env variables correctly. This could be due to document security setup issues.
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