@pnp/cli-microsoft365 6.8.0-beta.a10f6e4 → 6.8.0-beta.c74eb4b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/.eslintrc.js +2 -0
  2. package/README.md +6 -1
  3. package/dist/m365/commands/commands.js +1 -0
  4. package/dist/m365/commands/docs.js +42 -0
  5. package/dist/m365/commands/login.js +1 -1
  6. package/dist/m365/pa/commands/app/app-consent-set.js +101 -0
  7. package/dist/m365/pa/commands.js +1 -0
  8. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-get.js +97 -0
  9. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-list.js +85 -0
  10. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-policysettings-list.js +89 -0
  11. package/dist/m365/purview/commands.js +3 -0
  12. package/dist/m365/spo/commands/file/file-list.js +15 -4
  13. package/dist/m365/spo/commands/file/file-remove.js +3 -0
  14. package/dist/m365/spo/commands/list/list-get.js +30 -3
  15. package/dist/m365/spo/commands/list/list-list.js +39 -2
  16. package/dist/m365/spo/commands/term/term-add.js +13 -4
  17. package/dist/m365/spo/commands/term/term-get.js +14 -5
  18. package/dist/m365/spo/commands/term/term-group-get.js +12 -3
  19. package/dist/m365/spo/commands/term/term-group-list.js +39 -4
  20. package/dist/m365/spo/commands/term/term-list.js +18 -9
  21. package/dist/m365/spo/commands/term/term-set-add.js +13 -4
  22. package/dist/m365/spo/commands/term/term-set-get.js +12 -3
  23. package/dist/m365/spo/commands/term/term-set-list.js +12 -3
  24. package/dist/m365/spo/commands.js +1 -0
  25. package/docs/docs/cmd/aad/o365group/o365group-get.md +0 -12
  26. package/docs/docs/cmd/cli/cli-consent.md +6 -0
  27. package/docs/docs/cmd/cli/cli-doctor.md +17 -0
  28. package/docs/docs/cmd/cli/cli-issue.md +6 -0
  29. package/docs/docs/cmd/cli/cli-reconsent.md +6 -0
  30. package/docs/docs/cmd/cli/completion/completion-sh-setup.md +6 -0
  31. package/docs/docs/cmd/cli/config/config-get.md +6 -0
  32. package/docs/docs/cmd/docs.md +51 -0
  33. package/docs/docs/cmd/login.md +1 -1
  34. package/docs/docs/cmd/pa/app/app-consent-set.md +47 -0
  35. package/docs/docs/cmd/planner/task/task-get.md +0 -6
  36. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.md +118 -0
  37. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.md +111 -0
  38. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.md +97 -0
  39. package/docs/docs/cmd/search/externalconnection/externalconnection-get.md +17 -0
  40. package/docs/docs/cmd/search/externalconnection/externalconnection-list.md +17 -0
  41. package/docs/docs/cmd/spo/file/file-list.md +9 -6
  42. package/docs/docs/cmd/spo/file/file-remove.md +12 -0
  43. package/docs/docs/cmd/spo/list/list-get.md +10 -0
  44. package/docs/docs/cmd/spo/list/list-list.md +28 -0
  45. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.md +19 -0
  46. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.md +12 -0
  47. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.md +6 -0
  48. package/docs/docs/cmd/spo/page/page-column-get.md +15 -0
  49. package/docs/docs/cmd/spo/page/page-column-list.md +16 -0
  50. package/docs/docs/cmd/spo/page/page-control-get.md +18 -0
  51. package/docs/docs/cmd/spo/page/page-control-list.md +18 -0
  52. package/docs/docs/cmd/spo/page/page-copy.md +35 -0
  53. package/docs/docs/cmd/spo/page/page-get.md +39 -0
  54. package/docs/docs/cmd/spo/page/page-list.md +53 -0
  55. package/docs/docs/cmd/spo/page/page-section-get.md +12 -0
  56. package/docs/docs/cmd/spo/page/page-section-list.md +13 -0
  57. package/docs/docs/cmd/spo/page/page-template-list.md +31 -0
  58. package/docs/docs/cmd/spo/propertybag/propertybag-get.md +6 -0
  59. package/docs/docs/cmd/spo/propertybag/propertybag-list.md +13 -0
  60. package/docs/docs/cmd/spo/report/report-activityfilecounts.md +7 -0
  61. package/docs/docs/cmd/spo/report/report-activitypages.md +7 -0
  62. package/docs/docs/cmd/spo/report/report-activityusercounts.md +7 -0
  63. package/docs/docs/cmd/spo/report/report-activityuserdetail.md +7 -0
  64. package/docs/docs/cmd/spo/report/report-siteusagedetail.md +7 -0
  65. package/docs/docs/cmd/spo/report/report-siteusagefilecounts.md +7 -0
  66. package/docs/docs/cmd/spo/report/report-siteusagepages.md +7 -0
  67. package/docs/docs/cmd/spo/report/report-siteusagesitecounts.md +7 -0
  68. package/docs/docs/cmd/spo/report/report-siteusagestorage.md +7 -0
  69. package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +20 -0
  70. package/docs/docs/cmd/spo/roledefinition/roledefinition-list.md +20 -0
  71. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.md +20 -0
  72. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.md +18 -0
  73. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +20 -0
  74. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.md +17 -0
  75. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.md +13 -0
  76. package/docs/docs/cmd/spo/term/term-add.md +107 -6
  77. package/docs/docs/cmd/spo/term/term-get.md +111 -10
  78. package/docs/docs/cmd/spo/term/term-group-get.md +71 -5
  79. package/docs/docs/cmd/spo/term/term-group-list.md +70 -2
  80. package/docs/docs/cmd/spo/term/term-list.md +80 -8
  81. package/docs/docs/cmd/spo/term/term-set-add.md +95 -11
  82. package/docs/docs/cmd/spo/term/term-set-get.md +92 -8
  83. package/docs/docs/cmd/spo/term/term-set-list.md +85 -5
  84. package/package.json +1 -1
@@ -10,17 +10,20 @@ m365 spo term list [options]
10
10
 
11
11
  ## Options
12
12
 
13
+ `-u, --webUrl [webUrl]`
14
+ : If specified, allows you to list terms from the tenant term store as well as the sitecollection specific term store. Defaults to the tenant admin site.
15
+
13
16
  `--termGroupId [termGroupId]`
14
- : ID of the term group where the term set is located. Specify `termGroupId` or `termGroupName` but not both
17
+ : ID of the term group where the term set is located. Specify `termGroupId` or `termGroupName` but not both.
15
18
 
16
19
  `--termGroupName [termGroupName]`
17
- : Name of the term group where the term set is located. Specify `termGroupId` or `termGroupName` but not both
20
+ : Name of the term group where the term set is located. Specify `termGroupId` or `termGroupName` but not both.
18
21
 
19
22
  `--termSetId [termSetId]`
20
- : ID of the term set for which to retrieve terms. Specify `termSetId` or `termSetName` but not both
23
+ : ID of the term set for which to retrieve terms. Specify `termSetId` or `termSetName` but not both.
21
24
 
22
25
  `--termSetName [termSetName]`
23
- : Name of the term set for which to retrieve terms. Specify `termSetId` or `termSetName` but not both
26
+ : Name of the term set for which to retrieve terms. Specify `termSetId` or `termSetName` but not both.
24
27
 
25
28
  `--includeChildTerms`
26
29
  : If specified, child terms are loaded as well.
@@ -30,23 +33,31 @@ m365 spo term list [options]
30
33
  ## Remarks
31
34
 
32
35
  !!! important
33
- To use this command you have to have permissions to access the tenant admin site.
36
+ To use this command without the --webUrl option you have to have permissions to access the tenant admin site.
37
+
38
+ When using the `--webUrl` option you can connect to the term store with limited permissions, and do not need the SharePoint Administrator role. You need to be a site visitor or more. It allows you to list terms from the tenant term store as well as terms from the sitecollection term store.
34
39
 
35
40
  ## Examples
36
41
 
37
- List taxonomy terms from the term group and term set with the given name
42
+ List taxonomy terms from the specified sitecollection, the term group and term set with the given name
43
+
44
+ ```sh
45
+ m365 spo term list --webUrl https://contoso.sharepoint.com/sites/project-x --termGroupName PnPTermSets --termSetName PnP-Organizations
46
+ ```
47
+
48
+ List taxonomy terms from the term group and term set with the given name.
38
49
 
39
50
  ```sh
40
51
  m365 spo term list --termGroupName PnPTermSets --termSetName PnP-Organizations
41
52
  ```
42
53
 
43
- List taxonomy terms from the term group and term set with the given ID
54
+ List taxonomy terms from the term group and term set with the given ID.
44
55
 
45
56
  ```sh
46
57
  m365 spo term list --termGroupId 0e8f395e-ff58-4d45-9ff7-e331ab728beb --termSetId 0e8f395e-ff58-4d45-9ff7-e331ab728bec
47
58
  ```
48
59
 
49
- List taxonomy terms from the term group and term set with the given ID including child terms if any are found
60
+ List taxonomy terms from the term group and term set with the given ID including child terms if any are found.
50
61
 
51
62
  ```sh
52
63
  m365 spo term list --termGroupId 0e8f395e-ff58-4d45-9ff7-e331ab728beb --termSetId 0e8f395e-ff58-4d45-9ff7-e331ab728bec --includeChildTerms
@@ -104,6 +115,37 @@ m365 spo term list --termGroupId 0e8f395e-ff58-4d45-9ff7-e331ab728beb --termSetI
104
115
  c387e91c-b553-4b92-886b-9af717cd73b0,Financing
105
116
  ```
106
117
 
118
+ === "Markdown"
119
+
120
+ ```md
121
+ # spo term list --termGroupName "PnPTermSets" --termSetName "PnP-Organizations"
122
+
123
+ Date: 5/8/2023
124
+
125
+ ## Financing (c387e91c-b553-4b92-886b-9af717cd73b0)
126
+
127
+ Property | Value
128
+ ---------|-------
129
+ \_ObjectType\_ | SP.Taxonomy.Term
130
+ \_ObjectIdentity\_ | b6d6b0a0-50c8-2000-41be-bd745120140b\|fec14c62-7c3b-481b-851b-c80d7802b224:te:aCf0Cz4D9UOS7+b/OlUY5XrNqUp10tpPhLK4MIXc7g/qydiOUnAdTKTXucEL/+pvpnFcKyvXqEmjv9gGNthbRA==
131
+ CreatedDate | 2021-07-07T09:42:02.283Z
132
+ Id | c387e91c-b553-4b92-886b-9af717cd73b0
133
+ LastModifiedDate | 2021-07-07T09:42:02.283Z
134
+ Name | Financing
135
+ IsAvailableForTagging | true
136
+ Owner | NT Service\SPTimerV4
137
+ Description |
138
+ IsDeprecated | false
139
+ IsKeyword | false
140
+ IsPinned | false
141
+ IsPinnedRoot | false
142
+ IsReused | false
143
+ IsRoot | true
144
+ IsSourceTerm | true
145
+ PathOfTerm | Financing
146
+ TermsCount | 0
147
+ ```
148
+
107
149
  ### `includeChildTerms` response
108
150
 
109
151
  When we make use of the option `includeChildTerms` the response will differ.
@@ -180,3 +222,33 @@ When we make use of the option `includeChildTerms` the response will differ.
180
222
  c387e91c-b553-4b92-886b-9af717cd73b0,Financing,079b9c7f-9f49-421b-b1e9-83b908e0d9d4
181
223
  ```
182
224
 
225
+ === "Markdown"
226
+
227
+ ```md
228
+ # spo term list --termGroupName "PnPTermSets" --termSetName "PnP-Organizations" --includeChildTerms "true"
229
+
230
+ Date: 5/8/2023
231
+
232
+ ## Financing (c387e91c-b553-4b92-886b-9af717cd73b0)
233
+
234
+ Property | Value
235
+ ---------|-------
236
+ \_ObjectType\_ | SP.Taxonomy.Term
237
+ \_ObjectIdentity\_ | b6d6b0a0-50c8-2000-41be-bd745120140b\|fec14c62-7c3b-481b-851b-c80d7802b224:te:aCf0Cz4D9UOS7+b/OlUY5XrNqUp10tpPhLK4MIXc7g/qydiOUnAdTKTXucEL/+pvpnFcKyvXqEmjv9gGNthbRA==
238
+ CreatedDate | 2021-07-07T09:42:02.283Z
239
+ Id | c387e91c-b553-4b92-886b-9af717cd73b0
240
+ LastModifiedDate | 2021-07-07T09:42:02.283Z
241
+ Name | Financing
242
+ IsAvailableForTagging | true
243
+ Owner | NT Service\SPTimerV4
244
+ Description |
245
+ IsDeprecated | false
246
+ IsKeyword | false
247
+ IsPinned | false
248
+ IsPinnedRoot | false
249
+ IsReused | false
250
+ IsRoot | true
251
+ IsSourceTerm | true
252
+ PathOfTerm | Financing
253
+ TermsCount | 0
254
+ ```
@@ -11,22 +11,25 @@ m365 spo term set add [options]
11
11
  ## Options
12
12
 
13
13
  `-n, --name <name>`
14
- : Name of the term set to add
14
+ : Name of the term set to add.
15
+
16
+ `-u, --webUrl [webUrl]`
17
+ : If specified, allows you to add a term set to the tenant term store as well as the sitecollection specific term store. Defaults to the tenant admin site.
15
18
 
16
19
  `--termGroupId [termGroupId]`
17
- : ID of the term group in which to create the term set. Specify `termGroupId` or `termGroupName` but not both
20
+ : ID of the term group in which to create the term set. Specify `termGroupId` or `termGroupName` but not both.
18
21
 
19
22
  `--termGroupName [termGroupName]`
20
- : Name of the term group in which to create the term set. Specify `termGroupId` or `termGroupName` but not both
23
+ : Name of the term group in which to create the term set. Specify `termGroupId` or `termGroupName` but not both.
21
24
 
22
25
  `-i, --id [id]`
23
- : ID of the term set to add
26
+ : ID of the term set to add.
24
27
 
25
28
  `-d, --description [description]`
26
- : Description of the term set to add
29
+ : Description of the term set to add.
27
30
 
28
31
  `--customProperties [customProperties]`
29
- : JSON string with key-value pairs representing custom properties to set on the term set
32
+ : JSON string with key-value pairs representing custom properties to set on the term set.
30
33
 
31
34
  --8<-- "docs/cmd/_global.md"
32
35
 
@@ -36,30 +39,111 @@ m365 spo term set add [options]
36
39
  When using the `--customProperties` option it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../../user-guide/using-cli.md#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../../user-guide/using-cli.md#passing-complex-content-into-cli-options) instead.
37
40
 
38
41
  !!! important
39
- To use this command you have to have permissions to access the tenant admin site.
42
+ To use this command without the `--webUrl` option you have to have permissions to access the tenant admin site.
43
+
44
+ When using the `--webUrl` option you can connect to the term store with limited permissions, and do not need the SharePoint Administrator role. You need to be a site visitor or more. It allows you to add a term set to a term group in the tenant term store if you are listed as a term store administrator. It allows you to add a term set to a term group in the sitecollection term store if you are a site owner.
40
45
 
41
46
  ## Examples
42
47
 
43
- Add taxonomy term set to the term group specified by ID
48
+ Add taxonomy term set to the term group specified by ID.
44
49
 
45
50
  ```sh
46
51
  m365 spo term set add --name PnP-Organizations --termGroupId 0e8f395e-ff58-4d45-9ff7-e331ab728beb
47
52
  ```
48
53
 
49
- Add taxonomy term set to the term group specified by name. Create the term set with the specified ID
54
+ Add taxonomy term set to the specified sitecollection's term group specified by ID.
55
+
56
+ ```sh
57
+ m365 spo term set add --name PnP-Organizations --termGroupId 0e8f395e-ff58-4d45-9ff7-e331ab728beb --webUrl https://contoso.sharepoint.com/sites/project-x
58
+ ```
59
+
60
+ Add taxonomy term set to the term group specified by name. Create the term set with the specified ID.
50
61
 
51
62
  ```sh
52
63
  m365 spo term set add --name PnP-Organizations --termGroupName PnPTermSets --id aa70ede6-83d1-466d-8d95-30d29e9bbd7c
53
64
  ```
54
65
 
55
- Add taxonomy term set and set its description
66
+ Add taxonomy term set and set its description.
56
67
 
57
68
  ```sh
58
69
  m365 spo term set add --name PnP-Organizations --termGroupId 0e8f395e-ff58-4d45-9ff7-e331ab728beb --description 'Contains a list of organizations'
59
70
  ```
60
71
 
61
- Add taxonomy term set and set its custom properties
72
+ Add taxonomy term set and set its custom properties.
62
73
 
63
74
  ```sh
64
75
  m365 spo term set add --name PnP-Organizations --termGroupId 0e8f395e-ff58-4d45-9ff7-e331ab728beb --customProperties '{"Property":"Value"}'
65
76
  ```
77
+
78
+ ## Response
79
+
80
+ ### Standard response
81
+
82
+ === "JSON"
83
+
84
+ ```json
85
+ {
86
+ "CreatedDate": "2023-05-14T10:28:31.041Z",
87
+ "Id": "c28cfcd2-0705-4b7b-b8e6-ba2fb107e5ec",
88
+ "LastModifiedDate": "2023-05-14T10:28:31.041Z",
89
+ "Name": "PnP-Organizations",
90
+ "CustomProperties": {},
91
+ "CustomSortOrder": null,
92
+ "IsAvailableForTagging": true,
93
+ "Owner": "i:0#.f|membership|john.doe@contoso.com",
94
+ "Contact": "",
95
+ "Description": "",
96
+ "IsOpenForTermCreation": false,
97
+ "Names": {
98
+ "1033": "PnP-Organizations"
99
+ },
100
+ "Stakeholders": []
101
+ }
102
+ ```
103
+
104
+ === "Text"
105
+
106
+ ```text
107
+ Contact :
108
+ CreatedDate : 2023-05-14T10:30:41.018Z
109
+ CustomProperties : {}
110
+ CustomSortOrder : null
111
+ Description :
112
+ Id : 41102744-9f7b-448b-a265-3bbe3db5c064
113
+ IsAvailableForTagging: true
114
+ IsOpenForTermCreation: false
115
+ LastModifiedDate : 2023-05-14T10:30:41.018Z
116
+ Name : PnP-Organizations
117
+ Names : {"1033":"PnP-Organizations"}
118
+ Owner : i:0#.f|membership|john.doe@contoso.com
119
+ Stakeholders : []
120
+ ```
121
+
122
+ === "CSV"
123
+
124
+ ```csv
125
+ CreatedDate,Id,LastModifiedDate,Name,IsAvailableForTagging,Owner,Contact,Description,IsOpenForTermCreation
126
+ 2023-05-14T10:31:11.299Z,8f212d7d-eeb3-454b-811a-01b38fea56e1,2023-05-14T10:31:11.299Z,PnP-Organizations,1,i:0#.f|membership|john.doe@contoso.com,,,
127
+ ```
128
+
129
+ === "Markdown"
130
+
131
+ ```md
132
+ # spo term set add --name "PnP-Organizations" --termGroupId "0e8f395e-ff58-4d45-9ff7-e331ab728beb"
133
+
134
+ Date: 5/14/2023
135
+
136
+ ## PnP-Organizations (73824553-d254-44ef-ac0f-61926b65e925)
137
+
138
+ Property | Value
139
+ ---------|-------
140
+ CreatedDate | 2023-05-14T10:31:42.422Z
141
+ Id | 73824553-d254-44ef-ac0f-61926b65e925
142
+ LastModifiedDate | 2023-05-14T10:31:42.422Z
143
+ Name | PnP-Organizations
144
+ IsAvailableForTagging | true
145
+ Owner | i:0#.f\|membership\|john.doe@contoso.com
146
+ Contact |
147
+ Description |
148
+ IsOpenForTermCreation | false
149
+ ```
@@ -10,35 +10,119 @@ m365 spo term set get [options]
10
10
 
11
11
  ## Options
12
12
 
13
+ `-u, --webUrl [webUrl]`
14
+ : 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.
15
+
13
16
  `-i, --id [id]`
14
- : ID of the term set to retrieve. Specify `name` or `id` but not both
17
+ : ID of the term set to retrieve. Specify `name` or `id` but not both.
15
18
 
16
19
  `-n, --name [name]`
17
- : Name of the term set to retrieve. Specify `name` or `id` but not both
20
+ : Name of the term set to retrieve. Specify `name` or `id` but not both.
18
21
 
19
22
  `--termGroupId [termGroupId]`
20
- : ID of the term group to which the term set belongs. Specify `termGroupId` or `termGroupName` but not both
23
+ : ID of the term group to which the term set belongs. Specify `termGroupId` or `termGroupName` but not both.
21
24
 
22
25
  `--termGroupName [termGroupName]`
23
- : Name of the term group to which the term set belongs. Specify `termGroupId` or `termGroupName` but not both
26
+ : Name of the term group to which the term set belongs. Specify `termGroupId` or `termGroupName` but not both.
24
27
 
25
28
  --8<-- "docs/cmd/_global.md"
26
29
 
27
30
  ## Remarks
28
31
 
29
32
  !!! important
30
- To use this command you have to have permissions to access the tenant admin site.
33
+ To use this command without the --webUrl option you have to have permissions to access the tenant admin site.
34
+
35
+ When using the `--webUrl` option you can connect to the term store with limited permissions, and do not need the SharePoint Administrator role. You need to 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.
31
36
 
32
37
  ## Examples
33
38
 
34
- Get information about a taxonomy term set using its ID
39
+ Get information about a taxonomy term set using its ID.
35
40
 
36
41
  ```sh
37
42
  m365 spo term set get --id 0e8f395e-ff58-4d45-9ff7-e331ab728beb --termGroupName PnPTermSets
38
43
  ```
39
44
 
40
- Get information about a taxonomy term set using its name
45
+ Get information about a taxonomy term set using its name.
41
46
 
42
47
  ```sh
43
- m365 spo term set get --name PnPTermSets --termGroupId 0e8f395e-ff58-4d45-9ff7-e331ab728beb
48
+ m365 spo term set get --name PnP-Organizations --termGroupId 0a099ee9-e231-4ae9-a5b6-d7f94a0d241d
44
49
  ```
50
+
51
+ Get information about a taxonomy term set using its ID from the specified sitecollection.
52
+
53
+ ```sh
54
+ m365 spo term set get --id 0e8f395e-ff58-4d45-9ff7-e331ab728beb --termGroupName PnPTermSets --webUrl https://contoso.sharepoint.com/sites/project-x
55
+ ```
56
+
57
+ ## Response
58
+
59
+ === "JSON"
60
+
61
+ ```json
62
+ {
63
+ "CreatedDate": "2019-09-03T06:41:32.110Z",
64
+ "Id": "0e8f395e-ff58-4d45-9ff7-e331ab728beb",
65
+ "LastModifiedDate": "2019-09-03T06:41:32.260Z",
66
+ "Name": "PnP-Organizations",
67
+ "CustomProperties": {
68
+ "SearchCenterNavVer": "15"
69
+ },
70
+ "CustomSortOrder": null,
71
+ "IsAvailableForTagging": true,
72
+ "Owner": "",
73
+ "Contact": "",
74
+ "Description": "",
75
+ "IsOpenForTermCreation": true,
76
+ "Names": {
77
+ "1033": "PnP-Organizations"
78
+ },
79
+ "Stakeholders": []
80
+ }
81
+ ```
82
+
83
+ === "Text"
84
+
85
+ ```text
86
+ Contact :
87
+ CreatedDate : 2019-09-03T06:41:32.110Z
88
+ CustomProperties : {"SearchCenterNavVer":"15"}
89
+ CustomSortOrder : null
90
+ Description :
91
+ Id : 0e8f395e-ff58-4d45-9ff7-e331ab728beb
92
+ IsAvailableForTagging: true
93
+ IsOpenForTermCreation: true
94
+ LastModifiedDate : 2019-09-03T06:41:32.260Z
95
+ Name : PnP-Organizations
96
+ Names : {"1033":"PnP-Organizations"}
97
+ Owner :
98
+ Stakeholders : []
99
+ ```
100
+
101
+ === "CSV"
102
+
103
+ ```csv
104
+ CreatedDate,Id,LastModifiedDate,Name,IsAvailableForTagging,Owner,Contact,Description,IsOpenForTermCreation
105
+ 2019-09-03T06:41:32.110Z,0e8f395e-ff58-4d45-9ff7-e331ab728beb,2019-09-03T06:41:32.260Z,PnP-Organizations,1,,,,1
106
+ ```
107
+
108
+ === "Markdown"
109
+
110
+ ```md
111
+ # spo term set get --name "PnP-Organizations" --termGroupName "PnPTermSets"
112
+
113
+ Date: 5/9/2023
114
+
115
+ ## PnP-Organizations (0e8f395e-ff58-4d45-9ff7-e331ab728beb)
116
+
117
+ Property | Value
118
+ ---------|-------
119
+ CreatedDate | 2019-09-03T06:41:32.110Z
120
+ Id | 0e8f395e-ff58-4d45-9ff7-e331ab728beb
121
+ LastModifiedDate | 2019-09-03T06:41:32.260Z
122
+ Name | PnP-Organizations
123
+ IsAvailableForTagging | true
124
+ Owner |
125
+ Contact |
126
+ Description |
127
+ IsOpenForTermCreation | true
128
+ ```
@@ -10,29 +10,109 @@ m365 spo term set list [options]
10
10
 
11
11
  ## Options
12
12
 
13
+ `-u, --webUrl [webUrl]`
14
+ : If specified, allows you to list term sets from the tenant term store as well as the sitecollection specific term store. Defaults to the tenant admin site.
15
+
13
16
  `--termGroupId [termGroupId]`
14
- : ID of the term group from which to retrieve term sets. Specify `termGroupName` or `termGroupId` but not both
17
+ : ID of the term group from which to retrieve term sets. Specify `termGroupName` or `termGroupId` but not both.
15
18
 
16
19
  `--termGroupName [termGroupName]`
17
- : Name of the term group from which to retrieve term sets. Specify `termGroupName` or `termGroupId` but not both
20
+ : Name of the term group from which to retrieve term sets. Specify `termGroupName` or `termGroupId` but not both.
18
21
 
19
22
  --8<-- "docs/cmd/_global.md"
20
23
 
21
24
  ## Remarks
22
25
 
23
26
  !!! important
24
- To use this command you have to have permissions to access the tenant admin site.
27
+ To use this command without the --webUrl option you have to have permissions to access the tenant admin site.
28
+
29
+ When using the `--webUrl` option you can connect to the term store with limited permissions, and do not need the SharePoint Administrator role. You need to be a site visitor or more. It allows you to list term sets from the tenant term store as well as term sets from the sitecollection term store.
25
30
 
26
31
  ## Examples
27
32
 
28
- List taxonomy term sets from the term group with the given name
33
+ List taxonomy term sets from the term group with the given name.
29
34
 
30
35
  ```sh
31
36
  m365 spo term set list --termGroupName PnPTermSets
32
37
  ```
33
38
 
34
- List taxonomy term sets from the term group with the given ID
39
+ List taxonomy term sets from the term group with the given ID.
35
40
 
36
41
  ```sh
37
42
  m365 spo term set list --termGroupId 0e8f395e-ff58-4d45-9ff7-e331ab728beb
38
43
  ```
44
+
45
+ List taxonomy term sets from the specified sitecollection, from the term group with the given name.
46
+
47
+ ```sh
48
+ m365 spo term set list --termGroupName PnPTermSets --webUrl https://contoso.sharepoint.com/sites/project-x
49
+ ```
50
+
51
+ ## Response
52
+
53
+ === "JSON"
54
+
55
+ ```json
56
+ [
57
+ {
58
+ "_ObjectType_": "SP.Taxonomy.TermSet",
59
+ "_ObjectIdentity_": "676eb2a0-80e7-2000-3976-610eb3f5a91e|fec14c62-7c3b-481b-851b-c80d7802b224:se:aCf0Cz4D9UOS7+b/OlUY5XrNqUp10tpPhLK4MIXc7g/qydiOUnAdTKTXucEL/+pv",
60
+ "CreatedDate": "2019-09-03T06:41:32.110Z",
61
+ "Id": "8ed8c9ea-7052-4c1d-a4d7-b9c10bffea6f",
62
+ "LastModifiedDate": "2019-09-03T06:41:32.260Z",
63
+ "Name": "Department",
64
+ "CustomProperties": {
65
+ "SearchCenterNavVer": "15"
66
+ },
67
+ "CustomSortOrder": null,
68
+ "IsAvailableForTagging": true,
69
+ "Owner": "",
70
+ "Contact": "",
71
+ "Description": "",
72
+ "IsOpenForTermCreation": true,
73
+ "Names": {
74
+ "1033": "Department"
75
+ },
76
+ "Stakeholders": []
77
+ }
78
+ ]
79
+ ```
80
+
81
+ === "Text"
82
+
83
+ ```text
84
+ Id Name
85
+ ------------------------------------ ----------
86
+ 8ed8c9ea-7052-4c1d-a4d7-b9c10bffea6f Department
87
+ ```
88
+
89
+ === "CSV"
90
+
91
+ ```csv
92
+ _ObjectType_,_ObjectIdentity_,CreatedDate,Id,LastModifiedDate,Name,IsAvailableForTagging,Owner,Contact,Description,IsOpenForTermCreation
93
+ SP.Taxonomy.TermSet,7c6eb2a0-20fe-2000-47f1-69774ac909f5|fec14c62-7c3b-481b-851b-c80d7802b224:se:aCf0Cz4D9UOS7+b/OlUY5XrNqUp10tpPhLK4MIXc7g/qydiOUnAdTKTXucEL/+pv,2019-09-03T06:41:32.110Z,8ed8c9ea-7052-4c1d-a4d7-b9c10bffea6f,2019-09-03T06:41:32.260Z,Department,1,,,,1
94
+ ```
95
+
96
+ === "Markdown"
97
+
98
+ ```md
99
+ # spo term set list --termGroupName "PnPTermSets"
100
+
101
+ Date: 5/13/2023
102
+
103
+ ## Department (8ed8c9ea-7052-4c1d-a4d7-b9c10bffea6f)
104
+
105
+ Property | Value
106
+ ---------|-------
107
+ \_ObjectType\_ | SP.Taxonomy.TermSet
108
+ \_ObjectIdentity\_ | 826eb2a0-405f-2000-41be-bfe56d4cdc73\|fec14c62-7c3b-481b-851b-c80d7802b224:se:aCf0Cz4D9UOS7+b/OlUY5XrNqUp10tpPhLK4MIXc7g/qydiOUnAdTKTXucEL/+pv
109
+ CreatedDate | 2019-09-03T06:41:32.110Z
110
+ Id | 8ed8c9ea-7052-4c1d-a4d7-b9c10bffea6f
111
+ LastModifiedDate | 2019-09-03T06:41:32.260Z
112
+ Name | Department
113
+ IsAvailableForTagging | true
114
+ Owner |
115
+ Contact |
116
+ Description |
117
+ IsOpenForTermCreation | true
118
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "6.8.0-beta.a10f6e4",
3
+ "version": "6.8.0-beta.c74eb4b",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",