401 PERMISSION_DENIED: Cannot use Firebase Studio Workstation or Export Code

"Hello everyone,

I’m facing a persistent 401: PERMISSION_DENIED error when trying to fully access and use my Firebase Studio workstation to export my application code.

My Goal: To export my ShopeeBoost application code from Firebase Studio and deploy it to Firebase Hosting.

My Account: Son.iPad2@gmail.com

The Problem: While I can see my “ShopeeBoost” workspace on the Firebase Studio (Preview) dashboard (studio.firebase.google.com/studio), when I try to fully connect to the underlying workstation (presumably to access its terminal or export code), I receive the following exact error:

401: The Workstation does not exist or your currently signed in account does not have access to it. <eye3 title='/Workstations.GenerateAccessToken, PERMISSION_DENIED'/> APPLICATION_ERROR;google.cloud.workstations.v1beta/Workstations.GenerateAccessToken;Permission 'workstations.workstations.use' denied on 'projects/5120269316/locations/asia-east1/workstationClusters/workstation-cluster/workstationConfigs/monospace-config-web/workstations/firebase-studio-1751534852415' on port '80';AppErrorCode=7;StartTimeMs=...

What I’ve Checked/Tried:

  1. I have successfully logged into the Google Cloud Console and Firebase Console with Son.iPad2@gmail.com.
  2. My account Son.iPad2@gmail.com has the Owner role for a related Firebase project (shopeeboost-25bn6).
  3. However, the error clearly states the permission is denied on projects/5120269316. When I try to search for or select project 5120269316 in the Google Cloud Console’s project selector, it shows “No resources to display.” This suggests my account does not even have visibility to that specific project.

My Question:

  • What specific IAM roles and permissions are required to fully access and use a Google Cloud Workstation (like firebase-studio-1751534852415) from Firebase Studio?
  • Given that I cannot even see or select projects/5120269316 in the Google Cloud Console, how can I (or an administrator) grant the necessary workstations.workstations.use permission for this specific workstation or project?
  • Is there a different way to export my code from this Firebase Studio workstation if I cannot resolve this permission issue immediately?

Any guidance or troubleshooting steps would be greatly appreciated.

Thank you in advance for your help!"