Skip to content

Enhancement: spo term set get - Allow getting a tenant term set as well as a sitecollection term set on site-level #4836

@martinlingstuyl

Description

@martinlingstuyl

Currently spo term set get can only be run on the Global Termstore on tenant level.

This has two consequences:

  1. You need the SPO administrator role to run this command.
  2. You cannot use it on the sitecollection specific term store.

I propose fixing this.

Options

Option Description
-u, --webUrl [webUrl] If specified, allows you to get a term set from the tenant term store as well as the sitecollection specific term store. Defaults to the tenant admin site.

Remarks

To use this command without the --webUrl option you have to have permissions to access the tenant admin site.

When using the --webUrl option you can connect to the term store with limited permissions, and do not need the SharePoint Adminstrator role. You need be a site visitor or more. It allows you to get a term set from the tenant term store as well as a term set from the sitecollection term store.

Additional remarks

The webUrl option (if used) can just be swapped in instead of the currently used spoAdminUrl to achieve the desired result.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions