Users Collection Rule Disappearing in FlutterFlow Libraries, Any Solutions?

Database & APIs

Hi FlutterFlow community, hope you're all doing well!

I'm having an issue with FlutterFlow libraries.

When converting a Firestore collection or sub-collection that used the User Collections rule, it disappears (see attached). The same happens when trying to create a users collection with that rule.

According to FlutterFlow docs, Users Collection allows access only to users whose authentication ID matches the document ID. But this rule isn't available in the library.

Has anyone found a solution? Either a way to bring the Users Collection rule into the library or a workaround—without manually adding rules in Firestore (since that's not sustainable after every redeploy)?

Thanks!

What have you tried so far?

I tried replacing the Users Collection rule with Tagged Users, checking if the uid field matches. However, this doesn’t work because you can’t create a user (or any sub-collection) this way.

In the Users Collection rule, it works because it checks auth.uid against the document’s uid at creation. But with Tagged Users, the field doesn’t exist yet, so the check fails.

Unless I’m missing something, this approach won’t work. Any ideas?

Did you check FlutterFlow's Documentation for this topic?
Yes
2