rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { match /artifacts/{appId}/public/data/all_attendance_reports/{documentId} { allow read, write: if request.auth != null; } } }
Understand who can access your data and when.