Access Control List Use an ACL for fine-grained user authorization

This lesson is available for PRO members or as a single course purchase. Sign-in and choose a plan below.


*Enrollment provides full access to this course (and updates) for life.

Or Signup for Unlimited PRO Access

Sample Firestore security rules for an Access Control List (ACL), where the content determines which users have authorization.

file_type_firebase rules.json
match /posts/{document} {

    allow read;
    allow write: if resource.data.members.hasAny(request.auth.uid);

}

example of an Access Control List in Firestore

example of an Access Control List in Firestore

Q&A Chat