Getting error for `gcloud auth print-identity-token` command on my gcloud shell

Viewed 407
gcloud auth print-identity-token
ERROR: (gcloud.auth.print-identity-token) No identity token can be obtained from the current credentials.

On gcloud auth list, I can see my account as active account(user account). I am trying this on cloud shell. Note - This was working earlier, I was able to generate the JWT Token from this command.

2 Answers

This issue is already reported in this PIT thread and you can track and follow up here.

Hi Kumar Shaswat,

Today I have tried this again with Google Cloud SDK 310.0.0 and found in Cloud Shell I can run the command$ gcloud auth print-identity-token.

Thus requesting you to check the $ gcloud version and retry it.

Related