Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase - insufficient permissions, even though I am project owner

I am trying to export Firebase user accounts using the Firebase CLI by calling this command: firebase auth:export save_file.json --format=json --project=MyProjectName

This returns the following error message:

Error: Authorization failed. This account is missing the following required permissions on project MyProject:

  firebase.projects.get
  firebaseauth.users.get

My account has Owner level permissions which has "Full access to all resources" according to the GCloud IAM settings page.

How could an Owner account be missing the required permissions? And how do I get past this error to perform the export?

I have confirmed that I am logged into the correct account in CLI. When I execute firebase login it returns Already logged in as ****@gmail.com which is the same account I have Owner level permissions for (and which is the account that created the project.)

like image 512
ASDFQWERTY Avatar asked Feb 05 '19 01:02

ASDFQWERTY


Video Answer


1 Answers

The command needs the project ID instead of the project name.

The error makes it sound like a permissions issue (because technically it is--just not for the project I was intending to access), but the underlying cause is that the project argument needs to be the ID instead of the name.

So the command should have included --project=myprojectid-1234 instead of --project=MyProjectName

like image 145
ASDFQWERTY Avatar answered Nov 15 '22 05:11

ASDFQWERTY