Currently spo term set get can only be run on the Global Termstore on tenant level.
This has two consequences:
- You need the SPO administrator role to run this command.
- 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.
Currently spo term set get can only be run on the Global Termstore on tenant level.
This has two consequences:
I propose fixing this.
Options
-u, --webUrl [webUrl]Remarks
When using the
--webUrloption 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
spoAdminUrlto achieve the desired result.