Get-TssSecretPermissionRoleOption
SYNOPSIS
Get the roles that can be granted on a secret
SYNTAX
Get-TssSecretPermissionRoleOption [-TssSession] <Session>
[<CommonParameters>]
DESCRIPTION
Get the secret access roles (List, View, Edit, Owner) that can be granted on a secret, and which one is the default. One object is returned per role.
EXAMPLES
EXAMPLE 1
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Get-TssSecretPermissionRoleOption -TssSession $session
Returns every secret access role
EXAMPLE 2
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Get-TssSecretPermissionRoleOption -TssSession $session | Where-Object IsDefault
Returns the default secret access role
PARAMETERS
-TssSession
TssSession object created by New-TssSession for authentication
Type: Session
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
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
Thycotic.PowerShell.SecretPermissions.RoleOption[]
NOTES
Requires TssSession object returned by New-TssSession