< Back
Get-PartnerUserSignInActivity
Post
NAME Get-PartnerUserSignInActivity
SYNOPSIS
Gets the sign activities for the specified user.
SYNTAX
Get-PartnerUserSignInActivity [-EndDate <DateTime>] [-StartDate <DateTime>] [-UserId <String>] [<CommonParameters>]
DESCRIPTION
Gets the sign-in activities for the specified user.
PARAMETERS
-EndDate <DateTime>
The end date of the activity logs.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-StartDate <DateTime>
The start date of the activity logs.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-UserId <String>
The identifier for the user.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
Microsoft.Graph.SignIn
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> Get-PartnerUserSignInActivity -StartDate (Get-Date).AddDays(-7) -UserId
'3dd89389-b34c-4f5a-975d-516df5694d7e'
Gets the sign-in activities from the past seven days for the specified user.
-------------------------- Example 2 --------------------------
PS C:\\> Get-PartnerUserSignInActivity -StartDate (Get-Date).AddDays(-7) -UserId
'3dd89389-b34c-4f5a-975d-516df5694d7e' | ? {$_.AuthenticationDetails | ? {$_.Succeeded -eq $true}}
Gets the successful sign-in activities from the past seven days for the specified user.
-------------------------- Example 3 --------------------------
PS C:\\> Get-PartnerUserSignInActivity -StartDate (Get-Date).AddDays(-7) -UserId
'3dd89389-b34c-4f5a-975d-516df5694d7e' | ? {$_.AuthenticationDetails | ? {$_.Succeeded -eq $true}} | ?
{$_.MfaDetail -eq $null}
Gets the successful sign-in activities from the past seven days for the specified user that were not challenged by
multi-factor authentication.
-------------------------- Example 4 --------------------------
PS C:\\> $signIns = Get-PartnerUserSignInActivity -StartDate (Get-Date).AddDays(-7) | ? {$_.AuthenticationDetails |
? {$_.Succeeded -eq $true}} | ? {$_.MfaDetail -eq $null}
Gets the successful sign-in activities all users from the past seven days in your partner tenant that were not
challenged by multi-factor authentication.
-------------------------- Example 5 --------------------------
PS C:\\> $signIns = Get-PartnerUserSignInActivity -StartDate (Get-Date).AddDays(-7)
PS C:\\> $signIns | ? {$_.AuthenticationDetails | ? {$_.Succeeded -eq $true}} | ? {$_.MfaDetail -eq $null} | ?
{$_.ResourceId -eq 'fa3d9a0c-3fb0-42cc-9193-47c7ecd2edbd'}
Gets the successful sign-in activities from the past seven days, where the resource being assessed was the Partner
Center API and were not challenged by multi-factor authentication.
RELATED LINKS
Online Version: https://docs.microsoft.com/powershell/m ... InActivity
SYNOPSIS
Gets the sign activities for the specified user.
SYNTAX
Get-PartnerUserSignInActivity [-EndDate <DateTime>] [-StartDate <DateTime>] [-UserId <String>] [<CommonParameters>]
DESCRIPTION
Gets the sign-in activities for the specified user.
PARAMETERS
-EndDate <DateTime>
The end date of the activity logs.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-StartDate <DateTime>
The start date of the activity logs.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-UserId <String>
The identifier for the user.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
Microsoft.Graph.SignIn
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> Get-PartnerUserSignInActivity -StartDate (Get-Date).AddDays(-7) -UserId
'3dd89389-b34c-4f5a-975d-516df5694d7e'
Gets the sign-in activities from the past seven days for the specified user.
-------------------------- Example 2 --------------------------
PS C:\\> Get-PartnerUserSignInActivity -StartDate (Get-Date).AddDays(-7) -UserId
'3dd89389-b34c-4f5a-975d-516df5694d7e' | ? {$_.AuthenticationDetails | ? {$_.Succeeded -eq $true}}
Gets the successful sign-in activities from the past seven days for the specified user.
-------------------------- Example 3 --------------------------
PS C:\\> Get-PartnerUserSignInActivity -StartDate (Get-Date).AddDays(-7) -UserId
'3dd89389-b34c-4f5a-975d-516df5694d7e' | ? {$_.AuthenticationDetails | ? {$_.Succeeded -eq $true}} | ?
{$_.MfaDetail -eq $null}
Gets the successful sign-in activities from the past seven days for the specified user that were not challenged by
multi-factor authentication.
-------------------------- Example 4 --------------------------
PS C:\\> $signIns = Get-PartnerUserSignInActivity -StartDate (Get-Date).AddDays(-7) | ? {$_.AuthenticationDetails |
? {$_.Succeeded -eq $true}} | ? {$_.MfaDetail -eq $null}
Gets the successful sign-in activities all users from the past seven days in your partner tenant that were not
challenged by multi-factor authentication.
-------------------------- Example 5 --------------------------
PS C:\\> $signIns = Get-PartnerUserSignInActivity -StartDate (Get-Date).AddDays(-7)
PS C:\\> $signIns | ? {$_.AuthenticationDetails | ? {$_.Succeeded -eq $true}} | ? {$_.MfaDetail -eq $null} | ?
{$_.ResourceId -eq 'fa3d9a0c-3fb0-42cc-9193-47c7ecd2edbd'}
Gets the successful sign-in activities from the past seven days, where the resource being assessed was the Partner
Center API and were not challenged by multi-factor authentication.
RELATED LINKS
Online Version: https://docs.microsoft.com/powershell/m ... InActivity