Add-PubItemUserFilter

NAME

Add-PubItemUserFilter

SYNOPSIS

Adds a user account to the filter of type 'User' for the specified published resource.

SYNTAX

Add-PubItemUserFilter [-InputObject] <PubItem> [-Account <string>] [-SID <string>] [-SiteId <uint>] [<CommonParameters>]

Add-PubItemUserFilter [-Id] <uint> [-Account <string>] [-SID <string>] [-SiteId <uint>] [<CommonParameters>]

DESCRIPTION

This cmdlet only allows you to add a user account to the filter.

To modify other filter options, use the Set-PubItemUserFilter cmdlet.

PARAMETERS


-Account <string>
The name of the user/group account to add to the filter.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-SID <string>
The SID of the user/group account to add to the filter.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-InputObject <PubItem>
An object specifying the published resource to be updated.

To obtain the object, use the Get-PubItem cmdlet.

        Required?                    true
        Position?                    0
        Default value                
        Accept pipeline input?       true (ByValue)
        Accept wildcard characters?  false

-Id <uint>
Published resource ID.

        Required?                    true
        Position?                    0
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false

-SiteId <uint>
Site ID.

        Required?                    false
        Position?                    named
        Default value                0
        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 documentation. 

INPUTS

PSAdmin.PubItem

OUTPUTS

-none-

EXAMPLES


---------- EXAMPLE 1 ----------

Add-PubItemUserFilter -Id 3 -Account "JaneDoe"

Adds the specified user account to the filter for the resource specified by ID.

---------- EXAMPLE 2 ----------

Add-PubItemUserFilter -Id 3 -Account "SID://DOMAIN/JaneDoe"

Adds the specified user account to the filter for the resource specified by ID.

---------- EXAMPLE 3 ----------

Add-PubItemUserFilter -Id 3 -SID "S-1-7-21-1452357886-1659455039-1882266777-3189"

Adds the specified user account (by SID) to the filter for the resource specified by ID.

RELATED LINKS