Skip to content

Add 'spo contenttype huburl' command #905

@Laul0

Description

@Laul0

Summary

Retrieve the SharePoint content type hub site of the Tenant thank to specific command.

Usage

The command should like:

spo contenttypehub get

Return the URL of the SharePoint Content Type Hub of the Tenant

Use cases

  • Once I am logged, I can get the URL of the default ContentTypePublishingHub site

Options

The following options of the cmdlet have to be supported:

  • -o, --output
  • --verbose
  • --debug

To Do

  • Add the command to the solution
  • Add the documentation of usage (MkDocs)
  • Validate command usage
  • Validate Unit tests

Additional informations

Expand for output related informations
  • Supported by PnP PowerShell: Get-PnPContentTypePublishingHubUrl
    TaxonomySession session = TaxonomySession.GetTaxonomySession(ClientContext);
    var termStore = session.GetDefaultSiteCollectionTermStore();
    ClientContext.Load(termStore, t => t.ContentTypePublishingHub);
    ClientContext.ExecuteQueryRetry();
    WriteObject(termStore.ContentTypePublishingHub);

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions