Share via


Get-PartnerUserSignInActivity

Gets the sign activities for the specified user.

Syntax

Default (Default)

Get-PartnerUserSignInActivity
    [-EndDate <DateTime>]
    [-StartDate <DateTime>]
    [-UserId <String>]
    [<CommonParameters>]

Description

Gets the sign-in activities for the specified user.

Examples

Example 1

PS C:\> Get-PartnerUserSignInActivity -StartDate (Get-Date).AddDays(-7) -UserId '00aa00aa-bb11-cc22-dd33-44ee44ee44ee'

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 '00aa00aa-bb11-cc22-dd33-44ee44ee44ee' | ? {$_.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 '00aa00aa-bb11-cc22-dd33-44ee44ee44ee' | ? {$_.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 'a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1'}

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.

Parameters

-EndDate

The end date of the activity logs.

Parameter properties

Type:DateTime
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-StartDate

The start date of the activity logs.

Parameter properties

Type:DateTime
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UserId

The identifier for the user.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

Microsoft.Graph.SignIn