< Back

Get-OktaPolicy

Sat Jan 18, 2020 5:46 pm

NAME Get-OktaPolicy



SYNOPSIS

Gets Okta sign on and password policies.





SYNTAX

Get-OktaPolicy -Identity <String> [<CommonParameters>]



Get-OktaPolicy -Type <String> [<CommonParameters>]





DESCRIPTION

Gets Okta sign on and password policies.





PARAMETERS

-Identity <String>

The Id of the policy to retrieve.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Type <String>

The type of policies you'd like to retrieve. Can be either Password or OktaSignOn.



Required? true

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

Okta.Sdk.Policy







NOTES









-------------------------- Example 1 --------------------------



PS C:\\> Get-OktaPolicy -Identity "00pmw1mgtiHPRsYJH0h7"



Get a policy by its Id.

-------------------------- Example 2 --------------------------



PS C:\\> Get-OktaPolicy -Type OktaSignOn



Get all policies of type OktaSignOn.

-------------------------- Example 2 --------------------------



PS C:\\> Get-OktaPolicy -Type Password



Get all policies of type Password.



RELATED LINKS