Setting up Google Directory Integration

 

Please note that your subscription plan determines the specific set of features available to you, which may result in differences between what you see and the images presented in this article. You may also have existing Google Cloud projects or Service accounts set up, and that may also affect what you see on screen.

You must be a Global or Location Admin logged into your web admin portal to configure this integration on the Greetly side. To configure the Google side, you will need to have the appropriate permissions for your organization, including access to authorize domain-wide delegation.

Creating a Project

It should be noted that you can use an existing Google Cloud project for this integration.  

Open the Google Cloud Platform dashboard for your organization. 

Select the dropdown menu beside Google Cloud Platform.

VM - Google Directory - Dashboard - Greetly user sync demo - April 2025-1


A new window then opens.

Select New Project.

VM - Google Directory - New project - April 2025

Enter a name for your project. For the purposes of this article, we have chosen Greetly User Sync Demo.

VM - Google Directory - Create new project - April 2025

Activating the Admin SDK API

Enter Admin SDK API into the search bar in the Cloud Platform dashboard and then select this option from the dropdown.

VM - Google Directory - Find SDK API - April 2025-1A new window then opens. 

Select the blue button.

  • If the button displays Enable, you will need to wait for the API to be enabled.
  • If the button displays Manage, then you will be moved onto the next step. 

VM - Google Directory - Admin - SDK API - Enable - April 2025 

The APIs & Services screen then opens.

If you are not automatically redirected to the APIs & Services screen, check out the Troubleshooting section here for more guidance. 

Creating the Service Account

From the APIs & Services screen, select Credentials.  

VM - Google Directory - Credentials - April 2025

The Credentials screen then opens. 

Select Create Credentials.

VM - Google Directory - Create credentials - April 2025

Then select Service account from the dropdown menu.

VM - Google Directory - Select Service account - April 2025

Enter a name for the Service Account.

For the purposes of this article, we chose “Greetly sync demo service account”.

Select Done.

VM - Google Directory - Service account - Done - April 2025

You will then be redirected to the Credentials screen.

Select the Service account you just created.  

VM - Google Directory - Select Service account - April 2025-1

The Service account page then opens.

Expand the Advanced settings dropdown and copy the Client ID number as you will need it later on in the process.

VM - Google Directory - Service Account - Advanced options - April 2025

Then select the Keys tab.

VM - Google Directory - Service Account - Keys - April 2025-1

From the Keys tab, expand the Add Key menu, and select Create new key from the dropdown.

VM - Google Directory - Service Account - Add new key - April 2025

The Create new key window opens.

Ensure the key type is set to JSON.

Then select Create.

VM - Google Directory - Service Account - Create new key - April 2025

The private key is automatically saved to your device as a .json file.

Take note of this file's location, as you will need it later on in the process.

VM - Google Directory - Key saved - April 2025-2

Configuring Domain-wide Delegation for the Service Account

Return to the Google Cloud Platform dashboard.  

Enter API controls into the search bar, and then select this option from the dropdown.

VM - Google Directory - Admin - Home - API controls - April 2025

The API controls screen then opens. 

Select Manage domain wide delegation.

VM - Google Directory - API controls - Domain wide delegation option - April 2025

The Domain wide delegation screen then opens.

Select Add new to open a pop-up window. 

VM - Google Directory - API controls - Domain wide delegation - Add new - April 2025-1

Enter the Client ID you copied earlier.

Insert the three fields from the links below into the field Oauth scopes (comma-delimited).

VM - Google Directory - API - Add new ID - April 2025-1

Setting Up the Integration in Greetly

Log into your Greetly web admin portal.

Select App Settings from the top navigation bar.

VM - home - top nav bar - App Settings - Aug 2024

The App Settings screen then opens to the Check-in options tab.

Select the Location tab.

VM - App settings - Check-in options - Location tab - Oct 2024

Select Location Integrations.

The Location Integrations panel opens on the right-hand side of the screen.

Toggle Enable Google Directory Integration on.

VM - Google Directory - Greetly - Enable Google integration - April 2025

Open the JSON file that you saved earlier.

Copy and paste the entire contents of this file into the field Google Directory Service Account json data.

VM - Google Directory - Greetly - JSON data box - April 2025-1

Enter the email address for the account created to set up the integration into the field Google Directory admin email.

Enter the term "user, group" into the Google Directory scopes field.

VM - Google Directory - Greetly - Email and scopes boxes - April 2025

You are now ready to sync users.

Syncing Users

Options for syncing users include:

  • All users
  • Users in selected groups
  • Organizational units
  • Both groups and organizational units

Sync All Users

If you need to sync all users, leave the Google directory groups field blank and skip to Syncing Users in Greetly.

Syncing Groups

Return to your Google Admin account.

Under Directory, select Groups.

VM - Google Directory - Directory - Groups - April 2025-1

To sync a group, open its management page and copy its URL.

VM - Google Directory - Google Admin screen - Groups - April 2025

Enter the information that follows "groups/" from the URL into the Google Directory Groups field. To enter multiple groups, separate each entry with a comma, as shown in the example below. 

VM - Google Directory - Greetly - Groups - URL entry - April 2025

Now head to this step. 

Sync Organizational Units

To sync only organizational units, select Organizational units under Directory on your Google Admin screen. 

VM - Google Directory - Directory - Org units - Closeup - April 2025

Then select the organizational units that you’d like to sync. For the purposes of this article, we have used "Greetly test".  

VM - Google Directory - Google Admin screen - Test Greetly - April 2025-1

Syncing Users in Greetly

Return to the Greetly web admin portal.

On the Integrations Settings panel, add a backslash (/) to the organizational unit name and enter it into the Google Directory organization units field.

VM - Google Directory - Greetly - Add group - April 2025

To enter multiple groups, separate each entry with a comma.

Remember to Save.

Then select Manage Users from the top navigation bar.

VM - home - top nav bar - manage users - Aug 2024-1

The Manager Users screen then opens.

Select Sync from Google Directory.

VM - Google Directory - Users screen - Sync with Google - April 2025

Please note that it may take some time to sync larger directories. 

Troubleshooting

If you’re having trouble setting up the integration, one option is to create a new Google Cloud Platform and try again. 

If users do not appear in the directory, view the logs located near the bottom of the Location tab screen. 

VM - Google Directory - Greetly - Logs - April 2025

Possible error message may include:

  • Google Directory users import completed. Added 0 users. At [time in UTC]
    • In this case, your groups or organizational units may not contain any users
  • Google Directory users import completed with error: undefined method `[]' for nil:NilClass at [time in UTC]
    • In this case, you may have inputted an invalid group ID.

If you need further assistance setting up this integration, please contact Greetly support.