Workstation Permission Denied when Google user is not Primary Google Account on Browser

I recently received an email saying I now have permission to access Android Studio Cloud. However, when I open the app, I still get this error: “401: The Workstation does not exist or your currently signed-in account does not have access to it.”

For context, my professional Google account which I use for development, is the second account on my computer. I suspected this might be the issue, especially since opening Firebase Studio always defaults to my personal Google account - which is the first/primary, and I have to manually switch to the professional one.

To test this, I switched to a different profile on my computer where my professional account is the primary Google account, and my personal one is secondary. After doing that, it worked!

Could someone help resolve this issue properly?

  • Verify IAM Permissions: Even if you have general access to Android Studio Cloud, you need the correct permissions for the specific project or workstation you are trying to access.
  • Identify the Google Cloud Project: Determine the specific Google Cloud project that your Android Studio Cloud workstation is associated with. This information should ideally be in the initial email you received granting access.
  • Access the Google Cloud Console: Go to the Google Cloud Console.
  • Select the Project: Make sure you have selected the correct Google Cloud project from the project dropdown menu at the top.
  • Navigate to IAM & Admin: In the left-hand navigation menu, go to IAM & Admin and then select IAM.
  • Find Your Professional Account: Look for your professional Google account in the list of principals.
  • Check Assigned Roles: Verify that your professional account has the necessary roles to access the Android Studio Cloud workstation. This might involve roles like:
    • roles/workstations.user
    • Potentially other roles depending on the specific setup of your organization’s Google Cloud environment.
  • If you don’t see your account listed or if the roles seem incorrect, you’ll need to contact the administrator of your organization’s Google Cloud project to request the necessary permissions.
  • Check the Billing Account: An active billing account must be associated with the Google Cloud project for resources to be used.
  • Access Billing in the Cloud Console: In the left-hand navigation menu of the Google Cloud Console, go to Billing.
  • Verify Project Linkage: Ensure the Google Cloud project associated with your Android Studio Cloud workstation is linked to an active billing account. You can see a list of linked projects on the Billing overview page.
  • If there’s no billing account linked or if the linked account is incorrect, you’ll need to work with your organization’s Google Cloud administrator to resolve this.