Microsoft 365 sign-in rules.
Octotor reads the sign-ins to your users' Microsoft 365 accounts and alerts you when a sign-in does not fit the pattern you expect: from a country you did not allow, from an address outside your offices, from a device Octotor has never seen, from an operating system you do not use, or many wrong passwords in a short time. One rule can combine several of these conditions.
What it does
- Five triggers. Each rule watches one thing: the country, repeated failures, the sign-in address, the device, or the operating system. The table below says what each one catches and what you fill in.
- Successful sign-ins, or every attempt. For the address, device and operating-system triggers you choose whether the rule reports successful sign-ins only, or also failed attempts and attempts that a Conditional Access policy blocked. The country rule has the same choice as a tick box.
- The device behind the sign-in. Since v3.3.13.1 every sign-in record keeps the device Microsoft reports: its name, whether it is managed, whether it is compliant, and how it is joined. The Sign-ins panel of a user shows a Device column, and the device trigger reads these fields.
- Several conditions in one rule. Add up to ten conditions to a rule and choose whether all of them or any of them must hold for the same sign-in. For example: a sign-in from outside the allowed countries that also comes from a device unknown to Octotor.
- One alert per event. The alert names the user, the time, where the sign-in came from and what the rule found. Repeats inside the rule's window are folded into the first alert.
Who it is for
Anyone who looks after Microsoft 365 accounts for a business: an internal IT team or a managed service provider with several tenants. The rules are built for the common cases — users who work from one or two countries, offices with known addresses, company-managed devices — and need no scripting.
What you need
Octotor v3.3.13.1 or later with the Microsoft 365 connector set up (read-only access; Octotor never changes anything in your tenant). Sign-in records need Entra ID P1, or a licence that includes it such as Microsoft 365 Business Premium. The Microsoft 365 collector is part of the Pro plan (one tenant) and the Enterprise plan (any number of tenants); the rules themselves are not licensed separately.
The five triggers
| Trigger, as the editor names it | What it catches | What you fill in |
|---|---|---|
| location — sign-in from outside the allowed countries | A sign-in from a country that is not on your list. With Also alert on failed attempts ticked, it also reports failed and blocked attempts from outside the list. | Allowed countries as two-letter codes, for example IL, US. |
| failure_burst — repeated failed sign-ins per account | Many wrong passwords for one account in a short time, for example five in fifteen minutes. | Failures ≥ and Within minutes. |
| ip — sign-in from an address outside the allowed list | A sign-in whose address is outside every line of your list. Addresses and ranges, IPv4 and IPv6. | Allowed addresses, one per line: a single address such as 198.51.100.7 or a range such as 192.0.2.0/24. |
| device — sign-in from an unknown, unmanaged or non-compliant device | A sign-in from a device that is not among the devices the connector collected for this customer, that is not managed, that is not compliant, or a sign-in that names no device at all. Tick one or more; the rule fires when any ticked item is true. | The four tick boxes under Alert when. |
| os — sign-in from a listed operating system (or from any other) | A sign-in from an operating system on your list, or — the other way round — from any system that is not on it. Names match from their start, so Windows covers Windows 10 and Windows 11. | Alert on (listed systems, or anything not listed) and Operating systems, for example Linux. |
Which sign-ins. The address, device and operating-system triggers carry a choice: Successful sign-ins only or Successful sign-ins and failed or blocked attempts. Start with successful sign-ins only; switch to every attempt when you want to see who is knocking as well as who got in.
How to set up a rule
1Open the rule editor
Open Alerts, then Rules, and click New Rule. Give the rule a name, pick the customer and set the type to signin (M365).
2Choose the trigger and fill it in
Pick one of the five triggers under Trigger and fill in its fields from the table above. Under Which sign-ins, choose successful sign-ins only or every attempt.
3Add more conditions if you need them
Under More conditions, add a second condition and choose all conditions hold for the same sign-in or any condition holds. Every condition is checked against the same sign-in record.
4Choose how you are told, and save
Pick the severity and the channels (email, Telegram, webhook) like any other rule, and save. The rule runs on every Microsoft 365 sync from then on. If you use the device trigger, run one Microsoft 365 sync after upgrading so the connector has collected the devices the rule compares against.
Where you see the alert
The alert goes out on the channels you chose and stays in the Alert Center until someone handles it. Its cause line gives the time and where the sign-in came from. On the Dashboard, the customer's Microsoft 365 tile turns yellow and the alert appears in the "Needs action now" list with a reference number. The user's Sign-ins panel shows the record itself, with the device Microsoft reported.
Worked example
The situation. Alder Clinic has twenty users who work from Israel and travel to the United States. Every company laptop is enrolled in Intune. The clinic wants to know about a sign-in from anywhere else, and about any sign-in from a device that is not one of theirs.
The rule. Name ALDER-SIGNIN-ABROAD, type signin (M365), trigger location with Allowed countries = IL, US and Also alert on failed attempts ticked. Under More conditions, a second condition with trigger device and The device is unknown to Octotor ticked, and any condition holds. Severity high, email to the clinic's IT mailbox.
What happens. A successful sign-in by one user from Portugal at 03:12 produces one alert naming the user, the time, the country and the address. The same night, a sign-in by another user from Tel Aviv on a personal tablet — a device the connector has never collected — produces a second alert, because the device condition holds even though the country is allowed. A traveller signing in from Boston on a clinic laptop produces nothing. Both alerts sit in the Alert Center and in the clinic's "Needs action now" list until IT marks them handled.
Ask the AI assistant
The built-in assistant can list a customer's sign-in rules and explain, trigger by trigger, what each one checks ("which sign-in rules does Alder Clinic have?"). It can also create a rule from a description — "alert when anyone at Alder Clinic signs in from outside Israel or the United States" — and shows you the rule before it is saved.
The short version with a video: Alerts for Microsoft 365 sign-ins from another country. Everything that changed in this release: release notes for v3.3.13.1. Try the rule editor in the live demo: open the Alert rules page — no account needed.