d_honigOriginal post
Flutter Developer
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
Summary
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.