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

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 (72) 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/term/term-get.js +14 -5
  15. package/dist/m365/spo/commands/term/term-group-list.js +39 -4
  16. package/dist/m365/spo/commands/term/term-list.js +18 -9
  17. package/dist/m365/spo/commands/term/term-set-get.js +12 -3
  18. package/dist/m365/spo/commands.js +1 -0
  19. package/docs/docs/cmd/aad/o365group/o365group-get.md +0 -12
  20. package/docs/docs/cmd/cli/cli-consent.md +6 -0
  21. package/docs/docs/cmd/cli/cli-doctor.md +17 -0
  22. package/docs/docs/cmd/cli/cli-issue.md +6 -0
  23. package/docs/docs/cmd/cli/cli-reconsent.md +6 -0
  24. package/docs/docs/cmd/cli/completion/completion-sh-setup.md +6 -0
  25. package/docs/docs/cmd/cli/config/config-get.md +6 -0
  26. package/docs/docs/cmd/docs.md +51 -0
  27. package/docs/docs/cmd/login.md +1 -1
  28. package/docs/docs/cmd/pa/app/app-consent-set.md +47 -0
  29. package/docs/docs/cmd/planner/task/task-get.md +0 -6
  30. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.md +118 -0
  31. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.md +111 -0
  32. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.md +97 -0
  33. package/docs/docs/cmd/search/externalconnection/externalconnection-get.md +17 -0
  34. package/docs/docs/cmd/search/externalconnection/externalconnection-list.md +17 -0
  35. package/docs/docs/cmd/spo/file/file-list.md +9 -6
  36. package/docs/docs/cmd/spo/file/file-remove.md +12 -0
  37. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.md +19 -0
  38. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.md +12 -0
  39. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.md +6 -0
  40. package/docs/docs/cmd/spo/page/page-column-get.md +15 -0
  41. package/docs/docs/cmd/spo/page/page-column-list.md +16 -0
  42. package/docs/docs/cmd/spo/page/page-control-get.md +18 -0
  43. package/docs/docs/cmd/spo/page/page-control-list.md +18 -0
  44. package/docs/docs/cmd/spo/page/page-copy.md +35 -0
  45. package/docs/docs/cmd/spo/page/page-get.md +39 -0
  46. package/docs/docs/cmd/spo/page/page-list.md +53 -0
  47. package/docs/docs/cmd/spo/page/page-section-get.md +12 -0
  48. package/docs/docs/cmd/spo/page/page-section-list.md +13 -0
  49. package/docs/docs/cmd/spo/page/page-template-list.md +31 -0
  50. package/docs/docs/cmd/spo/propertybag/propertybag-get.md +6 -0
  51. package/docs/docs/cmd/spo/propertybag/propertybag-list.md +13 -0
  52. package/docs/docs/cmd/spo/report/report-activityfilecounts.md +7 -0
  53. package/docs/docs/cmd/spo/report/report-activitypages.md +7 -0
  54. package/docs/docs/cmd/spo/report/report-activityusercounts.md +7 -0
  55. package/docs/docs/cmd/spo/report/report-activityuserdetail.md +7 -0
  56. package/docs/docs/cmd/spo/report/report-siteusagedetail.md +7 -0
  57. package/docs/docs/cmd/spo/report/report-siteusagefilecounts.md +7 -0
  58. package/docs/docs/cmd/spo/report/report-siteusagepages.md +7 -0
  59. package/docs/docs/cmd/spo/report/report-siteusagesitecounts.md +7 -0
  60. package/docs/docs/cmd/spo/report/report-siteusagestorage.md +7 -0
  61. package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +20 -0
  62. package/docs/docs/cmd/spo/roledefinition/roledefinition-list.md +20 -0
  63. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.md +20 -0
  64. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.md +18 -0
  65. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +20 -0
  66. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.md +17 -0
  67. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.md +13 -0
  68. package/docs/docs/cmd/spo/term/term-get.md +111 -10
  69. package/docs/docs/cmd/spo/term/term-group-list.md +70 -2
  70. package/docs/docs/cmd/spo/term/term-list.md +80 -8
  71. package/docs/docs/cmd/spo/term/term-set-get.md +92 -8
  72. package/package.json +1 -1
@@ -143,3 +143,56 @@ m365 spo page list --webUrl https://contoso.sharepoint.com/sites/team-a
143
143
  Name,Title
144
144
  Home.aspx,Home
145
145
  ```
146
+
147
+ === "Markdown"
148
+
149
+ ```md
150
+ # spo page list --webUrl "https://contoso.sharepoint.com/sites/team-a"
151
+
152
+ Date: 5/1/2023
153
+
154
+ ## Home (1)
155
+
156
+ Property | Value
157
+ ---------|-------
158
+ CheckInComment |
159
+ CheckOutType | 2
160
+ ContentTag | {86CE2216-83F1-4AB4-9B7E-FFBDCF890992},14,1
161
+ CustomizedPageStatus | 1
162
+ ETag | "{86CE2216-83F1-4AB4-9B7E-FFBDCF890992},14"
163
+ Exists | true
164
+ IrmEnabled | false
165
+ Length | 805
166
+ Level | 1
167
+ LinkingUrl |
168
+ MajorVersion | 2
169
+ MinorVersion | 0
170
+ Name | Home.aspx
171
+ ServerRelativeUrl | /sites/team-a/SitePages/Home.aspx
172
+ TimeCreated | 2021-09-19T00:20:25Z
173
+ TimeLastModified | 2023-05-01T20:43:12Z
174
+ Title | Home
175
+ UIVersion | 1024
176
+ UIVersionLabel | 2.0
177
+ UniqueId | 86ce2216-83f1-4ab4-9b7e-ffbdcf890992
178
+ AbsoluteUrl | https://contoso.sharepoint.com/sites/team-a/SitePages/Home.aspx
179
+ BannerImageUrl | https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/51.39929962158204,-0.256799995899204/12?mapSize=512,512&key=AobmrKIjQInHa8zf5IjtCu3zVgIZFewRhY9M8NUzpYfvMdO2RKDO2eKI6uRFrP6b
180
+ BannerThumbnailUrl | https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/51.39929962158204,-0.256799995899204/12?mapSize=512,512&key=AobmrKIjQInHa8zf5IjtCu3zVgIZFewRhY9M8NUzpYfvMdO2RKDO2eKI6uRFrP6b
181
+ CallToAction |
182
+ ContentTypeId | 0x0101009D1CB255DA76424F860D91F20E6C41180015C00F3A91848C479243E57A8317E76E
183
+ DoesUserHaveEditPermission | true
184
+ FileName | Home.aspx
185
+ FirstPublished | 0001-01-01T08:00:00Z
186
+ Id | 1
187
+ IsPageCheckedOutToCurrentUser | false
188
+ IsWebWelcomePage | true
189
+ Modified | 2023-05-01T20:43:12Z
190
+ PageLayoutType | Home
191
+ PromotedState | 0
192
+ Url | SitePages/Home.aspx
193
+ Version | 2.0
194
+ AlternativeUrlMap | {"UserPhotoAspx":"https://contoso.sharepoint.com/\_vti\_bin/afdcache.ashx/\_userprofile/userphoto.jpg?\_oat\_=1683047510\_65dfacc308ae7abe460ae6e6ce6943d0d218fd9232a69a03fee352b2dbaead4e&P1=1682980536&P2=-64532418&P3=1&P4=itPWLPx8ka8ZYUpPbQSywAH8cSvgj2M7otD6geZ26NUbROmU99rFYzmdBccd7PCiYfzz53QfSTzDpPE0iaxF0OMY0oAYpHVrz5pDUU3k8Se9vXh%2bzaUnJtIJPlp3boTlzcbs6D%2fjown%2bPT%2bTMgEyRGqVjwt8QieNK3z1UNrTmkz8VYD3fmPyVpQMKtZ33o8K8cTsGl11qw6DghlKTP2odBEBSCdBfiJd00z%2fbxvJXi7on0x6RyzYMJbAUXgdBCfDS2QnU8bVWE83aBYHm%2bKo6YZllCM%2bAGQ%2bEfrMDBJDsQEKWryy4gQdkF2JVIaq%2fx0BbRSmVnQKkPVM3iqV8QWyRw%3d%3d","MediaTAThumbnailPathUrl":"https://ukwest1-mediap.svc.ms/transform/thumbnail?provider=spo&inputFormat={.fileType}&cs=UEFHRVN8U1BP&docid={.spHost}/\_api/v2.0/sharePoint:{.resourceUrl}:/driveItem&w={.widthValue}&oauth\_token=bearer%20{.oauthToken}","MediaTAThumbnailHostUrl":"https://ukwest1-mediap.svc.ms","AFDCDNEnabled":"True","CurrentSiteCDNPolicy":"True","PublicCDNEnabled":"True","PrivateCDNEnabled":"True"}
195
+ CanvasContent1 | [{"position":{"layoutIndex":1,"zoneIndex":0.5,"sectionIndex":1,"controlIndex":1,"sectionFactor":6},"controlType":3,"id":"f85f8dfa-9052-4be8-8954-8cdafe811b97","webPartId":"e377ea37-9047-43b9-8cdb-a761be2f8e09","reservedHeight":528,"reservedWidth":570,"addedFromPersistedData":true,"webPartData":{"id":"e377ea37-9047-43b9-8cdb-a761be2f8e09","instanceId":"f85f8dfa-9052-4be8-8954-8cdafe811b97","title":"Bing Maps","description":"Display a location on a map using Bing Maps.","audiences":[],"serverProcessedContent":{"htmlStrings":{},"searchablePlainTexts":{},"imageSources":{},"links":{}},"dataVersion":"1.0","properties":{"pushPins":[],"maxNumberOfPushPins":1,"shouldShowPushPinTitle":true,"zoomLevel":12,"mapType":"road","center":{"latitude":51.399299621582038,"longitude":-0.256799995899204,"altitude":0,"altitudeReference":-1}},"containsDynamicDataSource":false}},{"position":{"layoutIndex":1,"zoneIndex":0.5,"sectionIndex":2,"controlIndex":1,"sectionFactor":6},"id":"emptySection","addedFromPersistedData":true},{"controlType":3,"webPartId":"8c88f208-6c77-4bdb-86a0-0c47b4316588","position":{"zoneIndex":1,"sectionIndex":1,"controlIndex":1,"sectionFactor":8},"id":"71eab4c9-8340-4706-96b9-331527890975","addedFromPersistedData":true,"reservedHeight":406,"reservedWidth":776,"webPartData":{"id":"8c88f208-6c77-4bdb-86a0-0c47b4316588","instanceId":"71eab4c9-8340-4706-96b9-331527890975","title":"News","audiences":[],"serverProcessedContent":{"htmlStrings":{},"searchablePlainTexts":{},"imageSources":{},"links":{"baseUrl":"/sites/team-a"}},"dataVersion":"1.12","properties":{"layoutId":"FeaturedNews","dataProviderId":"news","emptyStateHelpItemsCount":"1","showChrome":true,"carouselSettings":{"autoplay":false,"autoplaySpeed":5,"dots":true,"lazyLoad":true},"showNewsMetadata":{"showSocialActions":false,"showAuthor":true,"showDate":true},"newsDataSourceProp":1,"carouselHeroWrapperComponentId":"","prefetchCount":4,"filters":[{"filterType":1,"value":"","values":[]}],"newsSiteList":[],"renderItemsSliderValue":4,"layoutComponentId":"","webId":"c59dae7c-48bd-4241-96b7-b81d4bbc25cb","siteId":"9fcdddc5-bd7e-4120-b934-bf675b76855f","filterKQLQuery":""},"containsDynamicDataSource":false}},{"position":{"zoneIndex":1,"sectionIndex":1,"controlIndex":1.5,"sectionFactor":8,"layoutIndex":1},"controlType":3,"id":"dcfa91cf-96fa-47cd-9363-7f2fea373526","webPartId":"490d7c76-1824-45b2-9de3-676421c997fa","reservedHeight":326,"reservedWidth":776,"addedFromPersistedData":true,"webPartData":{"id":"490d7c76-1824-45b2-9de3-676421c997fa","instanceId":"dcfa91cf-96fa-47cd-9363-7f2fea373526","title":"Embed","description":"Embed content from other sites such as Sway, YouTube, Vimeo, and more","audiences":[],"serverProcessedContent":{"htmlStrings":{},"searchablePlainTexts":{},"imageSources":{},"links":{}},"dataVersion":"1.2","properties":{"embedCode":"","cachedEmbedCode":"","shouldScaleWidth":true,"tempState":{},"thumbnailUrl":""},"containsDynamicDataSource":false}},{"controlType":3,"webPartId":"eb95c819-ab8f-4689-bd03-0c2d65d47b1f","position":{"zoneIndex":1,"sectionIndex":1,"controlIndex":2,"sectionFactor":8},"id":"3dde98e4-07d7-46d6-b57f-128d6ae5438c","addedFromPersistedData":true,"reservedHeight":939,"reservedWidth":776,"webPartData":{"id":"eb95c819-ab8f-4689-bd03-0c2d65d47b1f","instanceId":"3dde98e4-07d7-46d6-b57f-128d6ae5438c","title":"Site activity","audiences":[],"serverProcessedContent":{"htmlStrings":{},"searchablePlainTexts":{},"imageSources":{},"links":{}},"dataVersion":"1.0","properties":{"maxItems":9},"containsDynamicDataSource":false}},{"position":{"zoneIndex":1,"sectionIndex":2,"controlIndex":0.5,"sectionFactor":4,"layoutIndex":1},"controlType":3,"id":"9d1fed5d-9274-4a82-8891-58bbc937c92b","webPartId":"f6fdf4f8-4a24-437b-a127-32e66a5dd9b4","addedFromPersistedData":true,"reservedHeight":449,"reservedWidth":364,"webPartData":{"id":"f6fdf4f8-4a24-437b-a127-32e66a5dd9b4","instanceId":"9d1fed5d-9274-4a82-8891-58bbc937c92b","title":"Twitter","description":"Display a Twitter feed","audiences":[],"serverProcessedContent":{"htmlStrings":{},"searchablePlainTexts":{},"imageSources":{},"links":{}},"dataVersion":"1.0","properties":{"displayAs":"list","displayHeader":false,"displayFooter":false,"displayBorders":true,"limit":"3","term":"@microsoft","widthSlider":100,"title":"","allowStretch":false,"displayLightTheme":true},"containsDynamicDataSource":false}},{"controlType":3,"webPartId":"c70391ea-0b10-4ee9-b2b4-006d3fcad0cd","position":{"zoneIndex":1,"sectionIndex":2,"controlIndex":1,"sectionFactor":4},"id":"2d412c2a-ed7d-4117-bf54-f1b9a28c1346","addedFromPersistedData":true,"reservedHeight":173,"reservedWidth":364,"webPartData":{"id":"c70391ea-0b10-4ee9-b2b4-006d3fcad0cd","instanceId":"2d412c2a-ed7d-4117-bf54-f1b9a28c1346","title":"Quick links","audiences":[],"serverProcessedContent":{"htmlStrings":{},"searchablePlainTexts":{"title":"Quick links","items[0].title":"Learn about a team site","items[1].title":"Learn how to add a page"},"imageSources":{},"links":{"baseUrl":"/sites/team-a","items[0].sourceItem.url":"https://go.microsoft.com/fwlink/p/?linkid=827918","items[1].sourceItem.url":"https://go.microsoft.com/fwlink/p/?linkid=827919"},"componentDependencies":{"layoutComponentId":"706e33c8-af37-4e7b-9d22-6e5694d92a6f"}},"dataVersion":"2.2","properties":{"items":[{"sourceItem":{"itemType":2},"thumbnailType":3,"id":1,"description":"","altText":"","rawPreviewImageMinCanvasWidth":32767},{"sourceItem":{"itemType":2},"thumbnailType":3,"id":2,"description":"","altText":"","rawPreviewImageMinCanvasWidth":32767}],"isMigrated":true,"layoutId":"List","shouldShowThumbnail":true,"hideWebPartWhenEmpty":true,"dataProviderId":"QuickLinks","listLayoutOptions":{"showDescription":false,"showIcon":true},"imageWidth":100,"buttonLayoutOptions":{"showDescription":false,"buttonTreatment":2,"iconPositionType":2,"textAlignmentVertical":2,"textAlignmentHorizontal":2,"linesOfText":2},"waffleLayoutOptions":{"iconSize":1,"onlyShowThumbnail":false},"webId":"c59dae7c-48bd-4241-96b7-b81d4bbc25cb","siteId":"9fcdddc5-bd7e-4120-b934-bf675b76855f"},"containsDynamicDataSource":false}},{"controlType":3,"webPartId":"f92bf067-bc19-489e-a556-7fe95f508720","position":{"zoneIndex":1,"sectionIndex":2,"controlIndex":2,"sectionFactor":4},"id":"c047c8d5-b5d0-4852-8a38-b58da702243c","addedFromPersistedData":true,"reservedHeight":291,"reservedWidth":364,"webPartData":{"id":"f92bf067-bc19-489e-a556-7fe95f508720","instanceId":"c047c8d5-b5d0-4852-8a38-b58da702243c","title":"Document library","audiences":[],"serverProcessedContent":{"htmlStrings":{},"searchablePlainTexts":{"listTitle":"Documents"},"imageSources":{},"links":{}},"dynamicDataPaths":{},"dynamicDataValues":{"filterBy":{}},"dataVersion":"1.0","properties":{"isDocumentLibrary":true,"showDefaultDocumentLibrary":true,"webpartHeightKey":4,"selectedListUrl":""},"containsDynamicDataSource":true}},{"controlType":0,"pageSettingsSlice":{"isDefaultDescription":true,"isDefaultThumbnail":true,"isSpellCheckEnabled":true,"globalRichTextStylingVersion":0,"rtePageSettings":{"contentVersion":4},"isEmailReady":false}}]
196
+ Language | en-us
197
+ SitePageFlags |
198
+ ```
@@ -64,3 +64,15 @@ m365 spo page section get --webUrl https://contoso.sharepoint.com/sites/team-a -
64
64
  order,columns
65
65
  1,"[{""factor"":12,""order"":1}]"
66
66
  ```
67
+
68
+ === "Markdown"
69
+
70
+ ```md
71
+ # spo page section get --webUrl "https://contoso.sharepoint.com/sites/team-a" --pageName "home.aspx" --section "1"
72
+
73
+ Date: 5/3/2023
74
+
75
+ Property | Value
76
+ ---------|-------
77
+ order | 1
78
+ ```
@@ -64,3 +64,16 @@ m365 spo page section list --webUrl https://contoso.sharepoint.com/sites/team-a
64
64
  order,columns
65
65
  1,1
66
66
  ```
67
+
68
+ === "Markdown"
69
+
70
+ ```md
71
+ # spo page section list --webUrl "https://contoso.sharepoint.com/sites/team-a" --pageName "home.aspx"
72
+
73
+ Date: 5/3/2023
74
+
75
+ Property | Value
76
+ ---------|-------
77
+ order | 1
78
+
79
+ ```
@@ -79,3 +79,34 @@ m365 spo page template list --webUrl https://contoso.sharepoint.com/sites/team-a
79
79
  Title,FileName,Id,PageLayoutType,Url
80
80
  Company Policy,Company-Policy.aspx,27,Article,SitePages/Templates/Company-Policy.aspx
81
81
  ```
82
+
83
+ === "Markdown"
84
+
85
+ ```md
86
+ # spo page template list --webUrl "https://contoso.sharepoint.com/sites/team-a"
87
+
88
+ Date: 5/4/2023
89
+
90
+ ## template (12)
91
+
92
+ Property | Value
93
+ ---------|-------
94
+ AbsoluteUrl | https://contoso.sharepoint.com/sites/team-a/SitePages/Templates/Company-Policy.aspx
95
+ BannerImageUrl | https://contoso.sharepoint.com/\_layouts/15/images/sitepagethumbnail.png
96
+ BannerThumbnailUrl | https://media.akamai.odsp.cdn.office.net/contoso.sharepoint.com/\_layouts/15/images/sitepagethumbnail.png
97
+ CallToAction |
98
+ ContentTypeId | 0x0101009D1CB255DA76424F860D91F20E6C41180015C00F3A91848C479243E57A8317E76E
99
+ DoesUserHaveEditPermission | true
100
+ FileName | template.aspx
101
+ FirstPublished | 0001-01-01T08:00:00Z
102
+ Id | 12
103
+ IsPageCheckedOutToCurrentUser | false
104
+ IsWebWelcomePage | false
105
+ Modified | 2023-05-04T09:37:10Z
106
+ PageLayoutType | Article
107
+ PromotedState | 0
108
+ Title | template
109
+ UniqueId | 318af790-8c04-4b34-b764-e47d6620bba2
110
+ Url | SitePages/Templates/template.aspx
111
+ Version | 0.1
112
+ ```
@@ -72,3 +72,9 @@ m365 spo propertybag get --webUrl https://contoso.sharepoint.com/sites/test --ke
72
72
  ```csv
73
73
  Approved Rejected Pending\ Review
74
74
  ```
75
+
76
+ === "Markdown"
77
+
78
+ ```md
79
+ Approved Rejected Pending\ Review
80
+ ```
@@ -77,3 +77,16 @@ m365 spo propertybag list --webUrl https://contoso.sharepoint.com/sites/test --f
77
77
  key,value
78
78
  vti_approvallevels,Approved Rejected Pending\ Review
79
79
  ```
80
+
81
+ === "Markdown"
82
+
83
+ ```md
84
+ # spo propertybag list --webUrl "https://contoso.sharepoint.com/sites/test"
85
+
86
+ Date: 5/6/2023
87
+
88
+ Property | Value
89
+ ---------|-------
90
+ key | vti_approvallevels
91
+ value | Approved Rejected Pending\ Review
92
+ ```
@@ -69,3 +69,10 @@ m365 spo report activityfilecounts --period D7 --output json > "activityfilecoun
69
69
  Report Refresh Date,Viewed Or Edited,Synced,Shared Internally,Shared Externally,Report Date,Report Period
70
70
  2022-11-26,3,,,,2022-11-26,7
71
71
  ```
72
+
73
+ === "Markdown"
74
+
75
+ ```md
76
+ Report Refresh Date,Viewed Or Edited,Synced,Shared Internally,Shared Externally,Report Date,Report Period
77
+ 2023-05-04,10,,,,2023-05-04,7
78
+ ```
@@ -66,3 +66,10 @@ m365 spo report activitypages --period D7 --output json > "activitypages.json"
66
66
  Report Refresh Date,Visited Page Count,Report Date,Report Period
67
67
  2022-11-26,10,2022-11-26,7
68
68
  ```
69
+
70
+ === "Markdown"
71
+
72
+ ```md
73
+ Report Refresh Date,Visited Page Count,Report Date,Report Period
74
+ 2023-05-04,11,2023-05-04,7
75
+ ```
@@ -74,3 +74,10 @@ m365 spo report activityusercounts --period D7 --output json > "activityusercoun
74
74
  Report Refresh Date,Visited Page,Viewed Or Edited,Synced,Shared Internally,Shared Externally,Report Date,Report Period
75
75
  2022-11-26,1,1,,,,2022-11-26,7
76
76
  ```
77
+
78
+ === "Markdown"
79
+
80
+ ```md
81
+ Report Refresh Date,Visited Page,Viewed Or Edited,Synced,Shared Internally,Shared Externally,Report Date,Report Period
82
+ 2023-05-04,1,1,,,,2023-05-04,7
83
+ ```
@@ -87,3 +87,10 @@ m365 spo report activityuserdetail --period D7 --output json > "activityuserdeta
87
87
  Report Refresh Date,User Principal Name,Is Deleted,Deleted Date,Last Activity Date,Viewed Or Edited File Count,Synced File Count,Shared Internally File Count,Shared Externally File Count,Visited Page Count,Assigned Products,Report Period
88
88
  2022-11-26,Amanda.Powell@contoso.onmicrosoft.com,False,,2022-09-08,0,0,0,0,0,MICROSOFT 365 E5 DEVELOPER (WITHOUT WINDOWS AND AUDIO CONFERENCING)+MICROSOFT POWER AUTOMATE FREE,7
89
89
  ```
90
+
91
+ === "Markdown"
92
+
93
+ ```md
94
+ Report Refresh Date,User Principal Name,Is Deleted,Deleted Date,Last Activity Date,Viewed Or Edited File Count,Synced File Count,Shared Internally File Count,Shared Externally File Count,Visited Page Count,Assigned Products,Report Period
95
+ 2023-05-04,6B56E500AC8309BD90D212680A2B9C03,False,,2023-05-04,16,0,0,0,36,MICROSOFT 365 E5 DEVELOPER (WITHOUT WINDOWS AND AUDIO CONFERENCING)+MICROSOFT POWER AUTOMATE FREE,7
96
+ ```
@@ -90,3 +90,10 @@ m365 spo report siteusagedetail --period D7 --output json > "siteusagedetail.jso
90
90
  Report Refresh Date,Site Id,Site URL,Owner Display Name,Is Deleted,Last Activity Date,File Count,Active File Count,Page View Count,Visited Page Count,Storage Used (Byte),Storage Allocated (Byte),Root Web Template,Owner Principal Name,Report Period
91
91
  2022-11-26,002caf24-2672-4bc4-bc41-2811d5dba62c,https://contoso.sharepoint.com/sites/ElMontePythons,El Monte Pythons Owners,False,,2,0,0,0,1475974,27487790694400,Group,ElMontePythons@contoso.onmicrosoft.com,7
92
92
  ```
93
+
94
+ === "Markdown"
95
+
96
+ ```md
97
+ Report Refresh Date,Site Id,Site URL,Owner Display Name,Is Deleted,Last Activity Date,File Count,Active File Count,Page View Count,Visited Page Count,Storage Used (Byte),Storage Allocated (Byte),Root Web Template,Owner Principal Name,Report Period
98
+ 2023-05-04,00000000-0000-0000-0000-000000000000,2D7F5EEA85EDC827EB4E800B9843699A,9CB5FBB74CCA99D813491DF81BD9445D,False,2023-04-21,11,0,0,0,5979747,27487790694400,Group,C1B73ABEAE1BC69423799C66FE6D115F,7
99
+ ```
@@ -72,3 +72,10 @@ m365 spo report siteusagefilecounts --period D7 --output json > "siteusagefileco
72
72
  Report Refresh Date,Site Type,Total,Active,Report Date,Report Period
73
73
  2022-11-26,All,1320,3,2022-11-26,7
74
74
  ```
75
+
76
+ === "Markdown"
77
+
78
+ ```md
79
+ Report Refresh Date,Site Type,Total,Active,Report Date,Report Period
80
+ 2023-05-04,All,2006,10,2023-05-04,7
81
+ ```
@@ -67,3 +67,10 @@ m365 spo report siteusagepages --period D7 --output json > "siteusagepages.json"
67
67
  Report Refresh Date,Site Type,Page View Count,Report Date,Report Period
68
68
  2022-11-26,All,14,2022-11-26,7
69
69
  ```
70
+
71
+ === "Markdown"
72
+
73
+ ```md
74
+ Report Refresh Date,Site Type,Page View Count,Report Date,Report Period
75
+ 2023-05-04,All,12,2023-05-04,7
76
+ ```
@@ -72,3 +72,10 @@ m365 spo report siteusagesitecounts --period D7 --output json > "siteusagesiteco
72
72
  Report Refresh Date,Site Type,Total,Active,Report Date,Report Period
73
73
  2022-11-26,All,159,2,2022-11-26,7
74
74
  ```
75
+
76
+ === "Markdown"
77
+
78
+ ```md
79
+ Report Refresh Date,Site Type,Total,Active,Report Date,Report Period
80
+ 2023-05-04,All,33,3,2023-05-04,7
81
+ ```
@@ -67,3 +67,10 @@ m365 spo report siteusagestorage --period D7 --output json > "siteusagestorage.j
67
67
  Report Refresh Date,Site Type,Storage Used (Byte),Report Date,Report Period
68
68
  2022-11-26,All,2348104595,2022-11-26,7
69
69
  ```
70
+
71
+ === "Markdown"
72
+
73
+ ```md
74
+ Report Refresh Date,Site Type,Storage Used (Byte),Report Date,Report Period
75
+ 2023-05-04,All,272942096,2023-05-04,7
76
+ ```
@@ -103,3 +103,23 @@ m365 spo roledefinition get --webUrl https://contoso.sharepoint.com/sites/projec
103
103
  BasePermissions,Description,Hidden,Id,Name,Order,RoleTypeKind,BasePermissionsValue,RoleTypeKindValue
104
104
  "{""High"":""2147483647"",""Low"":""4294967295""}",Has full control.,,1073741829,Full Control,1,5,"[""ViewListItems"",""AddListItems"",""EditListItems"",""DeleteListItems"",""ApproveItems"",""OpenItems"",""ViewVersions"",""DeleteVersions"",""CancelCheckout"",""ManagePersonalViews"",""ManageLists"",""ViewFormPages"",""AnonymousSearchAccessList"",""Open"",""ViewPages"",""AddAndCustomizePages"",""ApplyThemeAndBorder"",""ApplyStyleSheets"",""ViewUsageData"",""CreateSSCSite"",""ManageSubwebs"",""CreateGroups"",""ManagePermissions"",""BrowseDirectories"",""BrowseUserInfo"",""AddDelPrivateWebParts"",""UpdatePersonalWebParts"",""ManageWeb"",""AnonymousSearchAccessWebLists"",""UseClientIntegration"",""UseRemoteAPIs"",""ManageAlerts"",""CreateAlerts"",""EditMyUserInfo"",""EnumeratePermissions""]",Administrator
105
105
  ```
106
+
107
+ === "Markdown"
108
+
109
+ ```md
110
+ # spo roledefinition get --webUrl "https://contoso.sharepoint.com/sites/project-x" --id "1073741829"
111
+
112
+ Date: 5/6/2023
113
+
114
+ ## Full Control (1073741829)
115
+
116
+ Property | Value
117
+ ---------|-------
118
+ Description | Has full control.
119
+ Hidden | false
120
+ Id | 1073741829
121
+ Name | Full Control
122
+ Order | 1
123
+ RoleTypeKind | 5
124
+ RoleTypeKindValue | Administrator
125
+ ```
@@ -96,3 +96,23 @@ m365 spo roledefinition list --webUrl https://contoso.sharepoint.com/sites/proje
96
96
  Id,Name
97
97
  1073741829,Full Control
98
98
  ```
99
+
100
+ === "Markdown"
101
+
102
+ ```md
103
+ # spo roledefinition list --webUrl "https://contoso.sharepoint.com/sites/project-x"
104
+
105
+ Date: 5/6/2023
106
+
107
+ ## Full Control (1073741829)
108
+
109
+ Property | Value
110
+ ---------|-------
111
+ Description | Has full control.
112
+ Hidden | false
113
+ Id | 1073741829
114
+ Name | Full Control
115
+ Order | 1
116
+ RoleTypeKind | 5
117
+ RoleTypeKindValue | Administrator
118
+ ```
@@ -79,3 +79,23 @@ m365 spo serviceprincipal grant add --resource 'contoso-api' --scope 'user_imper
79
79
  ClientId,ConsentType,IsDomainIsolated,ObjectId,PackageName,Resource,ResourceId,Scope
80
80
  6004a642-185c-479a-992a-15d1c23e2229,AllPrincipals,,QqYEYFwYmkeZKhXRwj4iKRcAa6TiIbFNvGnKY1dqONY,,Microsoft Graph,a46b0017-21e2-4db1-bc69-ca63576a38d6,Mail.Read
81
81
  ```
82
+
83
+ === "Markdown"
84
+
85
+ ```md
86
+ # spo serviceprincipal grant add --resource "Microsoft Graph" --scope "Mail.Read"
87
+
88
+ Date: 5/7/2023
89
+
90
+ ## 4WtBzD8u5kW-sYuikIWL_8ZYTP5mJB1LnC6OT4Ibr94
91
+
92
+ Property | Value
93
+ ---------|-------
94
+ ClientId | cc416be1-2e3f-45e6-beb1-8ba290858bff
95
+ ConsentType | AllPrincipals
96
+ IsDomainIsolated | false
97
+ ObjectId | 4WtBzD8u5kW-sYuikIWL\_8ZYTP5mJB1LnC6OT4Ibr94
98
+ Resource | Microsoft Graph
99
+ ResourceId | fe4c58c6-2466-4b1d-9c2e-8e4f821bafde
100
+ Scope | Mail.Read
101
+ ```
@@ -62,3 +62,21 @@ m365 spo serviceprincipal grant list
62
62
  IsDomainIsolated,ObjectId,PackageName,Resource,ResourceId,Scope
63
63
  ,QqYEYFwYmkeZKhXRwj4iKV5QwbD60RVCo6xeMUG407E,,Windows Azure Active Directory,b0c1505e-d1fa-4215-a3ac-5e3141b8d3b1,User.Read
64
64
  ```
65
+
66
+ === "Markdown"
67
+
68
+ ```md
69
+ # spo serviceprincipal grant list
70
+
71
+ Date: 5/7/2023
72
+
73
+ ## 4WtBzD8u5kW-sYuikIWL_8ZYTP5mJB1LnC6OT4Ibr94
74
+
75
+ Property | Value
76
+ ---------|-------
77
+ IsDomainIsolated | false
78
+ ObjectId | 4WtBzD8u5kW-sYuikIWL\_8ZYTP5mJB1LnC6OT4Ibr94
79
+ Resource | Microsoft Graph
80
+ ResourceId | fe4c58c6-2466-4b1d-9c2e-8e4f821bafde
81
+ Scope | Mail.Read
82
+ ```
@@ -78,3 +78,23 @@ m365 spo serviceprincipal permissionrequest approve --id 4dc4c043-25ee-40f2-81d3
78
78
  ClientId,ConsentType,IsDomainIsolated,ObjectId,PackageName,Resource,ResourceId,Scope
79
79
  6004a642-185c-479a-992a-15d1c23e2229,AllPrincipals,false,QqYEYFwYmkeZKhXRwj4iKRcAa6TiIbFNvGnKY1dqONY,null,Microsoft Graph,a46b0017-21e2-4db1-bc69-ca63576a38d6,Directory.ReadWrite.All
80
80
  ```
81
+
82
+ === "Markdown"
83
+
84
+ ```md
85
+ # spo serviceprincipal permissionrequest approve --id "ecc2f667-e219-4c65-908e-957d68244d0c"
86
+
87
+ Date: 5/7/2023
88
+
89
+ ## 4WtBzD8u5kW-sYuikIWL_8ZYTP5mJB1LnC6OT4Ibr94
90
+
91
+ Property | Value
92
+ ---------|-------
93
+ ClientId | cc416be1-2e3f-45e6-beb1-8ba290858bff
94
+ ConsentType | AllPrincipals
95
+ IsDomainIsolated | false
96
+ ObjectId | 4WtBzD8u5kW-sYuikIWL\_8ZYTP5mJB1LnC6OT4Ibr94
97
+ Resource | Microsoft Graph
98
+ ResourceId | fe4c58c6-2466-4b1d-9c2e-8e4f821bafde
99
+ Scope | Calendars.Read
100
+ ```
@@ -60,3 +60,20 @@ m365 spo serviceprincipal permissionrequest list
60
60
  Id,Resource,ResourceId,Scope
61
61
  6eceed61-77e4-424d-ae1d-696a0de4d768,Microsoft Graph,Microsoft Graph,Reports.Read.All
62
62
  ```
63
+
64
+ === "Markdown"
65
+
66
+ ```md
67
+ # spo serviceprincipal permissionrequest list
68
+
69
+ Date: 5/7/2023
70
+
71
+ ## ecc2f667-e219-4c65-908e-957d68244d0c
72
+
73
+ Property | Value
74
+ ---------|-------
75
+ Id | ecc2f667-e219-4c65-908e-957d68244d0c
76
+ Resource | Microsoft Graph
77
+ ResourceId | Microsoft Graph
78
+ Scope | Calendars.Read
79
+ ```
@@ -84,3 +84,16 @@ m365 spo serviceprincipal set --enabled true --confirm
84
84
  AccountEnabled,AppId,ReplyUrls
85
85
  1,48535560-3cc0-442e-a1b4-94c084b3ff59,"[""https://fluidpreview.office.net/spfxsinglesignon"",""https://dev.fluidpreview.office.net/spfxsinglesignon"",""https://contoso.sharepoint.com/"",""https://contoso.sharepoint.com/_forms/spfxsinglesignon.aspx"",""https://contoso.sharepoint.com/_forms/spfxsinglesignon.aspx?redirect"",""https://contoso-admin.sharepoint.com/_forms/spfxsinglesignon.aspx""]"
86
86
  ```
87
+
88
+ === "Markdown"
89
+
90
+ ```md
91
+ # spo serviceprincipal set --enabled "true"
92
+
93
+ Date: 5/6/2023
94
+
95
+ Property | Value
96
+ ---------|-------
97
+ AccountEnabled | true
98
+ AppId | 83defbc2-a963-42c9-9952-1ba92e4bead3
99
+ ```
@@ -10,23 +10,26 @@ m365 spo term get [options]
10
10
 
11
11
  ## Options
12
12
 
13
+ `-u, --webUrl [webUrl]`
14
+ : 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.
15
+
13
16
  `-i, --id [id]`
14
- : ID of the term to retrieve. Specify `name` or `id` but not both
17
+ : ID of the term to retrieve. Specify `name` or `id` but not both.
15
18
 
16
19
  `-n, --name [name]`
17
- : Name of the term to retrieve. Specify `name` or `id` but not both
20
+ : Name of the term 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
  `--termSetId [termSetId]`
26
- : ID of the term set to which the term belongs. Specify `termSetId` or `termSetName` but not both
29
+ : ID of the term set to which the term belongs. Specify `termSetId` or `termSetName` but not both.
27
30
 
28
31
  `--termSetName [termSetName]`
29
- : Name of the term set to which the term belongs. Specify `termSetId` or `termSetName` but not both
32
+ : Name of the term set to which the term belongs. Specify `termSetId` or `termSetName` but not both.
30
33
 
31
34
  --8<-- "docs/cmd/_global.md"
32
35
 
@@ -35,24 +38,122 @@ m365 spo term get [options]
35
38
  When retrieving term by its ID, it's sufficient to specify just the ID. When retrieving it by its name however, you need to specify the parent term group and term set using either their names or IDs.
36
39
 
37
40
  !!! important
38
- To use this command you have to have permissions to access the tenant admin site.
41
+ To use this command without the --webUrl option you have to have permissions to access the tenant admin site.
39
42
 
43
+ 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 to 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.
44
+
40
45
  ## Examples
41
46
 
42
- Get information about a taxonomy term using its ID
47
+ Get information about a taxonomy term using its ID from the specified sitecollection.
48
+
49
+ ```sh
50
+ m365 spo term get --webUrl https://contoso.sharepoint.com/sites/project-x --id 0e8f395e-ff58-4d45-9ff7-e331ab728beb
51
+ ```
52
+
53
+ Get information about a taxonomy term using its ID.
43
54
 
44
55
  ```sh
45
56
  m365 spo term get --id 0e8f395e-ff58-4d45-9ff7-e331ab728beb
46
57
  ```
47
58
 
48
- Get information about a taxonomy term using its name, retrieving the parent term group and term set using their names
59
+ Get information about a taxonomy term using its name, retrieving the parent term group and term set using their names.
49
60
 
50
61
  ```sh
51
62
  m365 spo term get --name IT --termGroupName People --termSetName Department
52
63
  ```
53
64
 
54
- Get information about a taxonomy term using its name, retrieving the parent term group and term set using their IDs
65
+ Get information about a taxonomy term using its name, retrieving the parent term group and term set using their IDs.
55
66
 
56
67
  ```sh
57
68
  m365 spo term get --name IT --termGroupId 5c928151-c140-4d48-aab9-54da901c7fef --termSetId 8ed8c9ea-7052-4c1d-a4d7-b9c10bffea6f
58
69
  ```
70
+
71
+ ## Response
72
+
73
+ === "JSON"
74
+
75
+ ```json
76
+ {
77
+ "CreatedDate": "2021-07-07T09:42:02.283Z",
78
+ "Id": "2b5c71a6-d72b-49a8-a3bf-d80636d85b44",
79
+ "LastModifiedDate": "2021-07-07T09:42:02.283Z",
80
+ "Name": "IT",
81
+ "CustomProperties": {},
82
+ "CustomSortOrder": null,
83
+ "IsAvailableForTagging": true,
84
+ "Owner": "NT Service\\SPTimerV4",
85
+ "Description": "",
86
+ "IsDeprecated": false,
87
+ "IsKeyword": false,
88
+ "IsPinned": false,
89
+ "IsPinnedRoot": false,
90
+ "IsReused": false,
91
+ "IsRoot": true,
92
+ "IsSourceTerm": true,
93
+ "LocalCustomProperties": {},
94
+ "MergedTermIds": [],
95
+ "PathOfTerm": "IT",
96
+ "TermsCount": 1
97
+ }
98
+ ```
99
+
100
+ === "Text"
101
+
102
+ ```text
103
+ CreatedDate : 2021-07-07T09:42:02.283Z
104
+ CustomProperties : {}
105
+ CustomSortOrder : null
106
+ Description :
107
+ Id : 2b5c71a6-d72b-49a8-a3bf-d80636d85b44
108
+ IsAvailableForTagging: true
109
+ IsDeprecated : false
110
+ IsKeyword : false
111
+ IsPinned : false
112
+ IsPinnedRoot : false
113
+ IsReused : false
114
+ IsRoot : true
115
+ IsSourceTerm : true
116
+ LastModifiedDate : 2021-07-07T09:42:02.283Z
117
+ LocalCustomProperties: {}
118
+ MergedTermIds : []
119
+ Name : IT
120
+ Owner : NT Service\SPTimerV4
121
+ PathOfTerm : IT
122
+ TermsCount : 1
123
+ ```
124
+
125
+ === "CSV"
126
+
127
+ ```csv
128
+ CreatedDate,Id,LastModifiedDate,Name,IsAvailableForTagging,Owner,Description,IsDeprecated,IsKeyword,IsPinned,IsPinnedRoot,IsReused,IsRoot,IsSourceTerm,PathOfTerm,TermsCount
129
+ 2021-07-07T09:42:02.283Z,2b5c71a6-d72b-49a8-a3bf-d80636d85b44,2021-07-07T09:42:02.283Z,IT,1,NT Service\SPTimerV4,,,,,,,1,1,IT,1
130
+ ```
131
+
132
+ === "Markdown"
133
+
134
+ ```md
135
+ # spo term get --termGroupName "People" --termSetName "Department" --name "IT"
136
+
137
+ Date: 5/8/2023
138
+
139
+ ## IT (2b5c71a6-d72b-49a8-a3bf-d80636d85b44)
140
+
141
+ Property | Value
142
+ ---------|-------
143
+ CreatedDate | 2021-07-07T09:42:02.283Z
144
+ Id | 2b5c71a6-d72b-49a8-a3bf-d80636d85b44
145
+ LastModifiedDate | 2021-07-07T09:42:02.283Z
146
+ Name | IT
147
+ IsAvailableForTagging | true
148
+ Owner | NT Service\SPTimerV4
149
+ Description |
150
+ IsDeprecated | false
151
+ IsKeyword | false
152
+ IsPinned | false
153
+ IsPinnedRoot | false
154
+ IsReused | false
155
+ IsRoot | true
156
+ IsSourceTerm | true
157
+ PathOfTerm | IT
158
+ TermsCount | 1
159
+ ```