Skip to content

Assignment rules

Assignment rules decide which template a person gets. They are an ordered list, evaluated top to bottom, and the first match wins. Anyone that no rule matches gets the organisation-wide role assignments.

Each rule has a condition and an outcome.

The condition is either a directory attribute equalling one of a set of values, or membership of an Entra group.

The outcome is a template per role: one for new messages and one for replies and forwards.

Common attributes to match on are department, office location and email domain. A rule matches when the person’s value for that attribute is one of the values you list, so a single rule can cover several departments.

Email domain matching uses the address the message is being sent from rather than the mailbox’s primary address. That is what lets one person carry a different brand’s signature when sending from that brand’s alias. See how it works.

Attribute matching depends on the directory being populated. Run attribute coverage before building rules around an attribute; a rule matching on department is only as good as the proportion of your directory that has one.

A group rule matches when the person is a member of the named Entra group.

Groups are often the more maintainable option. Membership is managed where your organisation already manages access, rather than depending on an attribute being filled in consistently, and adding somebody to a group is a familiar action for most IT teams.

Group rules require the GroupMember.Read.All permission, which is granted at admin consent along with everything else. See permissions.

Rules are evaluated in order and the first match wins.

Put narrow rules above broad ones. A rule matching everyone in the United Kingdom placed above a rule matching the Manchester office means the Manchester rule never fires.

When a signature is wrong for a group of people, the ordering is the first thing to check.

Anyone no rule matches gets the template assigned to the new and reply roles. That is the organisation-wide default and it always applies, so there is no way for somebody to end up with no signature because no rule covered them.

Rules changes reach everyone within ten minutes.

That is slower than a template edit, which lands in seconds, and the reason is that evaluating a rule requires directory data. The per-mailbox result is cached for ten minutes, keyed by a version that changes whenever you edit the rules, so an edit invalidates the cache and the resolution is recomputed.

An edit to a template that a rule points at still lands in seconds. It is only the routing decision that is cached.

Deletion is blocked while a template is referenced by a rule. Change the rule first, then delete.

A subsidiary with its own brand: match on emailDomain equalling the subsidiary’s domain, and point both roles at that brand’s templates.

A sales team with a booking link: put the sales people in an Entra group and match on it, pointing at a template that includes the link.

Regional address blocks: match on officeLocation with one rule per region, each naming a template carrying that office’s address. Where the only difference is the address, an alternative is one template using the address placeholders directly, which needs no rules at all.

Shorter internal signatures: this is not something rules can express, because a rule condition describes the sender rather than the recipients.

Use the download action on the Templates view to render the live signature for a specific mailbox. That resolves the rules exactly as a real request would, so it tells you what that person actually gets rather than what you expect them to get.

Remember the ten minute window: immediately after a rules change, a download may still reflect the previous resolution.