Google Apps Connector

Last modified 11 Jan 2023 15:14 +01:00

Identity connector for Google Apps platform

Development statusdormant (not developed actively, but still somehow maintained)
Support statussupportable
Support provided byEvolveum, community
Target systemsGoogle Apps SAAS platform
ProtocolGoogle API / OAuth 2.0
Source code


Connector was introduced as a contribution to midPoint project by AMI Praha.

Google Apps Connector contains support for ACCOUNT and GROUP (mailing lists entities). However, as the original connector contains support for more entity types, not all of those were fully tested with midPoint. Current focus is on ACCOUNT entity.


Google Apps is a Software-as-a-Service platform (SaaS), that provides email, calendar, documents and other services. This connector uses the Google Apps provisioning APIs to add, modify and delete user accounts and email aliases.

Premium only

Please note that only the Premium (paid) or Educational versions of Google Apps provide access to the provisioning APIs.

More information on Google Apps as well as Google user management console can be found here.

Supported Operations

The Google Apps connector supports the following operations:

  • Create

  • Delete

  • Get

  • Schema

  • Search

  • Test

  • Update

  • Validate


The following table lists all the configuration properties you can specify when setting up the Google Apps connector:

Configuration Property Required Type Default Value Description




Internet domain name. See




Client identifier issued to the client during the registration process.




Client secret issued to the client during the registration process.




The refresh token allows you to get a new access token that is good for another hour. Refresh tokens never expire, they can only be revoked by the user or programatically by your app.



Stock Keeping Units (SKU) ID. Typical value: Google-Apps-For-Business. For more information see




Automatically add license to user after create




Product ID. Typical value: Google-Apps. For more information see

Getting started

Building the connector

Download and build the project with usual:

mvn clean install

Import connector JAR file to one of these locations:

  • midPoint WEB-INF/lib

  • application server (e.g. Tomcat) lib directory

  • icf-connectors directory in midPoint home

Creating resource

Sample resource XML can be found here.

Configuring resource

  1. Obtain credential codes for Google API. Log in to Google API Manager with your Google admin account.

  2. If you have not done already - create new project and then create new credentials for "OAuth client ID" (and "other" option).

  3. Make sure API access is enabled for at least: Admin SDK and Enterprise License Manager API.

  4. Retrieve credentials in JSON by click on the icon as follows:

    image2016 8 7 13 11 55
  5. Open JSON file and make note of following properties: "client_id":"" and "client_secret":"48zv5mfYZZZZw3QTcb8RBXXX"

  6. In order to authenticate with Google you will also need refreshToken. To retrieve it, go to your connector-googleapps java project, run the main and confirm requested action in your web browser.

    connector-googleapps> mvn exec:java -Dexec.mainClass="com.evolveum.polygon.connector.googleapps.Main"
    Generate credentials for GoogleApps Connector
    You have to created and registered App in Google API and Google API enabled.
    Add these credentials into configuration fields in Google Apps Connector. See readme.txt.
    Enter Client ID: <censored>
    Enter Client Secret: <censored>
    Please open the following address in your browser:<censored>
    Generated credentials:
      "clientId" : "<censored>",
      "clientSecret" : "<censored>",
      "refreshToken" : "<censored>"
  7. You now have all the information you need to configure the connector resource in the midPoint.

Was this page helpful?
Thanks for your feedback