Manage your directory connection
Run a manual sync, change which groups you sync, reconnect, switch providers, or disconnect Microsoft Entra or Google Workspace.
Once Microsoft Entra or Google Workspace is connected, you look after it from Settings, then Integrations. You come back here when your org structure changes, when a sync needs a nudge, or when you want to stop syncing.
You need to be an org admin with the right organization selected in the sidebar switcher. If you haven't connected a directory yet, start with Sync users from Microsoft Entra or Sync users from Google Workspace.
Read the Integrations page
The page has up to three parts:
- The directory card at the top shows the directory that is syncing: its name, its status, and a ⋯ menu with the disconnect options.
- Connections (or Other connections when a directory is syncing) lists connections that need attention, such as one waiting for reauthorization or a Google Workspace setup that hasn't been verified yet.
- Directories holds a tile per provider, with Connect for a provider you haven't set up.
The directory card's summary shows when the last sync ran, when the directory was first connected, how many groups and users it syncs, and how many recipient domains are approved. If some synced people are held because their email domain isn't approved yet, a notice says how many, with a Review domains button. Below that is the sync panel, then two tabs:
- Groups & members: your synced groups. Click a group to see the people synced from it. Manage groups opens the group picker.
- Domains: the email domains your synced people use, and whether each one is approved for simulations. Approve, decline, or reinstate domains here. For the full workflow, see Authorize recipient domains.


Sync schedule and Sync now
Hook syncs every connected directory, Microsoft Entra and Google Workspace alike, every night at 2:00 AM UTC. It also syncs when you save a group selection, change your groups, or approve a domain.
To sync without waiting, click Sync now in the sync panel. The button is unavailable when:
- No groups are selected yet.
- A sync is already running. Only one sync runs per directory at a time.
- Hook is waiting for you to review your groups (see Review groups after a reconnect).

When a run ends, the panel shows either that the directory synced or that the sync failed, with a short reason. The summary, groups, and domains refresh on their own. If a sync fails, see Troubleshoot directory sync.
Change which groups you sync
Open the picker
On the Groups & members tab, click Manage groups. The picker opens with your current groups already checked. Adjust the selection and click Continue to preview. If you uncheck a group that's already synced, Hook asks you to confirm first.
Review the change
Instead of the first-time preview, you get a confirmation screen that splits your edit into groups being added and groups being removed. Added groups list the people coming in. Removed groups list the people currently synced through them and mark anyone who will be deactivated.
Someone is deactivated only when the removal leaves them in no synced group. People who are also in a group you're keeping or adding are untouched. Deactivated people are not deleted, and their campaign and training history stays. Selecting their group again brings them back.
If the new groups include email domains that haven't been decided yet, the screen lists them so you can approve or decline them now.
Save the change
Click Save scope change. Hook starts a sync and returns you to Integrations. If your selection matches what's already saved, Hook tells you there's nothing to apply.
A group you add can't bring in more than 50,000 members. If one does, Hook names it and won't save until you remove it from the selection.
Removing every group deactivates everyone this directory synced
If you remove every group, nobody keeps a synced membership. Hook makes you tick an acknowledgement that states how many people will be deactivated before it lets you save.
Review groups after a reconnect
Each time a connection becomes active again, including a reconnect, Hook stops syncing until an admin reviews the group selection. The sync panel shows a reminder with a Review groups button, and Sync now stays off. Open the picker, check the selection, and save. Saving the same groups is enough, and syncing resumes from there.
Connections that need attention
A connection outside the directory card shows its status and the actions that apply:
- Connecting: a Google Workspace setup that hasn't passed Verify yet. Click Set up to reopen Hook's account panel, where you can copy the account email again, click Verify, or click Cancel connection to clear it. An unfinished Microsoft consent doesn't leave a row behind; the Microsoft Entra tile simply offers Connect again.
- Error: a connection attempt failed. Click Retry. For Microsoft Entra that sends you back through the consent prompt. For Google Workspace it reopens the account panel so you can check the role assignment and verify again.
- Reauthorization needed: see below.
- Disconnected: a directory that was paused under an earlier version of disconnect. It appears as a card under Directories, and the people and groups it synced are still in Hook. Click Reconnect to resume, or use the ⋯ menu to remove it.
Every connection except one still connecting also has the ⋯ menu with the two disconnect options.
Reauthorization needed
A connection moves to Reauthorization needed when the access your admin granted stops working and a sync fails because of it. For Microsoft Entra that usually means someone removed Hook's app from your tenant or withdrew its consent. For Google Workspace it means the read-only admin role was removed from Hook's account, or the role itself was deleted, in the Google Admin console. A passing problem such as a network blip or a rate limit doesn't cause this; that shows up as a failed sync and the connection stays connected.
While a connection is in this state, Hook doesn't sync it, nightly or on demand. Your group selection and synced people are untouched, so nobody is deactivated by the status itself.
To fix it, click Reconnect. For Microsoft Entra you go back through the consent prompt. For Google Workspace the account panel opens with the same account email; once your super admin has assigned the role again, click Verify. Either way, Hook then asks you to review your groups before syncing resumes.
Switch to a different provider
Only one directory can sync at a time. To move from Microsoft Entra to Google Workspace, or the other way around, first remove the current directory with one of the options below. Until you do, the other provider's tile explains why Connect is unavailable. After the old connection is removed, connect the new provider as usual.

Disconnect a directory
Open the ⋯ menu on the directory and choose one of two options. Both stop syncing and remove the connection, its group selection, and its sync history from Hook. Neither changes anything in Microsoft Entra or Google Workspace.

- Disconnect, keep people: everyone the directory synced stays in Hook, along with their groups and memberships. They become manually managed, so you edit them yourself on the User Management page. If you connect a directory again later and select the same groups, Hook re-attaches those groups instead of creating duplicates.
- Delete directory and people: permanently deletes everyone linked to this directory, active or departed, together with their groups, memberships, and their campaign and training history in Hook. Campaign and training reports shrink to match. Domain approvals that no remaining person uses are removed too. Anyone another directory connection still manages is kept and becomes manually managed.
Delete directory and people cannot be undone
The deleted people, groups, and history are gone from Hook for good, and reconnecting the directory does not restore their history. If you only want to stop syncing, choose Disconnect, keep people.
To confirm either option, the dialog shows what will change and asks you to type your organization's name exactly as shown. Hook then shows a short summary of what it did.


What else a disconnect changes
- Direct delivery. If your organization sends simulations through Microsoft Direct Delivery or Google Direct Send, the disconnect turns it off. If that was your selected delivery method, no method is selected afterwards, and you need to set one up again before launching simulations. See Choose an email delivery method.
- The directory is released. Your organization stops holding the Microsoft tenant or Google Workspace, so it can be connected elsewhere.
- Access at the provider. Hook can't revoke access you granted in Microsoft or Google. The dialog and the summary list what to remove yourself. For Google Workspace, remove the role assignment in the Google Admin console under Account, then Admin roles. Hook keeps the account it created for your organization, so connecting Google Workspace again shows the same account email. See Remove Hook's directory role.
When Hook won't remove a directory yet
Hook refuses both options while:
- A sync for this directory is queued or running. Wait for it to finish and try again.
- A phishing campaign is scheduled or sending for your organization. The dialog lists each one and says whether you or your MSP can cancel it. Cancel those that can be cancelled, or wait for a sending campaign to finish.
Common pitfalls
- Nested groups aren't expanded. Hook syncs direct members only, so if a group contains other groups, select those groups as well.
- Disconnecting is not a pause. Both options remove the connection. To sync again later, you connect and choose groups from scratch.
Related
Sync users from Microsoft Entra
Connect Hook to Entra, pick groups to sync, preview members, and confirm.
Sync users from Google Workspace
Assign a read-only role to Hook's account, verify, pick Google Groups, preview members, and confirm.
Authorize recipient domains
Approve the email domains your synced users share so simulations can reach them.
View users and groups
Browse everyone in your organization and the groups that drive targeting.
Troubleshoot directory sync
Connection errors, picker limits, failed syncs, and removal blockers.
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.
Authorize recipient domains for phishing simulations
Approve the email domains your synced users receive mail on so Hook can deliver phishing simulations to them.