Coming from the fact that we have a challenge when it comes to getting last sign-in details for Azure AD users as this attribute is not available either in AzureAD or MSOnline modules, Get-AzureADUsersLastSignIn.ps1 PowerShell script resolves this challenge as it retrieves Azure AD users with their last sign in date.
- You need to sign-in using a Global Admin (GA) account.
- Tenant should have an Azure Active Directory Premium license.
Download and run the Get-AzureADUsersLastSignIn.ps1
script from this GitHub repo.
- To retrieve Azure AD users with their last sign-in details.
- To generate a CSV report with the result.
No. It just retrieves data.
Yes, tenant should have an Azure AD Premium license.
Get-AzureADUsersLastSignIn script retrieves the following details for each user in the tenant:
Object ID, Display Name, User Principal Name, Account Enabled, onPremisesSyncEnabled, Created DateTime (UTC), Last Success Signin (UTC)
No.
No, the script does not require any PowerShell module.
If 'Last Success Signin (UTC)' value is 'N/A', this could be due to one of the following two reasons:
- The last successful sign-in of a user took place before April 2020.
- The affected user account was never used for a successful sign-in.