A2oz

How to Download a Service Account JSON?

Published in Google Cloud 2 mins read

You can download a service account JSON file from the Google Cloud Console. Here's how:

  1. Go to the Google Cloud Console: https://console.cloud.google.com/
  2. Navigate to IAM & Admin: From the left-hand menu, select IAM & Admin.
  3. Select Service Accounts: Click on Service accounts.
  4. Choose your service account: Find the service account you want to download the JSON file for.
  5. Click "Actions" and select "Create Key": Click the three dots next to the service account name, select "Actions", and then choose "Create key".
  6. Choose JSON format: Select "JSON" as the key type and click "Create".
  7. Download the JSON file: The JSON file will download to your computer.

Important:

  • Keep this file secure: The JSON file contains sensitive information, so store it securely.
  • Use a unique file name: Avoid using generic file names like "key.json" to help you keep track of the different service account files.

This JSON file contains the necessary credentials for your service account to access Google Cloud resources. You can use this file to authenticate your service account in applications and scripts.

Related Articles