Katabarwa Labs
← Blog

How to set a Microsoft Entra ID account to expire on a date

Microsoft Entra ID · August 26, 2026 · 6 min read

On-premises Active Directory has had an accountExpires attribute for decades: set a date on a contractor or intern account, and it disables itself when that date passes. Cloud Microsoft Entra ID (formerly Azure AD) still has no equivalent. This is one of the most requested identity features on the feedback forum, with well over a thousand votes and years of comments from admins who onboard temporary staff.

The result is that most teams fall back to a calendar reminder and a manual disable, which is easy to miss and leaves orphaned, still-enabled accounts as a standing security and compliance risk.

What Entra ID gives you today

The DIY approach: a stored date plus a scheduled disable

You can reproduce accountExpires with a little glue:

This is reliable once built, but it is code you now own, test, and keep running as the Graph API and your directory evolve.

A ready-made option: Identity Lifecycle

Our tool for this: Identity Lifecycle on the Azure Marketplace. It deploys into your own tenant as a managed application, so nothing leaves your environment and there is no vendor backend.

Identity Lifecycle adds the expiry date Entra is missing. You set an end date on any contractor, temp, or intern account, and it warns at 14, 7, and 1 days, then disables the account on the date. The same app also cleans up stale guests: it flags guests with no recent sign-in, reports them to Microsoft Teams, and disables them after a grace period you choose. It runs entirely in your own tenant under a managed identity you control and ships dry-run by default, so you review the report before anything changes.

Key facts

Related reading: how to put a hard spending cap on Azure.


Written by the team at Katabarwa Labs. We build small, single-purpose Azure tools that run entirely inside your own tenant. Questions: abaho@llmgraph.ai.