某些Graph API返回大量数据并需要分页。是否存在lastModifiedDateTime属性以仅获取更改的行,例如进行此调用以返回自给定日期以来已被修改的用户?
https://graph.microsoft.com/beta/users?$filter=lastModifiedDateTime gt '2020-01-01T12:00:00Z'
或获取已更改的类(教育API)
https://graph.microsoft.com/beta/education/classes?$filter=lastModifiedDateTime gt '2020-01-01T12:00:00Z'
答案 0 :(得分:1)
您尝试使用的属性(即“ lastModifiedDateTime”)不属于MS图形。
在Ms Graph中,可以使用directoryAudits方法来实现,该方法包含与Azure AD中的更改(日志)有关的所有信息。
要获取天蓝色的最后一个活动,您需要使用'activityDateTime'
属性并获取用户信息'initiatedBy'
属性。