Access rights in firebase database/firestore - firebase

I need to grant permissions to a user for my Firebase project. But this user should only have access to adding data on Real-Time Firebase Database. I think it should be done here:
User can only add and delete data in firebaseDatabase and nothing more here:
How do I set permissions for this user?

There currently is no way to give product-level permissions to a collaborator on the Firebase console. Either they have access to the console, or they don't have access. You can give them read-only access, but that doesn't sound like what you need.

Related

How to find which user delete firestore collection from firestore console

We gave 10 users to access our firebase console. Someone delete our main collection in firestore.
Is there a way to find out which user removes it from these 10 users?
firebaser here
There currently is no way to find out which collaborator on the project or which Authentication user deleted the collection from Firestore. The feature has been considered though, so I recommend you file a feature request to chime in.
you should never give access for users to your firebase console only developers and app owners should be allowed to access it. but if you want to track users activity you can use Firebase analytics event logging.Events are triggered when users take actions in your app for more informationFirebase analytics event logging

Can I Grant a User Permission to Edit a Firestore Collection?

I am building a PWA (Web-App) and would like my client to be able to enter data such as new events into the Cloud Firestore, without me having to create a UI (ie. using the Firebase Console with permissions to only edit a collection).
It would also be alright to just grant permission to the whole Firestore for this user (as it's his data). I'm thinking of something like phpMyAdmin.
Would the user need a gmail-Account? I found something in the Project Settings (Users and Permissions - IAM).
Unfortunately this isn't possible in the Firebase or Google Cloud console. A user either has edit permission on Firestore as a whole, or they don't.
The console is focused on developers, and not a great fit for the type of use-case you're describing. The most common approach to such a use-case is to write a custom admin app for these users. If you don't feel like that, look at some of the existing admin panels or content management systems that build on top of Firebase out there.

Preventing developer access to Firebase Realtime Database

is there any way for a developer who has access to the Firebase console to be restricted access to the real-time database, preventing them from reading and writing any data directly?
When you add a collaborator to the Users and permissions panel of the Firebase console, you can set what permissions they have. The defaults are Owner, Editor, and Viewer, with the latter granting read-only access to all (Firebase and Cloud) products in the console.
You can also choose Assign Firebase role(s), in which case you can select per Firebase product what permission the user has. In this case you can exclude them from having access to the Firebase Realtime Database.

Assign specific role (Authentication) to a Firebase Console user

I have a Firebase app, and I want to know if it's possible to restrict a Firebase Console user to access only to the "Authorizations" tab. (to CRUD users). The access must be by the Firebase (regular) Web Console
Especially, I don't want the user to see the database data via the web console. Is that possible? I've managed to give him access to the entire project, and he can do anything I can do (is an Admin).
I haven't found nothing about this in the docs / searching.
firebaser here
Collaborators on a project currently have access to the entire Firebase Console. You can limit to having read-only access, but you currently can't limit what panels they have access to.
We've heard the request before and know this would expand the usefulness of the Firebase Console. I recommend that your file a feature request, to add your vote.

Firebase Authentication database interaction

Is there a way to access the "Authentication" database in Firebase?
I'm building an app which uses the Firebase anonymous authentication
I would like to access the Firebase "Authentication" database to check the last login of the user.
Tried looking through the web but didn't find any reference.
Can someone point me to the right direction please?
There is no API for you to access the timestamp of when a specific user last logged in. Most developers end up storing this type of information in their Firebase Database, for example with the structure outlined in the section structuring your database.
Firebase launched the admin node.js sdk. You can look users by uid or email and get their metadata like creation date and last login date.
https://firebase.google.com/docs/auth/admin/manage-users

Resources