Back

permissions for scheduled cloud function

  • 0
  • Flutter
  • Functions
d_honig
6 May, 2024, 06:30

In my system, all authenticated users can create documents but not read them. I am creating a cloud function that reads all the documents and sends a push notification if, e.g. a user hasn't created a document in the last 24 hours. I assumed that scheduled cloud functions are called with admin permission, but this is not the case. How to make it possible for the function (and only the function) to read the documents?

I am using Flutter SDK. Thank you

TL;DR
Developers want to create a scheduled cloud function that reads documents and sends notifications, but are running into permission issues because scheduled functions don't have admin privileges. To solve this, they should use Google Cloud Functions and set the appropriate IAM roles to restrict read permissions to the specific function.
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