Configuring Time-based Conditional Access Policies

Going back a few years, to 2023, I noticed the “times” property appear on Conditional Access policies when you performed a GET request using the Microsoft Graph API. Of-course, this information alone wasn’t much to go on, however, back then, each time you created a Conditional Access policy, the Entra admin portal performed a validation request against a legacy endpoint which included an example schema for the “times” property. This example schema, set the foundations for potential time-based Conditional Access policies.

Now in 2026, I thought its probably a good time to revisit time-based Conditional Access to see if I can get it working, or at least, prove whether it is a viable “thing”. The primary problem however, what knowing how to format the payload to configure the “times” condition via Microsoft Graph. Since there is no documentation for a supposed feature and the previous schema I found was aimed at a legacy endpoint, this proved difficult in the past. 

Now, to deduce the schema of the times condition, it was surprisingly simple with help from LLM models. I first used the inspect feature of the Chrome developer console to find client side JavaScript that included reference to the “times” property, for example:

n.defaultTimesCondition = function() {
        return {
            includeDays: null,
            excludeDays: null,
            includeRange: null,
            excludeRange: null,
            includeAllTimes: !1
        }
    }
    ,
    n.defaultDays = function() {
        return {
            daysOfWeek: [],
            timeZone: null,
            startTime: null,
            endTime: null,
            allDay: !1
        }
    }
    ,
    n.defaultDateRange = function() {
        return {
            timeZone: null,
            startDateTime: null,
            endDateTime: null
        }
    }

Then I simply asked Claude Sonnet 4.5 to deduce the JSON format for said property and this is what is came up with:

{
    "conditions": {
        "times": {
            "includeAllTimes": false,
            "includeDays": {
                "daysOfWeek": ["monday", "tuesday", "wednesday", "thursday", "friday"],
                "timeZone": "UTC",
                "startTime": "09:00:00",
                "endTime": "17:00:00",
                "allDay": false
            },
            "excludeDays": null,
            "includeRange": null,
            "excludeRange": null
        }
    }
}

After a simple patch request with using the Graph Explorer for speed, I then had a policy which was configured for time-based Conditional Access.

Configure Time-based Conditional Access
Configure Time-based Conditional Access

Of-course as this is a feature that hasn’t ever been publicly mentioned by Microsoft, although it can be “turned on” using Microsoft Graph, it doesn’t reflect visually in the Microsoft Entra admin center. Instead, all you can see it that there is a Condition enabled, but all visible conditions show as “Not configured”.

Time-based conditional access configuration
Time-based conditional access configuration

Interestingly, the policy in its simplest format, as configured above, still blocks users access to resources if configured with the Block grant control. Although, as of today, the reasoning for the block within the Entra Sign-in logs doesn’t provide any detail as the Conditions fields are blank.

Time-based conditional access policy block
Time-based conditional access policy block

It’s important to understand that time-based Conditional Access shouldn’t be compared to legacy time-based access controls in Conditional Access. It doesn’t make valid sense in a modern world to provide blanket time-based controls like that. Where time-based control would really shine is by providing admins the ability to define we’ll though-out session controls based on time of day, week, year or during seasonal periods.

Because this feature is un-announced, in development and/or probably shouldn’t have been made live in a globally production product, I don’t feed the need to further investigate it. But its good to know that it exists, regardless of whether it is in development, or was previously in development but since dropped as a feature.

Daniel Bradley

Daniel Bradley is a UK-based technical architect and Microsoft MVP in Security. He specialises in Microsoft Entra, Intune, and Microsoft Graph PowerShell and is the author of Microsoft Graph PowerShell for Administrators. He writes and edits Our Cloud Network using experience gained from working with Microsoft cloud environments.

Leave a Reply