How to Create Google Service Accounts

Published in: Google Cloud

This step by step tutorial will walk you through the steps to create a Google service account using the Google developer console. We’ll also see how to enable Google APIs that our application will access via the service account credentials.

  1. Go to and create a new project. Let’s call this Service Accounts Tutorial.


  1. Go to the Library section and enable a couple of Google APIs and service that you will use in the project.

API Manager

  1. Enable the Admin SDK. This will allow the Google Apps domain to manage the users in the domain.

Admin SDK

  1. Go to the manu, choose IAM & Admin, Service Accounts and create a new service account.

Set the Role as Service Account Actor, choose JSON for the private key, enable G Suite Domain-wide delegation. This is essential since we would like the application to access the data of all user’s in the G Suite domain without manual authorization on their part.


The JSON file that contains the client credential will download to your computer. Store it in a safe location because you will not be able to download it again.

The service account has been successfully created. The JSON fill will the Private key and the Client Email that will use in our application. The file will also have the Client ID that will need to whitelist this application in the Google Apps admin console.


In the next chapter, we’ll see how the G Suite domain administrator can setup the OAuth2 application inside admin console for domain wide delegation.

Published in: Google Cloud

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
Amit Agarwal

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch