< Back

Remove-JiraFilterPermission

Thu Jan 16, 2020 8:10 am

NAME Remove-JiraFilterPermission



SYNOPSIS

Remove a permission of a Filter





SYNTAX

Remove-JiraFilterPermission [-Filter] <JiraPS.Filter> [[-Credential] <PSCredential>] [-WhatIf] [-Confirm]

[<CommonParameters>]



Remove-JiraFilterPermission [-FilterId] <UInt32> [-PermissionId] <UInt32[]> [[-Credential] <PSCredential>]

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





DESCRIPTION

Remove a sharing permission of a Filter.





PARAMETERS

-Filter <JiraPS.Filter>

Object of the Filter from which to remove a permission.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-FilterId <UInt32>

Id of the Filter from which to remove a permission.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-PermissionId <UInt32[]>

List of id's of the permissions to remove.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Credential <PSCredential>

Credentials to use to connect to JIRA.

If not specified, this function will use anonymous access.



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

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

System.Object







OUTPUTS

System.Object







NOTES





This function requires either the `-Credential` parameter to be passed or a persistent JIRA session. See

`New-JiraSession` for more details. If neither are supplied, this function will run with anonymous access to

JIRA.



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



Remove-JiraFilterPermission -FilterId 11822 -PermissionId 1111, 2222



Remove two share permissions of Filter with ID '11822'

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



Get-JiraFilter 11822 | Get-JiraFilterPermission | Remove-JiraFilterPermission



Remove all permissions of Filter 11822



RELATED LINKS

Online Version: https://atlassianps.org/docs/JiraPS/com ... ermission/

Get-JiraFilter

Add-JiraFilterPermission

Get-JiraFilterPermission