The command Get-AzureADAuditDirectoryLogs -Filter “initiatedBy/app/displayName eq ‘Skype For Business Powershell Server Application’” | select targetresources, activitydatetime | FL
gives me this output
TargetResources : {class TargetResource {
Id: bfa9ddfa-e22e-4227-914b-f73781f22026
DisplayName:
Type: User
UserPrincipalName: John.Smith@company.com
GroupType:
ModifiedProperties: class ModifiedProperties {
}
}
}
ActivityDateTime : 9. 2. 2020 17:46:34
How can I select only userPrincipalName from this class? Thanks