Sync users from Google Workspace
Connect Hook to Google Workspace by assigning a read-only admin role to Hook's account for your organization, click Verify, then choose which Google Groups or organizational units to sync, so your user list stays current without CSV exports.
Google Workspace directory sync keeps your Hook user list aligned with Google. Once it's connected, Hook pulls the Google Groups and organizational units you choose straight from your Workspace, so you stop chasing CSV exports every time someone joins or leaves.
Hook connects through an account of its own, created just for your organization. Nobody at your company hands Hook a password or a token, and no person's Google account is involved. Instead, a Google Workspace super admin gives that account a read-only admin role, and Hook reads your directory as itself from then on. If the super admin who set it up later leaves, nothing changes.
It takes a few minutes in Hook plus a few minutes in the Google Admin console, and you can split the two halves between people.
Not using a directory?
If your organization doesn't use Google Workspace or Microsoft Entra, you can import users with a CSV instead and manage learners and groups directly in Hook.
Before you begin
- You need the org admin role in Hook. That is who clicks Connect and Verify on the Integrations page.
- You need a Google Workspace super admin. Creating an admin role and assigning it to an account both happen in the Google Admin console, and only a super admin can do them. It can be you or a colleague; Hook shows you everything the super admin needs to copy across.
- Hook reads users, groups, and organizational units, and nothing else. The role you create is read-only. Hook never asks for write access and never changes anything in Google.
- What Hook reads, and why. To expand a selection and to notice when someone has left it, Hook reads your whole directory on every sync: the user list, the group list, the members of the groups you selected, and your organizational unit tree when you selected units. It keeps only the people who belong to something you selected. Users outside your selection are read to work out membership and departures, then discarded; they are never stored in Hook. For the people it keeps, Hook also reads each person's job title, department, and manager, and the manager is who receives that person's manager training reports.
Connect Hook to Google Workspace
Start the connect
Go to Settings, then Integrations. Under Directories, find the Google Workspace tile and click Connect.
If the tile is marked as coming soon, Google Workspace sync isn't available to your organization yet. It's available with full migration; Hook support migrates your organization. See Full migration. If the tile says another directory is syncing or still owns your people, remove that directory first. See Switch to a different provider.

Hook creates a dedicated account for your organization and opens a panel with a link to this guide, then numbered steps with the three privileges the role needs and that account's email address. Copy the email address. The super admin will paste it into the Google Admin console in a later step.
If you aren't the super admin, choose Not a super admin? Copy instructions for a colleague in the panel. It gives you a message to send them, with your Hook organization's name, the steps, and the account email. Hook doesn't send it for you.
The panel can be closed and reopened at any time: the setup appears under Connections on the Integrations page, and Set up reopens the panel. It is fine to leave it while the Google side gets done. The account email does not change.
Create the read-only admin role
In the Google Admin console, go to Account, then Admin roles, and click Create new role. Give it a name you will recognize later, such as "Hook directory read", and continue to the privileges page.

Under Admin API privileges, tick exactly these three:
- Users, then Read
- Groups, then Read
- Organization Units, then Read
Search for "read"
Search the privileges list for the word read, not for "view" or a privilege's name such as "Users". Searching by name can leave the Read checkbox out of the results. Searching for read lists the Read privilege under each service, so scroll through the results to find Users, Groups, and Organization Units.
Leave everything else unticked and create the role. Google has no prebuilt read-only role that covers users, which is why you make one. A broader prebuilt role also works, but Hook only ever uses these three reads.

Assign the role to Hook's account
Open the role you just created, choose Assign service accounts, and paste the account email you copied from Hook. Confirm the assignment.

Assign the role only from the Google Workspace you intend to sync into this Hook organization. Hook binds the connection to whichever Workspace grants the role first, and the Integrations page then shows that Workspace's primary domain so you can check it landed in the right place.
Click Verify
Back in Hook, click Set up on the connection to reopen the panel if you
closed it. Enter
your Google Workspace domain, the primary domain of the Workspace where you
assigned the role (for example example.com), then click Verify. Hook
uses the domain once, to look up your organization's record, then reads that
record, the first page of groups, and the first page of users as its own
account, and nothing more. When all the reads succeed, the connection becomes
Connected, the panel shows the primary domain it bound to, and the group
picker opens next.
If Verify does not succeed straight away, the panel tells you why:
- Hook can't read your directory yet. Google may still be applying the role, or the role or a privilege may be missing. In the Admin console, check that the role exists, that its Privileges tab shows Read on Users, Groups, and Organization Units under Admin API privileges, and that its Admins tab lists Hook's account email. If all of that is right, click Verify again in a few minutes. Google says a role assignment can take up to 24 hours to propagate, though it is usually a matter of minutes.
- The role is most likely not assigned. Hook keeps a 24-hour window from the first time it was turned away, and this one has run out. Make the same checks in the Admin console and click Verify again. The window does not restart; a freshly fixed role usually applies within minutes.
- Preparing your Google account. Hook's account for your organization was created a moment ago and Google is still finishing it on Hook's side. This usually takes about a minute. Carry on with the role assignment and click Verify once it is done.
- Admin SDK API access is disabled for this Google Workspace. Some Workspaces turn off API access to the directory. In the Google Admin console, go to Security, then Access and data control, then API controls, and enable API access. Then click Verify again.
- Hook could not reach Google on its side, or Hook has reached its Google account capacity. Both are on Hook's side. Hook's team has already been alerted, nothing you assigned has been revoked, and there is nothing to change in Google. Try again later, or contact support if it persists.
- Google has no Workspace with that domain. Check the domain you entered against the primary domain shown in the Google Admin console under Account, then Domains. Then click Verify again.
- Google did not answer in time. Nothing changed. Click Verify again in a moment.
Choose groups or organizational units and preview
Once Verify succeeds, Hook opens the picker straight away. It has two tabs, Groups and Organizational units, and you can tick entries on both: Hook syncs everyone in any of them. Nothing syncs until you save a selection. If you come back later, open Settings, then Integrations, and click Manage groups on the directory's Groups & members tab.
Find the groups you want
The picker loads up to 1,000 groups with each group's member count. If your Workspace has more than that, Hook says the list was truncated, so use the search box rather than scrolling. The count is Google's direct-member count, and a group containing the "everyone in your organization" entry expands to every active user in your Workspace, which the preview shows before you save.
Select them and continue
Tick each group you want, up to 200. Past 100, Hook warns that a selection this large takes longer to preview, which is a heads-up rather than a limit. Select-all only applies to the rows on screen, so with a search active it takes the matches you're looking at, not the whole Workspace.
Groups containing other groups carry a badge, because Hook syncs direct members only. To get the people inside a nested group, select that group too.
Pick organizational units
Open the Organizational units tab to sync people by where they sit in your Google Admin console instead of, or as well as, by group. The tab shows your whole unit tree, indented by level, with each unit's full path beside its name. Type in the search box to filter by name or path. A very large tree shows the first 2,000 units and asks you to search for the rest.
- A unit includes everything beneath it. Ticking
/Staffticks every unit inside it and syncs everyone in them, including units created later. Each unit you tick at the top becomes one group in Hook, named after the unit, which you can target in campaigns and training. - Untick a sub-unit to exclude it. Unticking
/Staff/Service Accountstakes that unit and everything inside it out of every ticked unit above it, the top of the tree included. The row says Excluded, and the unit above it shows a dash and names what it excludes. Nothing inside an excluded unit can be ticked on its own. Tick the unit again to bring it back; a unit you excluded inside it stays excluded. A sub-unit created later still syncs unless it sits inside an excluded unit. - An exclusion only trims units. Someone in an excluded unit who is a member of a Google Group you selected still syncs, in that group only.
- A sub-unit can also be its own group. Open the ⋯ menu on a ticked
sub-unit and choose Also sync as its own group when you want it as a
separate group in Hook, for example to target
/Staff/Operationson its own. Its people stay in the group above too. A unit that is its own group, and any unit containing it, can't be unticked until you turn that off from the same menu. Unticking the unit above leaves it syncing as a group of its own. - The top of the tree is your whole organization. Ticking it syncs every active user in your Workspace.
- The tab shows no people counts. Hook works out who is in each unit when you preview, and the preview shows the counts.
Groups, units, and exclusions count toward the same limit of 200. When the selection looks right, click Continue to preview.
Preview and save
The preview lists each selected group and unit with its full member list and a count of how many members it holds. Read down it for two things: external members and shared mailboxes, since Google Groups often include outside collaborators and role addresses that shouldn't receive simulations, and people you expected but can't see, usually a suspended or archived account or someone who changed groups. Neither has to be solved now. Fix it in Google and the next sync catches up.
Suspended and archived Workspace accounts are left out of the preview and of every sync, so they never receive simulations or training. Members from outside your Workspace are included, and their email domains go through domain review before anyone on them can be sent a simulation.
Hook gives itself about 10 seconds to load members. If it runs out of time on some groups, the preview says it's partial. On a large Workspace this often happens to organizational units, because finding a unit's people means reading every user: those units show no count, and the list of people leaving your selection can include people who are in fact staying. People leaving through an exclusion read as not determined rather than zero. You can still save, and the sync, which reads your whole directory, picks up everyone.
A unit with exclusions shows its count without the excluded people and names what it excludes. When you add an exclusion to a directory that already syncs, an Excluding list shows each newly excluded unit, the synced people in it, and who will be deactivated.
Below the groups, Hook lists the email domains those people use. Decide which ones Hook may send simulations and training to. Domains you approve now are ready as soon as the first sync finishes. Anything you skip waits for a decision on the Domains tab later, and people on an undecided domain are synced but held until it's approved. See Authorize recipient domains.
Click Save selection. Hook shows a short progress view while it saves your selection and starts the first sync, then returns you to Integrations. The sync runs in the background, so you can leave the page.
Unsyncing a group or unit deactivates people, it doesn't delete them
If you uncheck a group or unit that's already saved, Hook asks you to confirm. Excluding a sub-unit asks nothing up front, because the preview shows who it affects before you save. Anyone left outside every synced group and unit is deactivated, not removed. Their campaign and training history stays intact, and re-selecting it brings them back.
If you have no groups yet
You don't need Google Groups. If your Workspace organizes people only by organizational unit, open the Organizational units tab and tick the units you want; nothing needs to be created in Google. To bring everyone in, tick the top of the tree.
If you'd rather sync by group and your Workspace has none, the Groups tab shows an empty state asking you to create one. Create a group in the Google Admin console under Directory, then Groups, or at Google Groups, add the people you want in Hook, and come back to Integrations. Click Manage groups on the directory's Groups & members tab to pick it.
A single group whose membership is the whole organization also works as a whole-directory scope. When a group's members include the "everyone in your organization" entry that Google offers, Hook expands it to every active user in your Workspace, across all of your domains, and the preview shows the resulting count.
After the first sync
The directory card at the top of Integrations shows how many groups and users it syncs. The Groups & members tab lists your synced groups and units, with each unit's path; click one to see the people synced from it. The Domains tab shows every email domain your synced people use and which ones are approved. People on a domain that isn't approved can't be sent simulations or training. See Authorize recipient domains.
Hook refreshes membership every night at 2:00 AM UTC, so routine joiners and leavers need nothing from you. To sync sooner, click Sync now. The sync panel shows whether the last sync succeeded. To change which groups are synced, click Manage groups; your current selection is pre-checked on both tabs. See Manage your directory connection.
Renaming or moving an organizational unit in Google changes nothing for the people in it: Hook follows the unit itself, not its name or path, and the Groups & members tab shows the new path after the next sync. Moving a unit keeps its group's name in Hook. Renaming a unit renames its group in Hook to match, unless another group in Hook already has that name; then the group keeps its old name. If you delete a unit you picked, it shows as Unavailable in Google on the Groups & members tab and its people are deactivated unless another synced group or unit still includes them. Untick it under Manage groups to tidy the list.
Exclusions follow the unit too. An excluded unit you rename or move stays excluded. If you delete it in Google it shows as Unavailable in Google under the unit that excluded it, and you can remove it under Manage groups. An excluded unit moved out from under every ticked unit has no effect while it's away and applies again if it returns, until you next save your selection, which clears it. If Google moves a ticked unit inside an excluded one, that unit syncs nobody until you change the selection, and the picker flags it.
Two things to know about who gets deactivated. People are deactivated in Hook when they drop out of every synced group and unit, and also when their Google account is suspended or archived, because Hook reads each member's account status on every sync. Restoring the account in Google brings the person back on the next sync with their history intact. If something looks wrong after a sync, see Troubleshoot directory sync.
MSP-managed organizations
If your organization is managed by an MSP, the MSP admin usually does the Hook half and your Workspace super admin does the Google half. The MSP admin clicks Connect on your organization's Integrations page and forwards three things to your super admin: Hook's account email from the panel, the three privileges listed above, and the name of the Hook organization it belongs to, so the role is assigned from the right Workspace.
Nothing in Hook has to happen in the same sitting. Once the super admin confirms the role is assigned, any Hook admin with access to the organization, whether at the MSP or at the customer, clicks Set up on the connection to reopen the panel and clicks Verify.
When something goes wrong
The Organizational units tab says Hook can't read your units
Connections set up before units could be synced were sometimes granted only the Users and Groups read privileges. The Organizational units tab then shows a notice naming Hook's account and the missing privilege, in place of the tree. Groups are unaffected: you can keep picking groups, and group sync carries on as before.
To fix it, ask your super admin to open the role assigned to Hook's account in the Google Admin console and add Organization Units, then Read, as in Create the read-only admin role. Nothing else changes on the Google side. Google can take a few minutes to apply it; then click Try again in the notice.
The Organization Units privilege was removed after picking units
Once your selection includes units, Hook needs that privilege on every sync. If it is removed, syncs fail and nobody is deactivated. After the same short grace period as a removed role, your directory switches to Reauthorization needed. Re-add the privilege to the role, then click Reconnect and Verify. Verify waits until Google applies the privilege, because your saved selection includes units.
To go back to syncing groups only without re-adding the privilege, open the ⋯ menu on the directory and choose Disconnect, keep people, then connect Google Workspace again and pick only groups. Your people and their groups, including the ones made from units, stay in Hook as manually managed while the directory is disconnected, and the reconnect uses the same account email, so the role your super admin assigned still applies. A disconnect also turns off Google Direct Send if you use it, so read Disconnect a directory before you choose.
The role was removed
Hook keeps syncing for as long as the role stays assigned to its account. If a super admin removes the assignment, or deletes the role, the next sync is turned away. Hook gives Google a short grace period for a role that was only just changed, and after that the run fails and your directory switches to Reauthorization needed. In that state Hook doesn't sync it, and the only actions are Reconnect and the ⋯ menu with the disconnect options. Your saved groups and synced users are untouched; nobody is deactivated by the status itself.
To fix it, ask your super admin to assign the role to the same account email again, then click Reconnect. That reopens the panel with the same email showing. Click Verify; nothing else is needed on the Google side. When it succeeds, Hook opens the picker with your saved selection pre-checked and asks you to review it before syncing resumes. Re-confirming the same groups and units is enough.
Hook's account was deleted at Google
The account Hook created for your organization lives on Hook's side, and a super admin cannot delete it from your Admin console. If it is ever gone all the same, the panel says the account needs to be re-created. Click Reconnect (or Retry) on the directory: Hook creates a replacement. Copy the email the panel shows, even if it looks the same as before, have your super admin assign your existing role to it, and click Verify. If you had also set up Google Direct Send, the replacement has a new Client ID, which has to be authorized again. See Set up Google Direct Send.
Provisioning failed
If Hook could not create the account when you clicked Connect, the panel says so and the connection stays in its connecting state. The usual cause is that Hook has reached its Google account capacity, which Hook's team is alerted about automatically. There is nothing to change in Google. Click Set up on the connection to reopen the panel, then click Reconnect or Try again in the panel, or Cancel connection to clear it and start over later. If it keeps failing, contact support.
A Hook-side error
Any message that says the problem is on Hook's side means exactly that: Hook's own connection to Google, not your role assignment, is at fault. Hook's team has been alerted. Nothing you assigned has been revoked, and there is nothing for your super admin to do. Try again later, or contact support if it persists.
Remove Hook's directory role
Hook cannot remove a role your super admin assigned, so switching Hook off in Google takes two steps, and the order matters.
- In Hook, open the ⋯ menu on the directory and choose Disconnect, keep people or Delete directory and people, then type your organization's name to confirm. Syncing stops and the connection and its selection of groups, units, and exclusions are removed from Hook. Hook keeps its account for your organization, so if you connect Google Workspace again later you see the same account email, and you choose your groups, units, and exclusions again. Read what each option deletes in Disconnect a directory before you choose.
- In the Google Admin console, go to Account, then Admin roles, open the role you created for Hook, choose Assign service accounts, and remove Hook's account email from the list. If nothing else uses the role, you can delete the role itself.
Disconnecting in Hook first means the removal never lands as a failed sync or a Reauthorization needed status.
Removing a Gmail delegation entry for Google Direct Send
This section only applies if your organization also set up Google Direct Send, which places phishing simulations straight into Gmail inboxes. Direct Send uses the same Hook account as directory sync but is granted separately, through a domain-wide delegation entry that carries only Gmail permissions. Removing the directory role does not remove that entry, and removing the entry does not affect directory sync.
To remove it, in the Google Admin console go to Security, then Access and data control, then API controls, then Manage Domain Wide Delegation. Find the entry whose client ID matches Hook's account for your organization and remove it. Switch your delivery method away from Google Direct Send in Hook before you do, so no campaign is left trying to deliver through an entry that is gone. See Choose an email delivery method.
Disconnecting this directory in Hook also turns off Google Direct Send, but it doesn't remove the delegation entry. Remove the entry yourself to revoke mailbox access.
Related
Manage your directory connection
Run manual syncs, change your groups, and reconnect or disconnect a directory.
Set up Google Direct Send
Deliver simulations straight into Gmail inboxes through the same Hook account.
Authorize recipient domains
Approve the email domains your synced users share so simulations can reach them.
Assign training to groups
Put your freshly synced groups to work in the enrollment wizard.
Run a phishing campaign
Target a synced group with the campaign wizard, end to end.
Sync users from Microsoft Entra
Connect Hook to Microsoft Entra (Azure AD), choose which groups to sync, review members and domains, and save, so your user list stays current on its own.
Manage your directory connection
Run a manual sync, change which groups you sync, reconnect, switch providers, or disconnect Microsoft Entra or Google Workspace.