Currently spo term add can only be run on the Global Termstore on tenant level.
This has three consequences:
- You need the SPO administrator role to run this command.
- You cannot use it on the sitecollection specific term store.
- 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.
Currently spo term add can only be run on the Global Termstore on tenant level.
This has three 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. 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
spoAdminUrlto achieve the desired result.