Table of Contents:
- Overview
- Integrating Google Workspace with CanIPhish
- Syncing Employee Lists from Google Workspace
- Syncing Only Part of Your Directory
- Appendix A: Additional Information on Google API Scopes
- Appendix B: Troubleshooting
Overview:
The Google Workspace Employee Directory Integration enables you to synchronise one or more Google Workspace directories to your CanIPhish account. When an employee is added to a Workspace group, or to your Google Workspace if a list syncs all users, that employee will be automatically synchronised to the relevant CanIPhish employee lists. This document describes how to synchronise Workspace users and groups to CanIPhish. This will automate the process of adding or removing employees from phishing and security awareness training campaigns.
Note: It is required to have a Google Workspace Account.
Important Note: If you've setup platform white-labelling for your CanIPhish tenant, please follow this setup guide.
Integrating Google Workspace with CanIPhish
To integrate your Google Workspace Directory with CanIPhish, log in to your account and navigate to Employees > Directory Sync.
Click Google Workspace and then input a unique Directory Name. Once provided, click Sync Directory.
If your browser doesn't already have an active Google session, you'll be prompted to login via the Google login portal. Once signed in, you'll be prompted to authorise the CanIPhish Google Client to access several APIs within your Google account. Make sure all scopes are ticked and then click 'Continue' to authorise the access.
Note: Access to all scopes is required to successfully setup the integration. Click here to understand in further detail what information we're accessing.
Once authorised, you'll be immediately redirected to the CanIPhish Employees page and notified on the status of the integration. You should observe a success notification on the top right hand side of your screen, along with directory being visible as 'Active'.
Syncing Employee Lists from Google Workspace
Once the directory integration is configured, you will be able to create one or more employee lists that sync everyone in that directory, or only the members of chosen groups. To setup your first employee list, exit the directory synchronisation view and click on New Employee List.
Specify an Employee List Name, click on Import From Directory and select the Directory synced in the previous step. Wait up to 30 seconds for the Directory Groups to load, then choose who to sync under Groups to sync:
- All users in this directory syncs everyone in your Google Workspace who isn't suspended or archived and has a mailbox. You don't need to create or maintain a Google group, and new starters are added at the next sync.
- One or more groups syncs the members of those groups, including members of groups nested up to two levels below them.
Then click Sync Directory. To sync only part of your directory, such as one organisational unit, see Syncing Only Part of Your Directory.
Note: For Google Workspace integrations, the Directory Attribute Mapping cannot be changed. If this negatively impacts your organisation, please contact CanIPhish and we'll be happy to investigate this.
Once synchronised your employees will appear in the table beneath the sync button. When happy that the required employees have been synchronised with CanIPhish, simply click Save.
All done!!! CanIPhish will synchronise any changes in your directory to your CanIPhish employee listing every 24 hours, including adding new starters and removing people who have been deleted or suspended in Google Workspace. To action changes earlier than that, simply manually update the employee listing and resynchronise the directory group across.
Syncing Only Part of Your Directory
To sync only some of your directory, such as one organisational unit (OU), click Show filters and exclusions beneath the attribute mapping before you click Sync Directory.
- Under Filter 1, choose OrgUnitPath.
- Under Matches any of, type the OU's path as it appears in the Google Admin console, then press Enter. Paths start with a forward slash:
-
/Staffmatches people placed directly in the Staff OU. -
/Staff/*matches people in any OU nested under Staff, but not in Staff itself. Add both/Staffand/Staff/*to cover the OU and everything under it. -
/Staff*also covers the OU and everything under it, but it would also match an OU whose name starts the same way, such as/Staffing.
-
- To leave an OU out, use a separate filter (for example Filter 2, also set to OrgUnitPath) and start the value with an exclamation mark, such as
!/Contractors*. Keep it out of the filter that lists the OUs you want: within one filter an employee only needs to match one value, and a value starting with ! matches everyone outside that OU.
Filters ignore upper and lower case, and an employee must match every filter you set. You can combine All users in this directory with filters, Excluded groups and Removed employees. For more on wildcards, date filters and NOT operators, see Employee List - Directory Filtering.
Appendix A: Additional Information on Google API Scopes
We'll be accessing APIs that allow us to read information relating to directory groups, group members and individual employees. Additionally, we'll read information from your google profile so we can determine what user has authorised the API access, which will then be readable within your CanIPhish tenant. The below table outlines the scopes we're accessing in detail:
DirectoryService.Scope.AdminDirectoryUserReadonly
Provides CanIPhish with access to read employee information such as first names, last names, email addresses, organisation names and job titles. All of which are used to personalise phishing campaigns and make them appear realistic.
DirectoryService.Scope.AdminDirectoryGroupReadonly
Provides CanIPhish with access to read group information such as group names and IDs. This is used to provide you with the option of targeting a subset of users within your environment.
DirectoryService.Scope.AdminDirectoryGroupMemberReadonly
Provides CanIPhish with access to read group member information such as email addresses of users associated to a group. This information is used to determine what user information needs to be read.
PeopleServiceService.Scope.UserinfoProfile
Provides CanIPhish with access to read the first name and last name of the user authorising the CanIPhish client application.
PeopleServiceService.Scope.UserinfoEmail
Provides CanIPhish with access to read the primary email address of the user authorising the CanIPhish client application.
Appendix B: Troubleshooting
Are you experiencing any issues with the initial integration or perhaps receiving an error message saying this directory has already been synced? Please follow the below steps to attempt to resolve this:
- Go to the third-party apps & services page in Google: https://myaccount.google.com/connections
- Locate the CanIPhish Directory Integration app:
- Click into it, scroll down and click the "Delete all connections..." button:
- Go back into your CanIPhish account and attempt the Directory sync again
Comments
0 comments
Please sign in to leave a comment.