microsoft-graph-api

Microsoft Graph User last modified field


I am trying to filter the Users endpoint by a date modified field.

I tried lastModifiedDateTime ge 2020-01-01T00:00:00Z however it throws an error "Property 'lastModifiedDateTime' does not exist as a declared property or extension property."

There are no datetime fields that resembles the last modified date (i.e. a User record is updated).

Is there a last modified field for Users endpoint of Microsoft Graph that should be enabled somewhere first? Am I missing a step?


Solution

  • There is no lastModifiedDateTime or similar property in MS Graph.

    But If your scenario is about on-premises AD data(user object) is sync to Azure AD then there is a possibility.We can get user modified /updated field changes from onPremisesLastSyncDateTime property.

    Also, If you want the last password change for the user then you can query with lastPasswordChangeDateTime.