且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Azure AD登录REST API请求中指定时间

更新时间:2022-05-25 10:14:04

您在正确的轨道上!您使用的过滤器也会接受时间.

You're on the right track! The filter you're using also accepts a time.

如果您选中

If you check the List sign-in response you'll see the format Microsoft uses to specify the date and the time in out field.

尝试使用此URI(适用于2020-09-29 19:00:00之后的所有项目(如 z 末尾所述的UTC):

Try this URI (for all items after 2020-09-29 19:00:00 (UTC as noted by the z at the end)):

https://graph.microsoft.com/beta/auditLogs/signIns?&$filter=createdDateTime gt 2020-09-29T19:00:00z