How do I create a Google Service Account?

Article #: Product Castle
# Connect for Chromebooks Glamis onwards


In order to successfully connect your Smoothwall to your G Suite domain, you must create a Service Account in the Google Developers Console.

Google Service Accounts grant access for that machine or appliance to Google. In the most basic of terms, the Service Account you create here is Smoothwall's passport. The Client ID (downloaded in readiness for authorizing the Service Account) is the passport number. Without these, the Smoothwall cannot "cross the boarder" into Google to access usernames, groups, and organizational units.

The account allows the Smoothwall to read your G Suite domain user and group information. The Service Account must be downloaded in a JSON format.


Note: Disclaimer: The following instructions are correct at the time of writing. Google feature names and links may change over time.

  1. Go to and log in as an admin user.
    If it is the first time you log in as a new user you will be prompted to accept the Google terms and conditions.
  2. Create a new project (IAM & Admin > Projects > CREATE PROJECT). You cannot reuse an existing project if you have created any previously.
  3. Note: If you have previously created projects under the logged in username, you may find the menu options are project_name > Create a project, where project_name is a previously created project.

  4. Enter a suitable Project Name, for example, Smoothwall Login.
  5. Click Create.
  6. The project name appears in the top left when it has been successfully created.

  7. Click the menu icon at the top left, and select IAM & Admin.
  8. Click Service accounts.
  10. Configure the following:
    • Service account name — Enter an appropriate name for this service account.
    • Role — Do not select anything for Role.
    • Service account ID — This automatically filled in, based on the Project name and Service account name.
    • Furnish a new private key — Select this option.
    • Additional parameters are made available to you:

      From Key type, select JSON.

    • Enable G Suite Domain-wide delegation — Select this option. Without this, the Client ID will not be generated.
  11. If a consent screen has not been configured previously, you are prompted to configure a Product name for the consent screen.
  12. A consent screen is only displayed to users when Connect for Chromebooks verifies the user credentials with Google — see How to Setup Google Verification with Connect for Chromebooks. Users must grant permission for their credentials to be checked with Google. Even though this is not needed when Connect for Chromebooks extension to trust the user-supplied G Suite domain credentials, you cannot leave this setting blank.

    Enter Connect for Chromebooks.

  13. Click Create.
  14. The private key, in JSON format, is downloaded to your computer. Keep this in a safe place as you cannot download it again from the Google console.

    The newly created service account appears in the Service account page.

  15. Click View client ID on the far right for the newly created service account.
  16. Make a note of the Client ID. This is needed when you authorize the service account.
  17. Client IDs are a string of numbers, for example, 100420452394421236687.

    You do not need to click Save at this point as no changes have been made.

  18. Click > API Manager > Library.
  19. From the Google Apps APIs list, click Admin SDK.
  20. Tip: If the Admin SDK link is not immediately obvious, enter Admin SDK into the search bar at the top of the section.

  21. Click Enable API.

What's Left To Do?


Last updated: Author: Contributions by:
23rd November 2016 Tanja Ehrhardt Samantha Nair