I refer to this page to operate.
I have a account, and I run the following commands using the Google Cloud SDK Shell, but the json file is my friend's account. I do not have permission.
So I want to exit the current user,and login with my friend's account, but now how to exit the current user and change an account to login?
Welcome to the Google Cloud SDK! Run "gcloud -h" to get the list of available commands.
C:\Program Files (x86)\Google\Cloud SDK>gcloud iam service-accounts create XXX ERROR: (gcloud.iam.service-accounts.create) The required property [project] is not currently set. You may set it for your current workspace by running:
$ gcloud config set project VALUE
or it can be set temporarily by the environment variable [CLOUDSDK_CORE_PROJECT]
C:\Program Files (x86)\Google\Cloud SDK>gcloud projects add-iam-policy-binding dynamic-return-XXX --member "serviceAccount:[email protected]" --role "roles/owner" ERROR: (gcloud.projects.add-iam-policy-binding) User [[email protected]] does not have permission to access project [dynamic-return-XXX:getIamPolicy] (or it may not exist): The caller does not have permission
C:\Program Files (x86)\Google\Cloud SDK>