Close-IDUserSession

Close-IDUserSession

SYNOPSIS

Sign out from the current session

SYNTAX

Close-IDUserSession [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Signs out the current session (server-side) and clears the module’s local session state. Confirmed live to be narrow-scope - it doesn’t affect any other session the same user has open elsewhere. Functionally equivalent to Close-IDSession, which wraps a different endpoint (Security/Logout) but is also narrow-scope.

EXAMPLES

Example 1

PS C:\> Close-IDUserSession

Signs out the current session.

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

None

OUTPUTS

None

NOTES