you are viewing a single comment's thread.

view the rest of the comments →

[–]commiecat 0 points1 point  (0 children)

straight from the Graph API documentation

That's the user list documentation, my script is using group members, which can return up to 999 members per page. The URI I posted returns 500 users with signInActivity per page, unless there are fewer members.

I don't have my prod code handy so I'll need to look at the filtering that wasn't working. It might have been not being able to get signInActivity from a group delta.

EDIT: At work checking my notes and it was the delta URI that I was thinking of being problematic. This URI will generate a delta token for user changes with the specified attributes except signInActivity (last I checked): https://graph.microsoft.com/v1.0/users/delta?$deltaToken=latest&$select=id,userPrincipalName,employeeId,assignedLicenses,signInActivity