Search code examples
firebasegoogle-cloud-firestoregoogle-cloud-functionsfirebase-security

Are updating, creation etc. functionalities of cloud functions affected by the firestore security rules?


I have made several rules based on the userid so wanted to confirm that will these rules block the update done by the cloud functions written in nodejs.


Solution

  • Your cloud functions act as admin. See How to make Firebase Functions act as a user instead of being an admin?

    But there is a button in Rules tab called Rules Playground that you can use for testing your firestore rules.