I'm quite confused by the documentation that's uploaded to the MS site,
I'm working on auditing inactive users within Azure AD, yet when I follow the below two links I cannot for the life of me find the attribute "signinactivity" with my Graph API reponses:
- https://docs.microsoft.com/en-us/azure/active-directory/reports-monitoring/howto-manage-inactive-user-accounts
- https://docs.microsoft.com/en-us/graph/api/resources/signinactivity?view=graph-rest-beta
Any help with this? Has the feature been taken out?
Apologies for my ignorance, but I'm confused that I've followed the documentation instructions yet the results are not there when I execute.
$response = Invoke-RestMethod -Method POST -Uri "https://login.microsoftonline.com/{tenant_ID}/oauth2/v2.0/token" -Body $postParams
$token = ConvertTo-SecureString -String $response.access_token -AsPlainText -Force
$query = Invoke-RestMethod -Method GET -Authentication Bearer -Token $token -Uri "https://graph.microsoft.com/beta/users?$select=displayName,userPrincipalName,signInActivity"