Hook SecurityHook Docs

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.

Microsoft Entra (Azure AD) is the best way to keep your Hook user list current. Once it's connected, Hook pulls the groups you choose straight from Entra and refreshes them every night, so you stop chasing CSV exports every time someone joins or leaves.

It takes a few minutes. You'll need the org admin role in Hook, someone who can grant consent for your Entra tenant, and a rough idea of which groups match how you target campaigns and training.

Not using a directory?

If your organization doesn't use Microsoft Entra or Google Workspace, you can import users with a CSV instead and manage learners and groups directly in Hook.

Connect Hook to Entra

Start the connect

Go to Settings, then Integrations. Under Directories, find the Microsoft Entra tile and click Connect. Hook hands you off to Microsoft.

If the tile says another directory is syncing or still owns your people, remove that directory first. See Switch to a different provider.

Sign in with an account that can grant consent for your tenant. Hook asks for four read-only permissions: read your groups, read the members of those groups, read users, and read basic organization details. Microsoft also lists a fifth, sign in and read user profile, which lets you sign in to approve. Hook never asks for write access, and it reads members only of the groups you select. See Microsoft Entra sync permissions for what each one covers.

The consent link is only good for 10 minutes, so if you get pulled away, start again rather than reusing the old tab. If Microsoft refuses, the usual cause is signing in with an account that can't consent for the whole tenant, so hand this step to your identity admin.

Land on the group picker

When consent succeeds, Hook takes you straight to the group picker. Your directory now appears at the top of the Integrations page as Connected, but nothing syncs until you save a group selection.

Pick the groups to sync

If you leave and 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 and its type: Microsoft 365, Security, or Distribution. If your tenant has more than that, Hook says the list was truncated, so use the search box rather than scrolling. Search matches a group's name, email, or type. Groups with hidden membership are not listed, because Hook cannot read their members.

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 tenant.

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. When the selection looks right, click Continue to preview.

Preview, review domains, and save

The preview lists each selected group with its member list and a count of how many members it holds. Read down it for two things: guests and service accounts, since Entra often mixes in external collaborators and shared mailboxes that shouldn't receive simulations, and people you expected but can't see, usually a recently deactivated account or someone who changed groups. Neither has to be solved now. Fix it in Entra and the next sync catches up.

Hook gives itself about 10 seconds to load members. If it runs out of time on some groups, the preview says it's partial. You can still save, and the sync picks up everyone.

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 groups and starts the first sync, then returns you to Integrations. The sync runs in the background, so you can leave the page.

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; 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.

Along with each person's name and email, Hook reads their job title, department, and manager from Entra on every sync. Entra stays in charge of those fields, and the manager is who receives that person's manager training reports.

The Domains tab with acme.example approved and acmeprecision.example waiting for a decision, with Approve and Decline buttons

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. To change which groups are synced, click Manage groups; your current selection is pre-checked. See Manage your directory connection.

Unsyncing a group deactivates people, it doesn't delete them

If you uncheck a group that's already saved, Hook asks you to confirm. Anyone left without a synced group is deactivated, not removed. Their campaign and training history stays intact, and re-selecting the group brings them back.

People are deactivated in Hook when they drop out of every synced group, which isn't the same as being blocked in Entra. A blocked account stays active here until it also leaves the group. If something looks wrong after a sync, see Troubleshoot directory sync.

On this page