Hi @Jan.Sebek ,
To get information about the last sync time of a user via Powershell, you can use the Get-MsolUser command.
(Get-MsolUser -UserPrincipalName ‘drscripto@contoso.com’).LastDirSyncTime
https://learn.microsoft.com/en-us/powershell/module/msonline/get-msolgroup?view=azureadps-1.0
You can use Get-EventLog to view the events on a local computer.
To view applied Conditional Access policies, you can use Get-MgAuditLogSignIn or check the Azure AD sign-in logs. https://learn.microsoft.com/en-us/azure/active-directory/reports-monitoring/how-to-view-applied-conditional-access-policies
To view activity logs, you can use the Microsoft Graph API.
Let me know if this is what you are looking for and if you have further questions.
If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar information.