Overview
The Microsoft Entra ID (formerly Azure Active Directory) directory integration synchronises your Entra ID groups to your CanIPhish account. When an employee is added to or removed from a synced group, CanIPhish updates the matching employee list every 24 hours. This automates adding and removing employees from simulated phishing and security awareness training campaigns.
Note: You'll need a Microsoft Entra ID tenant with a group that contains everyone you'd like in your campaigns. To connect it, you'll sign in to Microsoft as a Global Administrator or Privileged Role Administrator.
Important Note: If you've set up platform white-labelling for your CanIPhish tenant, please follow this setup guide.
Connect your directory
There are two ways to connect your directory. Choose one.
Option 1: With Microsoft 365 Direct Email Injection (recommended)
When you set up Microsoft 365 Direct Email Injection, leave Directory sync switched on in the Set up Microsoft 365 dialog. One Microsoft consent connects both, and a directory with the same name as the integration is added for you. When Microsoft 365 is connected appears, click Create an employee list and continue from step 2 of Create a directory-synced employee list.
The new employee list opens on Directory import, with the new directory already selected.
Note: Already using direct email injection? Set up Microsoft 365 again with the same integration name and Directory sync switched on. The existing integration is updated in place.
Option 2: From the Employees page
- Log in to your account, go to Employees and click Directory Integration.
- Make sure Microsoft Entra ID is selected, enter a unique Directory name, and click Sign in with Microsoft.
-
If Microsoft asks you to sign in, use your Global Administrator or Privileged Role Administrator account. Microsoft then shows a Permissions requested screen for the CanIPhish Azure Connector app, which you accept on behalf of your whole organization. Click Accept.
Note: Access to all the listed permissions is required. See the appendix for what each one is used for.
- You're returned to the Employees page. The message Microsoft Entra ID is connected. appears, and the Directory integration dialog lists your directory as Active.
Create a directory-synced employee list
- On the Employees page, click New Employee List.
-
Enter an Employee list name, choose Directory import and select your directory. Wait a few seconds for its groups to load, choose one or more Groups to sync, and click Sync directory employees.
Note: Attribute mapping decides which directory attribute CanIPhish uses for each employee detail. The defaults suit most directories, but you can change them. To include or exclude employees by attribute, use Show filters and exclusions; see Employee List - Directory Filtering.
- The synced employees appear in the table. Check them, then click Save employee list.
Congratulations! CanIPhish syncs changes in your directory groups to the employee list every 24 hours. To apply changes sooner, open the list with Update list, click Sync directory employees and save.
Appendix: Additional Information on Microsoft API Scopes
The table below lists the permissions the CanIPhish Azure Connector app asks for (Option 2), under the names Microsoft shows on the Permissions requested screen. For Option 1, see the permissions in the Microsoft 365 Direct Email Injection - Setup Guide.
| Permission | What it's for |
|---|---|
|
Directory.Read.All Read directory data |
Reads your groups, their members and each employee's details. |
|
User.Read.All Read all users' full profiles |
Reads profile details such as first and last names, job titles and company names, which phishing and training campaigns use. |
|
User.Read Sign in and read user profile |
Confirms who signed in, and that they're a Global Administrator or Privileged Role Administrator of the tenant that gave consent. |
|
offline_access Maintain access to data you have given it access to |
Keeps the connection working, so CanIPhish can check your groups for added or removed employees without anyone signing in again. |
Comments
0 comments
Please sign in to leave a comment.