The Azure setup wizard connects your Microsoft 365 tenant to Phishing Tackle. It signs in to your tenant, creates the app registration and client secret for you, grants admin consent and then lets you choose who is synchronised. Once the connection is live, you can use the same area of the platform to check its health and look after the client secret.
This guide covers setting up a new connection or switching from a manual setup, day-to-day management of the connection, and renewing the client secret before it expires.
Already set up the integration manually? You can switch to the wizard at any time. Running the wizard replaces your existing integration: it creates a new app registration in your tenant and a new client secret, and you choose who is synced again in Step 7. Your old app registration is not used after the switch, so you can delete it from the Azure portal once the new connection is working. If you manage multiple organisations, you need to run the wizard separately for each one.
If you would rather register the app in the Azure portal yourself, follow Configure Synchronisation and Delivery Using Microsoft 365 / Azure Active Integration instead.
- Requirements
- Open the Azure connection page
- Run the setup wizard
- After setup: manage your connection
- Look after the client secret
- Change who is synced later
- Re-run the setup wizard
- View the activity log
- Troubleshooting
Requirements
- You need a Microsoft 365 account that can create app registrations and grant admin consent for Microsoft Graph application permissions, for example a Global Administrator.
- You need to be an Admin or Primary Admin of your Phishing Tackle organisation.
Open the Azure connection page
- In the left menu, open SETUP, then Wizards, then Azure.
- If you have not connected yet, you will see Connect Microsoft 365. Click START THE SETUP WIZARD.
If you have already started the wizard and left part-way through, the button reads RESUME SETUP and takes you back to where you stopped.
Run the setup wizard
The wizard has seven steps, shown along the top of the page: Connect, Features, Configure, Validate, Preview sync, Activate and Sync scope. Use Back at any point to revisit an earlier step, or Cancel to leave. Your progress is saved either way.
Step 1: Connect
- Click SIGN IN WITH MICROSOFT.
- Sign in with the Microsoft 365 administrator account described above. Microsoft may ask you to approve the sign-in request. Accept it to continue. Please note: the account you sign in with is only used to set up the connection. After setup, the connection uses the app registration and client secret that the wizard creates.
- When you return to Phishing Tackle, the page confirms who you are signed in as and shows your Tenant ID.
- Click SAVE AND CONTINUE.
If you signed in with the wrong account, click Use different account and sign in again.
Step 2: Features
Choose what you want to use Microsoft 365 for. You can pick more than one.
- Directory sync: synchronise users and groups from your directory.
- Active delivery: deliver simulated phishing messages directly to your mailboxes.
- StarPhish groups: allows StarPhish workflows to add and remove synced recipients from your Microsoft 365 Groups and Security Groups, so that group memberships in your tenant are changed automatically.
Active delivery and StarPhish groups both need recipients synced from Microsoft 365, so Directory sync is selected for you when you choose either of them.
Below the feature cards there are two settings:
- Microsoft 365 app registration name: the name of the app we create in your tenant. Leave it blank to use Email Security Integration. If an unrelated app with the same name already exists, we do not overwrite it. Instead, we generate a unique name.
- Client secret valid for: how long the client secret stays valid. You can choose 3, 6, 12, 18 or 24 months.
Click SAVE AND CONTINUE when you are ready.
Step 3: Configure
This step shows the permissions we will add to the app registration in your tenant. The permissions depend on the features you chose.
-
Directory sync:
Directory.Read.All,Group.Read.AllandUser.Read.All. These read users and groups. They do not allow mailbox content to be read. -
Active delivery:
Mail.ReadWrite. This is used to place authorised simulated phishing messages into selected mailboxes. We do not use it to read your users' existing mail, delete messages or change mailbox settings. -
StarPhish groups:
GroupMember.ReadWrite.AllandDirectory.ReadWrite.All. These let supported StarPhish workflows add and remove recipients from Microsoft 365 Groups and Security Groups. They are write permissions and need your explicit confirmation.
- Check the Configuration to apply panel. It shows the app registration name, the client secret description and the client secret expiry.
- Read through the permissions table.
- Tick I understand the permissions required for the selected features.
- Click SAVE AND CONTINUE.
We then configure your tenant automatically. This creates the app registration, adds the permissions, generates the client secret and grants admin consent. A progress window lists each task as it completes. This usually takes 15 to 30 seconds, so please keep the window open.
Step 4: Validate
Before anything goes live, we run four checks against your tenant.
- Microsoft Graph connectivity using the new app credentials.
- Directory read access, including a live user count.
- Organisation ownership.
- Recipients available for the sync preview.
- Click RUN VALIDATION CHECKS.
- When every check passes, click SAVE AND CONTINUE.
If a check fails, the message beside it explains what we could not do. Fix the issue, or use Back to review the earlier steps, then run the checks again.
Step 5: Preview sync
This step shows what will be synchronised once the connection is live:
- Users in Microsoft 365 tenant: the live user count we read from your tenant.
- Recipients currently in platform: the recipients you already have in Phishing Tackle.
- New users to import: an estimate of how many new recipients the first sync will add.
A summary below the figures lists your organisation, tenant, app registration, client secret and the features you enabled.
- Review the figures.
- Tick I have reviewed the synchronisation preview and am ready to activate. Please note: the new-users figure is an estimate. It compares the live tenant user count with the recipients you already have, so the final number can differ once your include and exclude rules are applied in Step 7.
- Click SAVE AND CONTINUE.
Step 6: Activate
The summary shows your organisation, provider, Tenant ID, a masked Application ID, who configured the connection, and how many features and permissions are enabled.
- Click ACTIVATE INTEGRATION.
This creates the Microsoft 365 connection. It does not start synchronising yet. Directory sync stays paused until you choose who is synced and start it in the next step.
Step 7: Sync scope
This is where you decide which people are kept in sync from Microsoft 365. This is useful if you do not want to sync every user in your Azure directory. Each section has an Include box and an Exclude box. Enter one entry per line. Leave a section empty to apply no filter. For more detail, see our full guide: Include/Exclude Rules for Microsoft 365 / Azure Active Integration and Handling Shared Mailboxes.
-
Domains: limit the sync to specific email domains. Listing the domains you want, for example
yourcompany.com, is usually easier than excluding the ones you do not, such asyourcompany.onmicrosoft.com. - Groups: sync only the members of certain groups, or exclude specific groups. Use the group's display name exactly as it appears in Microsoft 365, not the object ID. Microsoft 365 Groups, Security Groups and Mail-Enabled Security Groups are supported. Distribution groups, dynamic groups and nested groups are not.
- Recipients: add or remove individual people by their full email address.
Exclusions are always applied after inclusions. If someone belongs to a group you have excluded, they are not synced, even if they also belong to a group you have included.
Further down, the Options section has two settings:
- Email address attribute: mail (the SMTP address) is the default and is recommended, unless you have a specific reason to use userPrincipalName.
- Include only licensed mailboxes: shared mailboxes are synced by default. Tick this to leave out shared mailboxes and other unlicensed accounts.
The final section, Start synchronisation, lets you run the first sync straight away. Tick Start directory synchronisation now once your rules are set. If you prefer, leave it unticked and start the sync later from the Azure connection page.
Please note: when you start the sync, everyone currently in your address book is archived and only the people who match your rules are restored. Anyone who no longer matches, including recipients you added manually who are not in Microsoft 365, will be archived. A confirmation box appears so you can acknowledge this before continuing.
Click SAVE SYNC SCOPE to finish.
After setup: manage your connection
Once you are connected, open SETUP, then Wizards, then Azure at any time to see how the connection is doing.
Status and recommended next step
The badge at the top right of the page shows the overall state of the connection: Healthy, Setup incomplete, Needs attention or Action required.
Below it, a Recommended next step card tells you the one thing to do next, with a button to do it. Depending on the state of your connection, it might ask you to start directory sync, choose who is synced, rotate the client secret or add the secret's expiry date. When everything is working, it reads You're all set and shows when your client secret expires.
Connection health
The Connection health panel is checked each time you open the page.
- Microsoft 365 connection: whether we can reach your tenant.
- Client secret: whether the secret is valid, and the date it expires.
- One-click rotation: whether you can replace the secret from this page without visiting the Azure portal.
- Who is synced: whether your include and exclude rules are saved.
- Directory sync: when it last ran, and whether it is running or paused.
Connection details
At the bottom of the page you will find your Tenant / Directory ID, your Application (Client) ID, when the Secret expires and when it was Last rotated. Click either ID to copy it.
Other options
The Other options panel lists everything you can change. Which options appear depends on your connection.
- Rotate the secret now: create a new secret and remove the old one, in one click.
- Change who is synced: edit the domains, groups and people that are included or excluded.
- Re-run the setup wizard: reconnect, change features, or switch to a different tenant.
- Enter a secret from the Azure portal: for when you have created a client secret yourself.
- Correct the expiry date we track: only needed if our date does not match the one in Azure.
Look after the client secret
The client secret is the credential Phishing Tackle uses to talk to your tenant. When it expires, synchronisation and delivery stop working. We flag the secret on the Azure connection page 30 days before it expires, so we recommend checking the page regularly or adding a reminder to your calendar for your secret's expiry date.
You can renew the secret in two ways.
Option 1: Rotate the secret automatically
This is the quickest route and does not need the Azure portal. It is available when the connection was set up with the wizard and the One-click rotation check shows On.
- Open SETUP, then Wizards, then Azure.
- Click Rotate the secret now, or the Rotate secret now button in the recommended next step card.
- In the Rotate the client secret? window, choose how long the new secret should last: 3, 6, 12, 18 or 24 months. Choose Custom if you want to set an exact expiry date.
- Click ROTATE SECRET.
We create a new client secret in your tenant, switch your connection over to it and remove the old secret.
If the rotation cannot be completed, we take you to Option 2 below instead.
If the page says one-click rotation is not set up for your connection, re-run the setup wizard. This creates a fresh secret and turns one-click rotation on for next time.
Option 2: Create a secret in the Azure portal and enter it manually
Use this if you prefer to create the secret yourself.
- In Phishing Tackle, open SETUP, then Wizards, then Azure, and click Enter a secret from the Azure portal.
- Under Create the secret in Azure, click the Application (Client) ID to copy it, then click Open in the Azure portal. This opens the Certificates & secrets page for your app.
- In Azure, choose New client secret, give it a description, choose how long it should last and click Add.
-
Copy the Value column straight away. Do not copy the Secret ID. Azure only shows the value once, so if you leave the page without copying it you will need to create another secret.
- Back in Phishing Tackle, paste the value into Paste the secret value. Use the eye icon if you want to check what you pasted.
- Under How long is it valid for?, choose the same duration you chose in Azure, so that our reminder is sent on the right day. Choose Custom to enter an exact date.
- Click CHECK AND SAVE.
We sign in to your tenant with the new secret first. Only when that works does the connection switch over to it, and your current secret keeps working until then. We will flag the new secret 30 days before it expires.
Correct the expiry date we track
Our reminder relies on the expiry date we have recorded. If that date does not match the Expires column in Azure, for example because you changed the secret in Azure directly, you can correct it without changing anything else.
- Open SETUP, then Wizards, then Azure, and click Correct the expiry date we track. If we have no date at all, the same option reads Add the secret's expiry date.
- In Azure, go to Certificates & secrets, then Client secrets, and note the date in the Expires column. The Check the date in Azure link takes you there.
- Enter that date in Expiry date shown in Azure. The panel shows the date we track today beside the date you are about to save.
- Click SAVE DATE.
This only updates our reminder. The secret in Azure is left as it is.
Change who is synced later
- Open SETUP, then Wizards, then Azure.
- Click Change who is synced in Other options. If directory sync is paused, you can also use Review and start sync in the recommended next step card.
- Update your rules, then click SAVE SYNC SCOPE.
This is the same screen as Step 7 of the wizard, and the same scope you see in your organisation settings under Integrations.
Once your directory is synchronised, we recommend managing your recipients in Microsoft 365 rather than in Phishing Tackle. The next sync overwrites any changes made only in the platform. Each Microsoft 365 group a user belongs to is added to them as a tag.
Re-run the setup wizard
You can run the wizard again to reconnect, change which features are enabled, or switch to a different tenant. Click Re-run the setup wizard in Other options. If you have an unfinished session, it reads Resume the setup wizard instead and takes you back to where you left off.
View the activity log
The activity log is a timestamped record of every change made to your cloud connections, including provisioning, validation, secret rotations and settings. It is useful when you need to confirm who changed something and when.
- Open SETUP, then Wizards, then Activity log.
The page shows the events for your organisation only. Each row shows when the event happened, who did it, which provider it relates to, its category, the action and its severity.
- The three counters at the top right show your total events, warnings and failures.
- Use Category, Severity, Outcome, From and To to narrow the list, or type in Search to find an action, person or target. Click Reset to clear everything.
- Open the menu at the end of a row to see the full details of that event.
- Click Export CSV to download the events that match your current filters.
Please note: secrets are never written to the activity log.
Troubleshooting
- The sign-in works but setup fails at Configure. The Microsoft account you used probably cannot create app registrations or grant admin consent. Use Use different account in Step 1 and sign in with a Global Administrator.
- Directory sync ran into a problem. Check that the group names and domains in your include and exclude rules are spelled correctly, then save your sync scope to run it again. If it keeps failing, re-run the setup wizard.
- The page says Reconnect Microsoft 365. The connection has been disconnected, so sync and delivery are off. Click Run the setup wizard to connect again.
- The page says Add a client secret. No secret is stored, so we cannot sign in to your tenant. Re-run the setup wizard to create one.
Please let us know if you require any further assistance, you can contact our support team by clicking here. Or by sending an email to support@phishingtackle.com