Skip to content

Enhancement: spo term add - Allow adding a site-level term or a tenant-level term without SPO Admin privileges #4837

@martinlingstuyl

Description

@martinlingstuyl

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

This has three consequences:

  1. You need the SPO administrator role to run this command.
  2. You cannot use it on the sitecollection specific term store.
  3. You cannot add terms as a taxonomy administrator without the SPO administrator role.

I propose fixing this.

Options

Option Description
-u, --webUrl [webUrl] If specified, allows you to add a term to 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. It allows you to add a term to a term set in the tenant term store if you are listed as a term store administrator. It allows you to add terms to a term set in the sitecollection term store if you are a site owner.

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