Search code examples
firebasepermission-deniedfirebase-console

Added user to firebase, is unable to see/edit DB


I have created a simple db structure Firebase. And I added a user to it with a google account.

But when I login to google with that account and go to: https://console.firebase.google.com/project/[project-name]/database/data

I get the message:"There was an error completing your request". When i look in the network tab of the chrome inspector I see:

403 "Check Policy: User does not have permission to execute the specified operation."

Of course I checked Firebase's status page. And all is running normal.

Is there somebody that has a clue what could be the case?


Solution

  • When you add a user in the Auth panel of the Firebase console that is a user meant for use in your apps. These users (thankfully) don't have access to the Firebase console of your project.

    To grant a collaborator access to your Firebase console, add them from the settings menu:

    1. Click the Settings icon next to the Overview menu Adding collaborators from the Firebase console
    2. Click Users and permissions to open the Cloud IAM & Admin console.
    3. Click Add at the top of the list to show a popup. Adding collaborators from the Cloud console
    4. Type the email address of the user in the Members box.
    5. Select a role in the Roles dropdown. I usually pick Project > Owner, Project > Editor, or Project > Viewer.
    6. Click Add at the bottom of the popup.