Home life · Updated
How to Give Access to a Firebase Project
Quick answer In the Firebase console, open Project settings, go to the Users and permissions tab, and click Add member to invite someone with a specific role.
What You’ll Need
- A Google account that is an Owner of the Firebase project (the person who created it or was granted Owner).
- The email address of the person you want to add (must be a Google account or a Google Workspace account).
- Access to the Firebase console (console.firebase.google.com).
Step-by-Step
- Open the Firebase console. Go to console.firebase.google.com and sign in with the Google account that owns the project. If you have multiple projects, select the one you want to share from the project dropdown at the top of the page.
- Open Project settings. Click the gear icon (⚙️) next to “Project Overview” in the left sidebar, then select “Project settings” from the menu. This opens the settings page for your project.
- Go to the Users and permissions tab. In the Project settings page, you’ll see several tabs at the top (General, Cloud Messaging, etc.). Click on “Users and permissions” (or “Users” in some versions). This tab shows a list of current members and their roles.
- Click “Add member”. On the Users and permissions tab, click the “Add member” button (usually blue, in the top-right corner). A dialog box will appear.
- Enter the email and choose a role. In the dialog, type the person’s Google account email address. Then, use the role dropdown to select the appropriate role (see Tips for role descriptions). You can add multiple emails at once by separating them with commas or pressing Enter after each. After selecting the role, click “Add member” to send the invitation.
- Confirm the invitation. The person will receive an email invitation. They must click “Accept invitation” in that email to join the project. Until they accept, they won’t have access, even though they appear in the member list with a “Pending” status.
Common Mistakes
- Adding a non-Google email. Firebase requires a Google account. If you try to add an email like @yahoo.com or @outlook.com, the invitation may fail or the person won’t be able to accept it. Make sure the email is a Gmail address or a Google Workspace email.
- Giving too much access. Choosing “Owner” for someone who only needs to view data is a common mistake. Owners can delete the project, manage billing, and change settings. Always start with the least privilege needed.
- Forgetting to check pending invitations. If the person says they never got the email, check the Users and permissions tab. If their status is “Pending”, you can resend the invitation by clicking the three-dot menu next to their name and selecting “Resend invitation”.
- Confusing Firebase roles with Google Cloud IAM roles. The roles in Firebase (Owner, Editor, Viewer) are simplified versions of Google Cloud IAM roles. If you need more granular permissions (like only access to Firestore), you’ll need to use Google Cloud IAM, which is a separate step.
Tips
- Understand the roles:
- Owner: Full control, including billing and project deletion. Only give this to people you trust completely.
- Editor: Can view and edit all Firebase resources, but cannot manage members or billing. This is the most common role for developers.
- Viewer: Can only view data and settings. Good for stakeholders or auditors.
- Use Google Groups for teams. Instead of adding individual emails, you can add a Google Group email (e.g., dev-team@yourdomain.com). This makes it easier to manage access when team members change—just add or remove people from the group.
- Check the “Invite by link” option. In some versions of the Add member dialog, you can generate an invitation link that anyone with a Google account can use to request access. This is useful for large teams, but be careful—anyone with the link can request access, and you’ll need to approve each request.
- Review permissions regularly. Periodically go to Users and permissions to remove people who no longer need access. This reduces security risks.
Troubleshooting
- Invitation email not received. Ask the person to check their spam folder. If it’s not there, resend the invitation from the Users and permissions tab. Also, confirm the email is correct and is a Google account.
- Person can’t accept the invitation. If they click the link and get an error, they might be signed in to a different Google account. Ask them to sign out and sign in with the email that was invited, then try the link again.
- You don’t see the “Add member” button. You must be an Owner to add members. If you’re an Editor or Viewer, you won’t see this option. Contact the project Owner to request a role change.
- Role changes don’t take effect immediately. Sometimes it takes a few minutes for permission changes to propagate. If the person still has old access, ask them to refresh the Firebase console or wait a few minutes.
- Adding a member fails with an error. If you get an error like “Invalid email” or “User not found”, double-check the email for typos. Also, ensure the person has a Google account. If the issue persists, try adding them to a Google Group first, then add the group.
Frequently Asked Questions
Can I give access to someone without a Google account?
No. Firebase uses Google accounts for authentication. The person must have a Gmail address or a Google Workspace account. If they don’t, they’ll need to create a free Google account first.
What’s the difference between Firebase roles and Google Cloud IAM roles?
Firebase roles (Owner, Editor, Viewer) are simplified and apply to the entire Firebase project. Google Cloud IAM roles are more granular and can be scoped to specific resources like Firestore or Cloud Functions. For most cases, Firebase roles are sufficient, but for advanced needs, you may need to assign IAM roles in the Google Cloud Console.
Can I give access to only one Firebase service (e.g., only Firestore)?
Yes, but not through the Firebase console’s Users and permissions tab. You need to go to the Google Cloud Console (console.cloud.google.com), select your project, and use IAM & Admin to assign roles like “Cloud Datastore User” or “Firebase Realtime Database Viewer” to specific members. This is more advanced.
How do I remove someone’s access?
Go to Project settings > Users and permissions, find the person in the list, click the three-dot menu next to their name, and select “Remove member”. They will lose access immediately.
Can I change someone’s role after they’ve been added?
Yes. In the Users and permissions tab, click the three-dot menu next to their name and select “Edit role”. Choose a new role and save. The change takes effect quickly.
What happens if the project owner leaves the company?
If the owner leaves and no other owner remains, the project could become inaccessible. To prevent this, always have at least two owners. If the owner is gone, you may need to contact Firebase Support to recover access, but this can be difficult. It’s best to plan ahead.
Related
- Naval Postgraduate School Email: How to Access It
- Chief of Staff Eastern Naval Command: Role Explained
- Cruise Ship Staff Positions: Full List of Jobs
Sources: Firebase Help. Menus and buttons can differ slightly by version. Spotted something out of date? Tell us.