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.)