Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: spo term get - Allow getting term on site-level from tenant term sets as well as sitecollection termsets #4834

Closed
Tracked by #4830
martinlingstuyl opened this issue May 5, 2023 · 3 comments
Assignees
Milestone

Comments

@martinlingstuyl
Copy link
Contributor

martinlingstuyl commented May 5, 2023

Currently spo term 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 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 from the tenant term store as well as a term 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.

@martinlingstuyl martinlingstuyl added new feature needs peer review Needs second pair of eyes to review the spec or PR labels May 5, 2023
@milanholemans
Copy link
Contributor

LGTM 👍

@martinlingstuyl martinlingstuyl added help wanted and removed needs peer review Needs second pair of eyes to review the spec or PR labels May 6, 2023
@nanddeepn
Copy link
Contributor

Can I work on this?

@martinlingstuyl
Copy link
Contributor Author

Yes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment