Skip to content

set-SilverfortUserRisk

SYNOPSIS

Update the risk of a user

SYNTAX

set-SilverfortUserRisk [-upn] <String> [-jwtToken] <String> [-Severity] <String> [-Timespan] <String>
 [<CommonParameters>]

DESCRIPTION

This function will update the risk-score with a reason for a given userprincipalname

EXAMPLES

EXAMPLE 1

set-SilverfortUserRisk -upn '[email protected]' -jwtToken $jwtToken -Severity 'Medium' -Timespan 3

Set the risk-level of user testmarco@district09.gent to medium for 3 hours. The reason will be "Suspicious Activity", which is hard-coded. Probably there are additional reasons possible, but didn't find them.

CHANGELOG YYYY-MM-DD - Naam - Wat gewijzigd 2025-04-03 - MM - Initieel script

PARAMETERS

-upn

The upn of the useraccount. Case-sensitive!

Type: String
Parameter Sets: (All)
Aliases:

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

-jwtToken

A valid JWT-token

Type: String
Parameter Sets: (All)
Aliases:

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

-Severity

"Low", "Medium", "High", "Critical"

Type: String
Parameter Sets: (All)
Aliases:

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

-Timespan

How long will this risk be active? In hours

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 4
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

NOTES