Skip to main content

Get-XdrIdentityStatistic

SYNOPSIS​

Retrieves aggregated identity statistics from Microsoft Defender for Identity.

SYNTAX​

Get-XdrIdentityStatistic [-Force] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION​

Gets aggregated identity data and statistics from Microsoft Defender for Identity, including counts and metrics across all identities. This function includes caching support with a 10-minute TTL to reduce API calls.

EXAMPLES​

EXAMPLE 1​

Get-XdrIdentityStatistic
Retrieves identity statistics using cached data if available.

EXAMPLE 2​

Get-XdrIdentityStatistic -Force
Forces a fresh retrieval of identity statistics, bypassing the cache.

PARAMETERS​

-Force​

Bypasses the cache and forces a fresh retrieval from the API.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction​

The ProgressAction parameter is a common parameter, not a cmdlet parameter. For more information, see about_CommonParameters.

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters​

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

INPUTS​

OUTPUTS​

Object​

Returns aggregated identity statistics.​

NOTES​