@pnp/cli-microsoft365 6.6.0 → 6.7.0-beta.1a86d83

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 (67) hide show
  1. package/.devcontainer/Dockerfile +1 -1
  2. package/README.md +10 -10
  3. package/csom.json +2 -0
  4. package/dist/Auth.js +75 -4
  5. package/dist/AuthServer.js +2 -1
  6. package/dist/Command.js +56 -7
  7. package/dist/m365/aad/commands/user/user-set.js +145 -30
  8. package/dist/m365/base/AzmgmtCommand.js +11 -0
  9. package/dist/m365/base/PowerAppsCommand.js +11 -0
  10. package/dist/m365/base/PowerPlatformCommand.js +11 -0
  11. package/dist/m365/commands/login.js +17 -1
  12. package/dist/m365/commands/status.js +4 -2
  13. package/dist/m365/flow/commands/run/run-get.js +31 -1
  14. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +144 -0
  15. package/dist/m365/spo/commands/file/file-list.js +108 -32
  16. package/dist/m365/spo/commands/folder/folder-list.js +73 -16
  17. package/dist/m365/spo/commands/list/list-add.js +7 -0
  18. package/dist/m365/spo/commands/list/list-set.js +7 -0
  19. package/dist/m365/spo/commands/listitem/listitem-list.js +113 -55
  20. package/dist/m365/spo/commands/site/site-recyclebinitem-clear.js +115 -0
  21. package/dist/m365/spo/commands.js +2 -0
  22. package/dist/m365/teams/commands/team/team-add.js +2 -2
  23. package/dist/request.js +7 -0
  24. package/dist/utils/misc.js +11 -0
  25. package/docs/docs/cmd/aad/user/user-set.md +53 -8
  26. package/docs/docs/cmd/flow/run/run-get.md +110 -9
  27. package/docs/docs/cmd/login.md +5 -2
  28. package/docs/docs/cmd/planner/task/task-add.md +3 -1
  29. package/docs/docs/cmd/planner/task/task-set.md +6 -4
  30. package/docs/docs/cmd/pp/tenant/tenant-settings-list.md +25 -9
  31. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.md +145 -0
  32. package/docs/docs/cmd/spo/file/file-list.md +87 -2
  33. package/docs/docs/cmd/spo/folder/folder-list.md +36 -1
  34. package/docs/docs/cmd/spo/list/list-add.md +3 -0
  35. package/docs/docs/cmd/spo/list/list-set.md +3 -0
  36. package/docs/docs/cmd/spo/listitem/listitem-list.md +22 -8
  37. package/docs/docs/cmd/spo/site/site-recyclebinitem-clear.md +45 -0
  38. package/docs/docs/cmd/spo/spo-get.md +12 -0
  39. package/docs/docs/cmd/spo/spo-search.md +16 -3
  40. package/docs/docs/cmd/spo/user/user-ensure.md +1 -2
  41. package/docs/docs/cmd/spo/user/user-get.md +24 -0
  42. package/docs/docs/cmd/spo/user/user-list.md +27 -3
  43. package/docs/docs/cmd/spo/userprofile/userprofile-get.md +21 -0
  44. package/docs/docs/cmd/spo/web/web-add.md +24 -0
  45. package/docs/docs/cmd/spo/web/web-clientsidewebpart-list.md +16 -0
  46. package/docs/docs/cmd/spo/web/web-get.md +124 -0
  47. package/docs/docs/cmd/spo/web/web-installedlanguage-list.md +16 -0
  48. package/docs/docs/cmd/spo/web/web-list.md +16 -0
  49. package/docs/docs/cmd/spo/web/web-retentionlabel-list.md +29 -2
  50. package/docs/docs/cmd/tenant/id/id-get.md +6 -0
  51. package/docs/docs/cmd/tenant/report/report-activeusercounts.md +7 -0
  52. package/docs/docs/cmd/tenant/report/report-activeuserdetail.md +7 -0
  53. package/docs/docs/cmd/tenant/report/report-office365activationcounts.md +7 -0
  54. package/docs/docs/cmd/tenant/report/report-office365activationsusercounts.md +7 -0
  55. package/docs/docs/cmd/tenant/report/report-office365activationsuserdetail.md +7 -0
  56. package/docs/docs/cmd/tenant/report/report-servicesusercounts.md +7 -0
  57. package/docs/docs/cmd/tenant/security/security-alerts-list.md +23 -0
  58. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +32 -0
  59. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.md +32 -0
  60. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.md +26 -0
  61. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.md +26 -0
  62. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.md +22 -0
  63. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.md +22 -0
  64. package/npm-shrinkwrap.json +2 -2
  65. package/package.json +3 -2
  66. package/dist/m365/spo/commands/file/FilePropertiesCollection.js +0 -3
  67. package/dist/m365/spo/commands/folder/FileFolderCollection.js +0 -3
@@ -55,3 +55,10 @@ m365 tenant report office365activationsuserdetail
55
55
  Report Refresh Date,User Principal Name,Display Name,Product Type,Last Activated Date,Windows,Mac,Windows 10 Mobile,iOS,Android,Activated On Shared Computer
56
56
  2022-10-25,77E5979DD60BA6EAA53E814DBEEEFA5F,4291DA7C39EE3263E97336B42734A667,MICROSOFT 365 APPS FOR ENTERPRISE,2021-01-10,1,0,0,0,0,False
57
57
  ```
58
+
59
+ === "Markdown"
60
+
61
+ ```md
62
+ Report Refresh Date,User Principal Name,Display Name,Product Type,Last Activated Date,Windows,Mac,Windows 10 Mobile,iOS,Android,Activated On Shared Computer
63
+ 2022-10-25,77E5979DD60BA6EAA53E814DBEEEFA5F,4291DA7C39EE3263E97336B42734A667,MICROSOFT 365 APPS FOR ENTERPRISE,2021-01-10,1,0,0,0,0,False
64
+ ```
@@ -78,3 +78,10 @@ m365 tenant report servicesusercounts --period D7 --output json > "servicesuserc
78
78
  Report Refresh Date,Exchange Active,Exchange Inactive,OneDrive Active,OneDrive Inactive,SharePoint Active,SharePoint Inactive,Skype For Business Active,Skype For Business Inactive,Yammer Active,Yammer Inactive,Teams Active,Teams Inactive,Office 365 Active,Office 365 Inactive,Report Period
79
79
  2022-10-23,1,23,1,23,1,23,0,24,0,24,1,23,2,22,7
80
80
  ```
81
+
82
+ === "Markdown"
83
+
84
+ ```md
85
+ Report Refresh Date,Exchange Active,Exchange Inactive,OneDrive Active,OneDrive Inactive,SharePoint Active,SharePoint Inactive,Skype For Business Active,Skype For Business Inactive,Yammer Active,Yammer Inactive,Teams Active,Teams Inactive,Office 365 Active,Office 365 Inactive,Report Period
86
+ 2022-10-23,1,23,1,23,1,23,0,24,0,24,1,23,2,22,7
87
+ ```
@@ -133,3 +133,26 @@ m365 tenant security alerts list --vendor "Azure Sentinel"
133
133
  id,title,severity
134
134
  4ece2cf8-cbc0-5a42-92c3-e23f96006907,SharePoint Bulk Edit Items,medium
135
135
  ```
136
+
137
+ === "Markdown"
138
+
139
+ ```md
140
+ # tenant security alerts list
141
+
142
+ Date: 3/20/2022
143
+
144
+ ## Unfamiliar sign-in properties (2517536653831539999_658fa695-a5e6-4b60-ac7c-b2c1396df384)
145
+
146
+ Property | Value
147
+ ---------|-------
148
+ id | 2517536653831539999_658fa695-a5e6-4b60-ac7c-b2c1396df384
149
+ azureTenantId | b8e1599d-b418-4be9-8f39-df03c3abe27a
150
+ category | Storage.Blob_GeoAnomaly
151
+ createdDateTime | 2022-03-30T13:19:15.8039138Z
152
+ description | The following properties of this sign-in are unfamiliar for the given user: ASN, Browser, Device, IP, Location, EASId, TenantIPsubnet
153
+ eventDateTime | 2022-03-30T10:16:56.846Z
154
+ lastModifiedDateTime | 2022-03-30T13:19:48.5196488Z
155
+ severity | low
156
+ status | newAlert
157
+ title | Access from an unusual location to a storage blob container
158
+ ```
@@ -61,6 +61,22 @@ m365 tenant serviceannouncement health get --serviceName "Exchange Online" --iss
61
61
  Exchange,serviceDegradation,Exchange Online
62
62
  ```
63
63
 
64
+ === "Markdown"
65
+
66
+ ```md
67
+ # tenant serviceannouncement health get --serviceName "Exchange Online"
68
+
69
+ Date: 4/19/2023
70
+
71
+ ## Exchange
72
+
73
+ Property | Value
74
+ ---------|-------
75
+ service | Exchange Online
76
+ status | serviceDegradation
77
+ id | Exchange
78
+ ```
79
+
64
80
  ### `issues` response
65
81
 
66
82
  When we make use of the option `issues` the response will differ.
@@ -118,3 +134,19 @@ When we make use of the option `issues` the response will differ.
118
134
  id,status,service
119
135
  Exchange,serviceDegradation,Exchange Online
120
136
  ```
137
+
138
+ === "Markdown"
139
+
140
+ ```md
141
+ # tenant serviceannouncement health get --serviceName "Exchange Online" --issues "true"
142
+
143
+ Date: 4/19/2023
144
+
145
+ ## Exchange
146
+
147
+ Property | Value
148
+ ---------|-------
149
+ service | Exchange Online
150
+ status | serviceDegradation
151
+ id | Exchange
152
+ ```
@@ -60,6 +60,22 @@ m365 tenant serviceannouncement health list --issues
60
60
  Exchange,serviceDegradation,Exchange Online
61
61
  ```
62
62
 
63
+ === "Markdown"
64
+
65
+ ```md
66
+ # tenant serviceannouncement health list
67
+
68
+ Date: 4/19/2023
69
+
70
+ ## Exchange
71
+
72
+ Property | Value
73
+ ---------|-------
74
+ service | Exchange Online
75
+ status | serviceDegradation
76
+ id | Exchange
77
+ ```
78
+
63
79
  ### `issues` response
64
80
 
65
81
  When we make use of the option `issues` the response will differ.
@@ -119,3 +135,19 @@ When we make use of the option `issues` the response will differ.
119
135
  id,status,service
120
136
  Exchange,serviceDegradation,Exchange Online
121
137
  ```
138
+
139
+ === "Markdown"
140
+
141
+ ```md
142
+ # tenant serviceannouncement health list --issues "true"
143
+
144
+ Date: 4/19/2023
145
+
146
+ ## Exchange
147
+
148
+ Property | Value
149
+ ---------|-------
150
+ service | Exchange Online
151
+ status | serviceDegradation
152
+ id | Exchange
153
+ ```
@@ -84,3 +84,29 @@ m365 tenant serviceannouncement healthissue get --id MO226784
84
84
  startDateTime,endDateTime,lastModifiedDateTime,title,id,impactDescription,classification,origin,status,service,feature,featureGroup,isResolved,highImpact,details,posts
85
85
  2022-05-24T16:00:00Z,2022-05-24T22:20:00Z,2022-05-24T22:27:18.63Z,Installation delays within the Power Platform admin center,CR384241,Users may have experienced delays when installing applications within the Power Platform admin center.,advisory,microsoft,serviceRestored,Dynamics 365 Apps,Other,Other,1,,[],"[{""createdDateTime"":""2022-05-24T21:22:56.817Z"",""postType"":""regular"",""description"":{""contentType"":""html"",""content"":""Title: Installation delays within the Power Platform admin center\n\nUser Impact: Users may experience delays when installing applications within the Power Platform admin center.\n\nWe are aware of an emerging issue where users are experiencing delays when installing applications through the Power Platform admin center. We are investigating the issue and will provide another update within the next 30 minutes.\n\nThis information is preliminary and may be subject to changes, corrections, and updates.""}}]"
86
86
  ```
87
+
88
+ === "Markdown"
89
+
90
+ ```md
91
+ # tenant serviceannouncement healthissue get --id "MO226784"
92
+
93
+ Date: 5/24/2022
94
+
95
+ ## Installation delays within the Power Platform admin center (MO226784)
96
+
97
+ Property | Value
98
+ ---------|-------
99
+ startDateTime | 2022-05-24T16:00:00Z
100
+ endDateTime | 2022-05-24T22:20:00Z
101
+ lastModifiedDateTime | 2022-05-24T22:27:18.63Z
102
+ title | Installation delays within the Power Platform admin center
103
+ id | CR384241
104
+ impactDescription | Users may have experienced delays when installing applications within the Power Platform admin center.
105
+ classification | advisory
106
+ origin | microsoft
107
+ status | serviceRestored
108
+ service | Dynamics 365 Apps
109
+ feature | Other
110
+ featureGroup | Other
111
+ isResolved | true
112
+ ```
@@ -80,6 +80,32 @@ m365 tenant serviceannouncement healthissue list --service "Microsoft Forms"
80
80
  CR384241,Installation delays within the Power Platform admin center
81
81
  ```
82
82
 
83
+ === "Markdown"
84
+
85
+ ```md
86
+ # tenant serviceannouncement healthissue list
87
+
88
+ Date: 5/24/2022
89
+
90
+ ## Installation delays within the Power Platform admin center (CR384241)
91
+
92
+ Property | Value
93
+ ---------|-------
94
+ startDateTime | 2022-05-24T16:00:00Z
95
+ endDateTime | 2022-05-24T22:20:00Z
96
+ lastModifiedDateTime | 2022-05-24T22:27:18.63Z
97
+ title | Installation delays within the Power Platform admin center
98
+ id | CR384241
99
+ impactDescription | Users may have experienced delays when installing applications within the Power Platform admin center.
100
+ classification | advisory
101
+ origin | microsoft
102
+ status | serviceRestored
103
+ service | Dynamics 365 Apps
104
+ feature | Other
105
+ featureGroup | Other
106
+ isResolved | true
107
+ ```
108
+
83
109
  ## More information
84
110
 
85
111
  - List serviceAnnouncement issues: [https://docs.microsoft.com/en-us/graph/api/serviceannouncement-list-issues](https://docs.microsoft.com/en-us/graph/api/serviceannouncement-list-issues)
@@ -86,6 +86,28 @@ m365 tenant serviceannouncement message get --id MC001337
86
86
  2021-07-08T00:37:37Z,2022-12-09T07:00:00Z,2022-06-07T20:21:06.713Z,(Updated) Microsoft Lists: Custom list templates,MC267581,planForChange,normal,"[""Updated message"",""New feature"",""User impact"",""Admin impact""]",,,"[""SharePoint Online""]",,,,[],"{""contentType"":""html"",""content"":""<p>Updated June 7, 2022: We have updated the rollout timeline below. Thank you for your patience.</p><p>This new feature will support the addition of custom list templates from your organization alongside the ready-made templates Microsoft provides to make it easy to get started tracking and managing information.</p> \n<p>[Key points]</p> \n<ul> \n<li>Microsoft 365 <a href=\""https://www.microsoft.com/microsoft-365/roadmap?filters=&amp;searchterms=70753\"" target=\""_blank\"">Roadmap ID: 70753</a></li> \n<li>Timing:<ul><li>Targeted release (entire org): Complete</li><li>Standard release: will roll out in mid-September (previously mid-May) and be complete by early November (previously mid-June)</li></ul></li> \n<li>Roll-out: tenant level </li> \n<li>Control type: user control / admin control</li> \n<li>Action: review, assess and educate</li></ul><p>[How this will affect your organization]</p><p>This feature will give organizations the ability to create their own custom list templates with custom formatting and schema. It will also empower organizations to create repeatable solutions within the same Microsoft Lists infrastructure (including list creation in SharePoint, Teams, and within the Lists app itself).</p><p>End-user impact:</p>\n<p>Visual updates to the list creation dialog and the addition of a<i> From your organization</i> tab when creating a new list. This new tab is where your custom list templates appear alongside the ready-made templates from Microsoft.</p>\n<p><img src=\""https://img-prod-cms-rt-microsoft-com.akamaized.net/cms/api/am/imageFileData/RE4P81n?ver=c93f\"" alt=\""Your custom list templates along with Microsoft ready-made templates\"" width=\""550\""><br>\nAdmin impact:</p>\n<p>Custom list templates can only be uploaded by a SharePoint administrator for Microsoft 365 by using PowerShell cmdlets. For consistency, the process of defining and uploading custom list templates is like the custom site templates experience.</p><p>To define and upload custom list templates, admins will use the following site template PowerShell cmdlets:</p><ul><li>Use the <a href=\""https://docs.microsoft.com/powershell/module/sharepoint-online/get-spositescriptfromlist?view=sharepoint-ps\"" target=\""_blank\"">Get-SPOSiteScriptFromList</a> cmdlet to extract the site script from any list</li><li>Run <a href=\""https://docs.microsoft.com/powershell/module/sharepoint-online/add-spositescript?view=sharepoint-ps\"" target=\""_blank\"">Add-SPOSiteScript</a> and <b style=\""\"">Add-SPOListDesign</b> to add the custom list template to your organization.</li><li>Scope who sees the template by using <a href=\""https://docs.microsoft.com/powershell/module/sharepoint-online/grant-spositedesignrights?view=sharepoint-ps\"" target=\""_blank\"">Grant-SPOSiteDesignRights</a> (Optional).</li></ul><p>The visual updates for this feature will be seen by end-users in the updated user interface (UI) when creating a list.</p><p>The <i>From your organization</i> tab will be empty until your organization defines and publishes custom list templates.</p>\n<p><img src=\""https://img-prod-cms-rt-microsoft-com.akamaized.net/cms/api/am/imageFileData/RE4P81t?ver=70be\"" alt=\""Your custom list templates along with Microsoft ready-made templates\"" width=\""550\""></p><p>[What you need to do to prepare]</p><p>You might want to notify your users about this new capability and update your training and documentation as appropriate.</p>\n<p>Learn more:</p><ul><li><a href=\""https://docs.microsoft.com/sharepoint/dev/declarative-customization/site-design-overview\"" target=\""_blank\"">PowerShell Cmdlets documentation for custom list templates</a></li><li> <a href=\""https://docs.microsoft.com/sharepoint/lists-custom-template\"" target=\""_blank\"">Creating custom list templates</a></li></ul>""}"
87
87
  ```
88
88
 
89
+ === "Markdown"
90
+
91
+ ```md
92
+ # tenant serviceannouncement message get --id "MC267581"
93
+
94
+ Date: 5/24/2022
95
+
96
+ ## (Updated) Microsoft Lists: Custom list templates (MC267581)
97
+
98
+ Property | Value
99
+ ---------|-------
100
+ startDateTime | 2021-07-08T00:37:37Z
101
+ endDateTime | 2022-12-09T07:00:00Z
102
+ lastModifiedDateTime | 2022-06-07T20:21:06.713Z
103
+ title | (Updated) Microsoft Lists: Custom list templates
104
+ id | MC267581
105
+ category | planForChange
106
+ severity | normal
107
+ isMajorChange | false
108
+ hasAttachments | false
109
+ ```
110
+
89
111
  ## More information
90
112
 
91
113
  - Microsoft Graph REST API reference: [https://docs.microsoft.com/en-us/graph/api/serviceupdatemessage-get](https://docs.microsoft.com/en-us/graph/api/serviceupdatemessage-get)
@@ -80,6 +80,28 @@ m365 tenant serviceannouncement message list --service "Microsoft Teams"
80
80
  id,title
81
81
  MC267581,(Updated) Microsoft Lists: Custom list templates
82
82
  ```
83
+
84
+ === "Markdown"
85
+
86
+ ```md
87
+ # tenant serviceannouncement message list
88
+
89
+ Date: 5/24/2022
90
+
91
+ ## (Updated) Microsoft Lists: Custom list templates (MC267581)
92
+
93
+ Property | Value
94
+ ---------|-------
95
+ startDateTime | 2021-07-08T00:37:37Z
96
+ endDateTime | 2022-12-09T07:00:00Z
97
+ lastModifiedDateTime | 2023-04-11T19:33:45.553Z
98
+ title | (Updated) Microsoft Lists: Custom list templates
99
+ id | MC267581
100
+ category | planForChange
101
+ severity | normal
102
+ isMajorChange | false
103
+ hasAttachments | false
104
+ ```
83
105
 
84
106
  ## More information
85
107
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "6.6.0",
3
+ "version": "6.7.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@pnp/cli-microsoft365",
9
- "version": "6.6.0",
9
+ "version": "6.7.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@azure/msal-node": "^1.16.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "6.6.0",
3
+ "version": "6.7.0-beta.1a86d83",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -207,6 +207,7 @@
207
207
  "Thangavel, Sekar <sekar.thangavel@gmail.com>",
208
208
  "Thorild, Fredrik <fredrik.thorild@sogeti.com>",
209
209
  "Trinder, Garry <garry.trinder@live.com>",
210
+ "Tripathi, Saurabh <saurabh.k.a.tripathi@avanade.com>",
210
211
  "Vaghasia, Siddharth <siddh.vaghasia@gmail.com>",
211
212
  "Van de Voorde, Tim <tim.vdv1995@hotmail.com>",
212
213
  "van Dijk, Mark <mark@ichicraft.com>",
@@ -277,4 +278,4 @@
277
278
  "sinon": "^15.0.3",
278
279
  "source-map-support": "^0.5.21"
279
280
  }
280
- }
281
+ }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FilePropertiesCollection.js.map
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FileFolderCollection.js.map