Search Results for

    Show / Hide Table of Contents

    Get-PnPCompatibleHubContentTypes

    SYNOPSIS

    Required Permissions

    • ViewPages permission on the current web.

    Returns the list of content types present in content type hub site that can be added to the root web or a list on a target site.

    SYNTAX

     Get-PnPCompatibleHubContentTypes -WebUrl <String> [-ListUrl <String>] [-Connection <PnPConnection>] 
    

    DESCRIPTION

    Allows to retrieve list of content types present in content type hub site that are possible to be added to the current site or given list.

    EXAMPLES

    EXAMPLE 1

     Get-PnPCompatibleHubContentTypes -WebUrl 'https://contoso.sharepoint.com/web1'
    

    This will return the list of content types present in content type hub site that can be added to the root web of the site to which the provided web belongs.

    EXAMPLE 2

     Get-PnPCompatibleHubContentTypes -WebUrl 'https://contoso.sharepoint.com/web1' -ListUrl 'https://contoso.sharepoint.com/web1/Shared Documents'
    

    This will return the list of content types present in content type hub site that can be added to the provided list.

    PARAMETERS

    -WebUrl

    The full URL of the web for which compatible content types need to be fetched. In case of a list this should be the url of the web which contains the given list. I.e. 'https://contoso.sharepoint.com/web1'

    Type: String
    Parameter Sets: (All)
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -ListUrl

    The full URL to the list for which compatible content types need to be fetched, i.e. 'https://contoso.sharepoint.com/web1/Shared Documents'

    Type: String
    Parameter Sets: (All)
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -Connection

    Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

    Type: PnPConnection
    Parameter Sets: (All)
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    RELATED LINKS

    Microsoft 365 Patterns and Practices

    Back to top Generated by DocFX spacer