@pnp/cli-microsoft365 10.4.0 → 10.5.0-beta.31351d1

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 (89) hide show
  1. package/.eslintrc.cjs +1 -0
  2. package/README.md +1 -1
  3. package/allCommands.json +1 -1
  4. package/allCommandsFull.json +1 -1
  5. package/dist/Auth.js +61 -3
  6. package/dist/appInsights.js +10 -4
  7. package/dist/m365/booking/commands/business/business-get.js +0 -3
  8. package/dist/m365/commands/login.js +3 -0
  9. package/dist/m365/entra/commands/user/user-guest-add.js +0 -3
  10. package/dist/m365/flow/commands/environment/environment-get.js +0 -3
  11. package/dist/m365/flow/commands/flow-get.js +0 -3
  12. package/dist/m365/flow/commands/run/run-get.js +0 -3
  13. package/dist/m365/graph/commands/directoryextension/directoryextension-add.js +85 -0
  14. package/dist/m365/graph/commands/directoryextension/directoryextension-get.js +82 -0
  15. package/dist/m365/graph/commands/directoryextension/directoryextension-remove.js +93 -0
  16. package/dist/m365/graph/commands.js +3 -0
  17. package/dist/m365/pa/commands/app/app-get.js +0 -3
  18. package/dist/m365/pa/commands/environment/environment-get.js +0 -3
  19. package/dist/m365/planner/commands/bucket/bucket-add.js +0 -3
  20. package/dist/m365/planner/commands/plan/plan-add.js +0 -3
  21. package/dist/m365/planner/commands/plan/plan-get.js +0 -3
  22. package/dist/m365/planner/commands/plan/plan-set.js +0 -3
  23. package/dist/m365/planner/commands/task/task-checklistitem-add.js +0 -3
  24. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-get.js +0 -3
  25. package/dist/m365/pp/commands/card/card-get.js +0 -3
  26. package/dist/m365/pp/commands/copilot/copilot-get.js +0 -3
  27. package/dist/m365/pp/commands/dataverse/dataverse-table-get.js +0 -3
  28. package/dist/m365/pp/commands/environment/environment-get.js +0 -3
  29. package/dist/m365/pp/commands/solution/solution-get.js +0 -3
  30. package/dist/m365/pp/commands/solution/solution-publisher-get.js +0 -3
  31. package/dist/m365/pp/commands/website/website-get.js +0 -3
  32. package/dist/m365/spo/commands/group/group-member-add.js +0 -3
  33. package/dist/m365/spo/commands/homesite/homesite-add.js +66 -0
  34. package/dist/m365/spo/commands/page/page-copy.js +0 -3
  35. package/dist/m365/spo/commands/page/page-get.js +0 -3
  36. package/dist/m365/spo/commands/page/page-header-set.js +47 -10
  37. package/dist/m365/spo/commands/page/page-section-remove.js +81 -0
  38. package/dist/m365/spo/commands/sitedesign/sitedesign-run-status-get.js +0 -3
  39. package/dist/m365/spo/commands.js +2 -0
  40. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +0 -3
  41. package/dist/m365/todo/commands/list/list-get.js +0 -3
  42. package/dist/m365/todo/commands/task/task-get.js +0 -3
  43. package/dist/m365/viva/commands/engage/engage-community-user-add.js +113 -0
  44. package/dist/m365/viva/commands/engage/engage-community-user-remove.js +107 -0
  45. package/dist/m365/viva/commands/engage/engage-message-add.js +0 -3
  46. package/dist/m365/viva/commands/engage/engage-message-get.js +0 -3
  47. package/dist/m365/viva/commands/engage/engage-user-get.js +0 -3
  48. package/dist/m365/viva/commands.js +2 -0
  49. package/dist/request.js +5 -0
  50. package/dist/utils/directoryExtension.js +25 -0
  51. package/dist/utils/entraApp.js +28 -0
  52. package/docs/docs/cmd/booking/business/business-get.mdx +13 -0
  53. package/docs/docs/cmd/entra/user/user-guest-add.mdx +11 -0
  54. package/docs/docs/cmd/flow/environment/environment-get.mdx +2 -0
  55. package/docs/docs/cmd/flow/flow-get.mdx +2 -0
  56. package/docs/docs/cmd/flow/run/run-get.mdx +17 -13
  57. package/docs/docs/cmd/graph/directoryextension/directoryextension-add.mdx +123 -0
  58. package/docs/docs/cmd/graph/directoryextension/directoryextension-get.mdx +118 -0
  59. package/docs/docs/cmd/graph/directoryextension/directoryextension-remove.mdx +57 -0
  60. package/docs/docs/cmd/login.mdx +9 -1
  61. package/docs/docs/cmd/pa/app/app-get.mdx +8 -2
  62. package/docs/docs/cmd/pa/environment/environment-get.mdx +5 -3
  63. package/docs/docs/cmd/planner/plan/plan-add.mdx +2 -0
  64. package/docs/docs/cmd/planner/plan/plan-get.mdx +8 -4
  65. package/docs/docs/cmd/planner/plan/plan-set.mdx +2 -0
  66. package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +6 -3
  67. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx +12 -3
  68. package/docs/docs/cmd/pp/card/card-get.mdx +36 -5
  69. package/docs/docs/cmd/pp/copilot/copilot-get.mdx +41 -5
  70. package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +19 -4
  71. package/docs/docs/cmd/pp/environment/environment-get.mdx +5 -2
  72. package/docs/docs/cmd/pp/solution/solution-get.mdx +12 -7
  73. package/docs/docs/cmd/pp/solution/solution-publisher-get.mdx +12 -7
  74. package/docs/docs/cmd/pp/website/website-get.mdx +22 -4
  75. package/docs/docs/cmd/spo/group/group-member-add.mdx +12 -3
  76. package/docs/docs/cmd/spo/homesite/homesite-add.mdx +124 -0
  77. package/docs/docs/cmd/spo/page/page-copy.mdx +30 -4
  78. package/docs/docs/cmd/spo/page/page-get.mdx +44 -5
  79. package/docs/docs/cmd/spo/page/page-section-remove.mdx +47 -0
  80. package/docs/docs/cmd/spo/sitedesign/sitedesign-run-status-get.mdx +7 -0
  81. package/docs/docs/cmd/todo/list/list-get.mdx +7 -4
  82. package/docs/docs/cmd/todo/task/task-get.mdx +7 -2
  83. package/docs/docs/cmd/viva/engage/engage-community-user-add.mdx +67 -0
  84. package/docs/docs/cmd/viva/engage/engage-community-user-remove.mdx +55 -0
  85. package/docs/docs/cmd/viva/engage/engage-message-add.mdx +37 -12
  86. package/docs/docs/cmd/viva/engage/engage-message-get.mdx +27 -13
  87. package/docs/docs/cmd/viva/engage/engage-user-get.mdx +50 -8
  88. package/npm-shrinkwrap.json +99 -86
  89. package/package.json +15 -15
@@ -115,11 +115,42 @@ m365 pp card get --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5
115
115
  <TabItem value="Text">
116
116
 
117
117
  ```text
118
- cardid : 0eab9392-7354-ed11-bba2-000d3adf774e
119
- createdon : 2022-10-25T14:44:48Z
120
- modifiedon : 2022-10-25T14:44:48Z
121
- name : Tasks List
122
- publishdate: 2022-10-30T16:00:00Z
118
+ appdefinition : {"screens":{"main":{"template":{"$schema":"http://adaptivecards.io/schemas/1.4.0/adaptive-card.json","actions":[],"body":[{"size":"Medium","text":"Your card title goes here","type":"TextBlock","weight":"bolder"},{"text":"Add and remove element to customize your new card.","type":"TextBlock","wrap":true}],"type":"AdaptiveCard","version":"1.4"},"verbs":{"submit":"echo"}}},"connections":{},"flows":{},"sampleData":{"main":{}},"variables":{}}
119
+ cardid : 0eab9392-7354-ed11-bba2-000d3adf774e
120
+ coowners : null
121
+ componentidunique : 24205370-bc43-4c5e-b095-16da18f0b1a3
122
+ componentstate : 0
123
+ createdon : 2022-10-25T14:44:48Z
124
+ description :
125
+ hiddentags : null
126
+ importsequencenumber : null
127
+ ismanaged : false
128
+ iscustomizable : {"Value":true,"CanBeChanged":true,"ManagedPropertyLogicalName":"iscustomizableanddeletable"}
129
+ modifiedon : 2022-10-25T14:44:48Z
130
+ name : Tasks List
131
+ overriddencreatedon : null
132
+ overwritetime : 1900-01-01T00:00:00Z
133
+ owninguser : {"azureactivedirectoryobjectid":"78637d62-e872-4dc9-b7c1-bd161e631682","fullname":"# John Doe","ownerid":"4f175d04-b952-ed11-bba2-000d3adf774e","systemuserid":"4f175d04-b952-ed11-bba2-000d3adf774e"}
134
+ publishdate : null
135
+ publishsourceid : null
136
+ remixsourceid : null
137
+ schemaversion : null
138
+ sizes : null
139
+ solutionid : fd140aae-4df4-11dd-bd17-0019b9312238
140
+ statecode : 0
141
+ statuscode : 1
142
+ tags : null
143
+ timezoneruleversionnumber: null
144
+ utcconversiontimezonecode: null
145
+ versionnumber : 4451230
146
+ _ownerid_value : 4f175d04-b952-ed11-bba2-000d3adf774e
147
+ _owningbusinessunit_value: b419f090-fe22-ec11-b6e5-000d3ab596a1
148
+ _owningteam_value : null
149
+ _owninguser_value : 4f175d04-b952-ed11-bba2-000d3adf774e
150
+ _createdby_value : 4f175d04-b952-ed11-bba2-000d3adf774e
151
+ _createdonbehalfby_value : null
152
+ _modifiedby_value : 4f175d04-b952-ed11-bba2-000d3adf774e
153
+ _modifiedonbehalfby_value: null
123
154
  ```
124
155
 
125
156
  </TabItem>
@@ -122,11 +122,47 @@ m365 pp copilot get --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd5
122
122
  <TabItem value="Text">
123
123
 
124
124
  ```text
125
- botid : 3a081d91-5ea8-40a7-8ac9-abbaa3fcb893
126
- createdon : 2022-11-19T10:42:22Z
127
- modifiedon : 2022-11-19T10:42:24Z
128
- name : CLI 365 Copilot
129
- publishedon: 2022-11-19T10:43:24Z
125
+ accesscontrolpolicy : 0
126
+ applicationmanifestinformation: null
127
+ authenticationconfiguration : null
128
+ authenticationmode : 1
129
+ authenticationtrigger : 0
130
+ authorizedsecuritygroupids : null
131
+ botid : 3a081d91-5ea8-40a7-8ac9-abbaa3fcb893
132
+ componentidunique : cdcd6496-e25d-4ad1-91cf-3f4d547fdd23
133
+ componentstate : 0
134
+ configuration : null
135
+ createdon : 2022-11-19T10:42:22Z
136
+ iconbase64 : null
137
+ importsequencenumber : null
138
+ ismanaged : false
139
+ iscustomizable : {"Value":true,"CanBeChanged":true,"ManagedPropertyLogicalName":"iscustomizableanddeletable"}
140
+ language : 1033
141
+ modifiedon : 2022-11-19T10:42:24Z
142
+ name : CLI 365 Copilot
143
+ overriddencreatedon : null
144
+ overwritetime : 1900-01-01T00:00:00Z
145
+ publishedon : 2022-11-19T10:43:24Z
146
+ runtimeprovider : 0
147
+ schemaname : new_bot_23f5f58697fd43d595eb451c9797a53d
148
+ solutionid : fd140aae-4df4-11dd-bd17-0019b9312238
149
+ statecode : 0
150
+ statuscode : 1
151
+ supportedlanguages : null
152
+ synchronizationstatus : null
153
+ template : null
154
+ timezoneruleversionnumber : null
155
+ utcconversiontimezonecode : null
156
+ versionnumber : 1421457
157
+ _createdby_value : 5fa787c1-1c4d-ed11-bba1-000d3a2caf7f
158
+ _createdonbehalfby_value : null
159
+ _modifiedby_value : 5f91d7a7-5f46-494a-80fa-5c18b0221351
160
+ _modifiedonbehalfby_value : 5fa787c1-1c4d-ed11-bba1-000d3a2caf7f
161
+ _ownerid_value : 5fa787c1-1c4d-ed11-bba1-000d3a2caf7f
162
+ _owningbusinessunit_value : 6da087c1-1c4d-ed11-bba1-000d3a2caf7f
163
+ _owningteam_value : null
164
+ _owninguser_value : 5fa787c1-1c4d-ed11-bba1-000d3a2caf7f
165
+ _publishedby_value : John Doe
130
166
  ```
131
167
 
132
168
  </TabItem>
@@ -114,10 +114,25 @@ m365 pp dataverse table get --environmentName "Default-2ca3eaa5-140f-4175-8261-3
114
114
  <TabItem value="Text">
115
115
 
116
116
  ```text
117
- EntitySetName: aadusers
118
- IsManaged : false
119
- LogicalName : aaduser
120
- SchemaName : aaduser
117
+ CanChangeHierarchicalRelationship : {"Value":true,"CanBeChanged":true,"ManagedPropertyLogicalName":"canchangehierarchicalrelationship"}
118
+ CanChangeTrackingBeEnabled : {"Value":true,"CanBeChanged":true,"ManagedPropertyLogicalName":"canchangetrackingbeenabled"}
119
+ CanCreateAttributes : {"Value":true,"CanBeChanged":false,"ManagedPropertyLogicalName":"cancreateattributes"}
120
+ CanCreateCharts : {"Value":true,"CanBeChanged":true,"ManagedPropertyLogicalName":"cancreatecharts"}
121
+ CanCreateForms : {"Value":true,"CanBeChanged":true,"ManagedPropertyLogicalName":"cancreateforms"}
122
+ CanCreateViews : {"Value":true,"CanBeChanged":true,"ManagedPropertyLogicalName":"cancreateviews"}
123
+ CanEnableSyncToExternalSearchIndex: {"Value":true,"CanBeChanged":true,"ManagedPropertyLogicalName":"canenablesynctoexternalsearchindex"}
124
+ CanModifyAdditionalSettings : {"Value":true,"CanBeChanged":true,"ManagedPropertyLogicalName":"canmodifyadditionalsettings"}
125
+ DataProviderId : null
126
+ EntitySetName : aadusers
127
+ IconVectorName : null
128
+ IsActivity : false
129
+ IsCustomEntity : true
130
+ IsCustomizable : {"Value":true,"CanBeChanged":true,"ManagedPropertyLogicalName":"iscustomizable"}
131
+ IsManaged : false
132
+ IsRenameable : {"Value":true,"CanBeChanged":true,"ManagedPropertyLogicalName":"isrenameable"}
133
+ LogicalName : aaduser
134
+ MetadataId : 84f4c125-474d-ed11-bba1-000d3a2caf7f
135
+ SchemaName : aaduser
121
136
  ```
122
137
 
123
138
  </TabItem>
@@ -355,8 +355,11 @@ m365 pp environment get
355
355
  <TabItem value="Text">
356
356
 
357
357
  ```text
358
- id : /providers/Microsoft.BusinessAppPlatform/environments/Default-e1dd4023-a656-480a-8a0e-c1b1eec51e1d
359
- name: Default-e1dd4023-a656-480a-8a0e-c1b1eec51e1d
358
+ id : /providers/Microsoft.BusinessAppPlatform/environments/Default-e1dd4023-a656-480a-8a0e-c1b1eec51e1d
359
+ type : Microsoft.BusinessAppPlatform/environments
360
+ location : europe
361
+ name : Default-e1dd4023-a656-480a-8a0e-c1b1eec51e1d
362
+ properties: {"azureRegion":"northeurope","clientUris":{"admin":"https://admin.powerplatform.microsoft.com/environments/environment/Default-e1dd4023-a656-480a-8a0e-c1b1eec51e1d/hub","maker":"https://make.powerapps.com/environments/Default-e1dd4023-a656-480a-8a0e-c1b1eec51e1d/home"},"cluster":{"category":"Prod","environment":"Prod","geoShortName":"EU","number":"109","uriSuffix":"eu-il109.gateway.prod.island"},"connectedGroups":[],"createdBy":{"displayName":"SYSTEM","id":"SYSTEM","type":"NotSpecified"},"createdTime":"2020-03-12T13:39:17.9876946Z","creationType":"DefaultTenant","databaseType":"CommonDataService","displayName":"contoso (default)","environmentSku":"Default","governanceConfiguration":{"protectionLevel":"Basic"},"isDefault":true,"lifecycleOperationsEnforcement":{"allowedOperations":[{"type":{"id":"Backup"}},{"type":{"id":"Edit"}},{"type":{"id":"Enable"}},{"type":{"id":"Disable"}},{"type":{"id":"EnableGovernanceConfiguration"}}],"disallowedOperations":[{"reason":{"message":"Provision cannot be performed because there is no linked CDS instance or the CDS instance version is not supported."},"type":{"id":"Provision"}},{"reason":{"message":"Unlock cannot be performed because there is no linked CDS instance or the CDS instance version is not supported."},"type":{"id":"Unlock"}},{"reason":{"message":"Convert cannot be performed on environment of type Default."},"type":{"id":"Convert"}},{"reason":{"message":"Copy cannot be performed on environment of type Default."},"type":{"id":"Copy"}},{"reason":{"message":"Delete cannot be performed on environment of type Default."},"type":{"id":"Delete"}},{"reason":{"message":"Promote cannot be performed on environment of type Default."},"type":{"id":"Promote"}},{"reason":{"message":"Recover cannot be performed on environment of type Default."},"type":{"id":"Recover"}},{"reason":{"message":"Reset cannot be performed on environment of type Default."},"type":{"id":"Reset"}},{"reason":{"message":"Restore cannot be performed on environment of type Default."},"type":{"id":"Restore"}},{"reason":{"message":"UpdateProtectionStatus cannot be performed on environment of type Default."},"type":{"id":"UpdateProtectionStatus"}},{"reason":{"message":"NewCustomerManagedKey cannot be performed on environment of type Default."},"type":{"id":"NewCustomerManagedKey"}},{"reason":{"message":"RotateCustomerManagedKey cannot be performed on environment of type Default."},"type":{"id":"RotateCustomerManagedKey"}},{"reason":{"message":"RevertToMicrosoftKey cannot be performed on environment of type Default."},"type":{"id":"RevertToMicrosoftKey"}},{"reason":{"message":"NewNetworkInjection cannot be performed on environment of type Default."},"type":{"id":"NewNetworkInjection"}},{"reason":{"message":"SwapNetworkInjection cannot be performed on environment of type Default."},"type":{"id":"SwapNetworkInjection"}},{"reason":{"message":"RevertNetworkInjection cannot be performed on environment of type Default."},"type":{"id":"RevertNetworkInjection"}},{"reason":{"message":"NewIdentity cannot be performed on environment of type Default."},"type":{"id":"NewIdentity"}},{"reason":{"message":"SwapIdentity cannot be performed on environment of type Default."},"type":{"id":"SwapIdentity"}},{"reason":{"message":"RevertIdentity cannot be performed on environment of type Default."},"type":{"id":"RevertIdentity"}},{"reason":{"message":"DisableGovernanceConfiguration cannot be performed on Power Platform environment because of the governance configuration."},"type":{"id":"DisableGovernanceConfiguration"}},{"reason":{"message":"UpdateGovernanceConfiguration cannot be performed on Power Platform environment because of the governance configuration."},"type":{"id":"UpdateGovernanceConfiguration"}}]},"linkedEnvironmentMetadata":{"backgroundOperationsState":"Enabled","baseLanguage":1033,"createdTime":"2021-10-08T09:50:41.283Z","domainName":"org6633049a","friendlyName":"contoso (default)","instanceApiUrl":"https://org6633049a.api.crm4.dynamics.com","instanceState":"Ready","instanceUrl":"https://org6633049a.crm4.dynamics.com/","platformSku":"Standard","resourceId":"5041ef46-5a1c-4a0f-a185-6bb49b5c6686","scaleGroup":"EURCRMLIVESG644","uniqueName":"unq5041ef465a1c4a0fa1856bb49b5c6","version":"9.2.22101.00168"},"protectionStatus":{"keyManagedBy":"Microsoft"},"retentionDetails":{"backupsAvailableFromDateTime":"2022-10-23T23:33:19.6000451Z","retentionPeriod":"P7D"},"retentionPeriod":"P7D","runtimeEndpoints":{"microsoft.ApiManagement":"https://management.EUROPE.azure-apihub.net","microsoft.BusinessAppPlatform":"https://europe.api.bap.microsoft.com","microsoft.CommonDataModel":"https://europe.api.cds.microsoft.com","microsoft.Flow":"https://emea.api.flow.microsoft.com","microsoft.PowerApps":"https://europe.api.powerapps.com","microsoft.PowerAppsAdvisor":"https://europe.api.advisor.powerapps.com","microsoft.PowerVirtualAgents":"https://powervamg.eu-il109.gateway.prod.island.powerapps.com"},"states":{"management":{"id":"NotSpecified"},"runtime":{"id":"Enabled","requestedBy":{"displayName":"SYSTEM","type":"NotSpecified"},"runtimeReasonCode":"NotSpecified"}},"tenantId":"e1dd4023-a656-480a-8a0e-c1b1eec51e1d","trialScenarioType":"None","updateCadence":{"id":"Frequent"}}
360
363
  ```
361
364
 
362
365
  </TabItem>
@@ -32,25 +32,25 @@ m365 pp solution get [options]
32
32
 
33
33
  ## Examples
34
34
 
35
- Gets a specific solution in a specific environment based on name
35
+ Gets a specific solution in a specific environment based on name.
36
36
 
37
37
  ```sh
38
38
  m365 pp solution get --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --name "Default"
39
39
  ```
40
40
 
41
- Gets a specific solution in a specific environment based on name as Admin
41
+ Gets a specific solution in a specific environment based on name as Admin.
42
42
 
43
43
  ```sh
44
44
  m365 pp solution get --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --name "Default" --asAdmin
45
45
  ```
46
46
 
47
- Gets a specific solution in a specific environment based on id
47
+ Gets a specific solution in a specific environment based on id.
48
48
 
49
49
  ```sh
50
50
  m365 pp solution get --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --id "ee62fd63-e49e-4c09-80de-8fae1b9a427e"
51
51
  ```
52
52
 
53
- Gets a specific solution in a specific environment based on id as Admin
53
+ Gets a specific solution in a specific environment based on id as Admin.
54
54
 
55
55
  ```sh
56
56
  m365 pp solution get --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --id "ee62fd63-e49e-4c09-80de-8fae1b9a427e" --asAdmin
@@ -81,9 +81,14 @@ m365 pp solution get --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9
81
81
  <TabItem value="Text">
82
82
 
83
83
  ```text
84
- publisher : Default Publisher for org6633049a
85
- uniquename: Default
86
- version : 1.0
84
+ friendlyname : Default Solution
85
+ installedon : 2021-10-01T21:29:10Z
86
+ publisherid : {"friendlyname":"Default Publisher for org6633049a","publisherid":"d21aab71-79e7-11dd-8874-00188b01e34f"}
87
+ solutionid : fd140aaf-4df4-11dd-bd17-0019b9312238
88
+ solutionpackageversion: null
89
+ uniquename : Default
90
+ version : 1.0
91
+ versionnumber : 860055
87
92
  ```
88
93
 
89
94
  </TabItem>
@@ -32,25 +32,25 @@ m365 pp solution publisher get [options]
32
32
 
33
33
  ## Examples
34
34
 
35
- Gets a specific publisher in a specific environment based on name
35
+ Gets a specific publisher in a specific environment based on name.
36
36
 
37
37
  ```sh
38
38
  m365 pp solution publisher get --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --name "MicrosoftCorporation"
39
39
  ```
40
40
 
41
- Gets a specific publisher in a specific environment based on name as Admin
41
+ Gets a specific publisher in a specific environment based on name as Admin.
42
42
 
43
43
  ```sh
44
44
  m365 pp solution publisher get --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --name "MicrosoftCorporation" --asAdmin
45
45
  ```
46
46
 
47
- Gets a specific publisher in a specific environment based on id
47
+ Gets a specific publisher in a specific environment based on id.
48
48
 
49
49
  ```sh
50
50
  m365 pp solution publisher get --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --id "ee62fd63-e49e-4c09-80de-8fae1b9a427e"
51
51
  ```
52
52
 
53
- Gets a specific publisher in a specific environment based on id as Admin
53
+ Gets a specific publisher in a specific environment based on id as Admin.
54
54
 
55
55
  ```sh
56
56
  m365 pp solution publisher get --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --id "ee62fd63-e49e-4c09-80de-8fae1b9a427e" --asAdmin
@@ -78,9 +78,14 @@ m365 pp solution publisher get --environmentName "Default-2ca3eaa5-140f-4175-826
78
78
  <TabItem value="Text">
79
79
 
80
80
  ```text
81
- friendlyname: MicrosoftCorporation
82
- publisherid : d21aab70-79e7-11dd-8874-00188b01e34f
83
- uniquename : MicrosoftCorporation
81
+ customizationoptionvalueprefix: 0
82
+ customizationprefix :
83
+ description : Publisher of Microsoft solutions
84
+ friendlyname : MicrosoftCorporation
85
+ isreadonly : false
86
+ publisherid : d21aab70-79e7-11dd-8874-00188b01e34f
87
+ uniquename : MicrosoftCorporation
88
+ versionnumber : 1226559
84
89
  ```
85
90
 
86
91
  </TabItem>
@@ -93,12 +93,30 @@ m365 pp website get --url https://site-0uaq9.powerappsportals.com --environmentN
93
93
  ```text
94
94
  id : 4916bb2c-91e1-4716-91d5-b6171928fac9
95
95
  name : Site 1
96
- siteVisibility: private
97
- status : OperationComplete
98
- subdomain : site-0uaq9
96
+ createdOn : 2024-10-27T12:00:03
97
+ templateName : DefaultPortalTemplate
98
+ websiteUrl : https://site-0uaq9.powerappsportals.com
99
99
  tenantId : 727dc1e9-3cd1-4d1f-8102-ab5c936e52f0
100
+ dataverseInstanceUrl: https://org0cd4b2b9.crm4.dynamics.com/
101
+ environmentName: Contoso (default)
102
+ environmentId : Default-727dc1e9-3cd1-4d1f-8102-ab5c936e52f0
103
+ dataverseOrganizationId: 2d58aeac-74d4-4939-98d1-e05a70a655ba
104
+ selectedBaseLanguage: 1033
105
+ customHostNames: []
106
+ websiteRecordId: 5eb107a6-5ac2-4e1c-a3b9-d5c21bbc10ce
107
+ subdomain : site-0uaq9
108
+ packageInstallStatus: Installed
100
109
  type : Trial
101
- websiteUrl : https://site-0uaq9.powerappsportals.com
110
+ trialExpiringInDays: 86
111
+ suspendedWebsiteDeletingInDays: 93
112
+ packageVersion: 9.6.9.39
113
+ isEarlyUpgradeEnabled: false
114
+ isCustomErrorEnabled: true
115
+ applicationUserAadAppId: 3f57aca7-5051-41b2-989d-26da8af7a53e
116
+ ownerId : 33469a62-c3af-4cfe-b893-854eceab96da
117
+ status : OperationComplete
118
+ siteVisibility: private
119
+ dataModel : Enhanced
102
120
  ```
103
121
 
104
122
  </TabItem>
@@ -127,9 +127,18 @@ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --
127
127
  <TabItem value="Text">
128
128
 
129
129
  ```text
130
- Title UserPrincipalName
131
- ----------- -------------------------------------
132
- Adele Vance Adele.Vance@contoso.onmicrosoft.com
130
+ Email : Adele.Vance@contoso.onmicrosoft.com
131
+ Expiration :
132
+ Id : 11
133
+ IsEmailAuthenticationGuestUser: false
134
+ IsHiddenInUI : false
135
+ IsShareByEmailGuestUser : false
136
+ IsSiteAdmin : false
137
+ LoginName : i:0#.f|membership|adelev@contoso.onmicrosoft.com
138
+ PrincipalType : 1
139
+ Title : Adele Vance
140
+ UserId : {"NameId":"10032001f5ac2029","NameIdIssuer":"urn:federation:microsoftonline"}
141
+ UserPrincipalName : adelev@contoso.onmicrosoft.com
133
142
  ```
134
143
 
135
144
  </TabItem>
@@ -0,0 +1,124 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo homesite add
6
+
7
+ Adds a home site
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo homesite add [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --url <url>`
19
+ : URL of the site to use as a home site.
20
+
21
+ `--isInDraftMode [isInDraftMode]`
22
+ : Specifies whether the home site is in draft mode. Accepts `true` or `false`. Default is `false`.
23
+
24
+ `--vivaConnectionsDefaultStart [vivaConnectionsDefaultStart]`
25
+ : Specifies whether the home site is the default start for Viva Connections. Accepts `true` or `false`. Default is `true`.
26
+
27
+ `--audiences [audiences]`
28
+ : Comma-separated list of Microsoft Entra group IDs that will be used as audience.
29
+
30
+ `--order [order]`
31
+ : Order of the home site. Must be a positive integer.
32
+ ```
33
+
34
+ <Global />
35
+
36
+ ## Examples
37
+
38
+ Add a home site
39
+
40
+ ```sh
41
+ m365 spo homesite add --url "https://contoso.sharepoint.com/sites/testcomms"
42
+ ```
43
+
44
+ Add a home site with additional options
45
+
46
+ ```sh
47
+ m365 spo homesite add --url "https://contoso.sharepoint.com/sites/testcomms" --isInDraftMode true --vivaConnectionsDefaultStart false --audiences "af8c0bc8-7b1b-44b4-b087-ffcc8df70d16,754ff15c-76b1-44cb-88c7-0065a4d3cfb7" --order 2
48
+ ```
49
+
50
+ ## Response
51
+
52
+ <Tabs>
53
+ <TabItem value="JSON">
54
+
55
+ ```json
56
+ {
57
+ "Audiences": [
58
+ {
59
+ "Email": "active@contoso.onmicrosoft.com",
60
+ "Id": "7a1eea7f-9ab0-40ff-8f2e-0083d9d63451",
61
+ "Title": "active Members"
62
+ }
63
+ ],
64
+ "IsInDraftMode": true,
65
+ "IsVivaBackendSite": false,
66
+ "SiteId": "ca49054c-85f3-41eb-a290-46ffda8f219c",
67
+ "TargetedLicenseType": 0,
68
+ "Title": "testcommsite",
69
+ "Url": "https://contoso.sharepoint.com/sites/testcomms",
70
+ "VivaConnectionsDefaultStart": false,
71
+ "WebId": "256c4f0f-e372-47b4-a891-b4888e829e20"
72
+ }
73
+ ```
74
+
75
+ </TabItem>
76
+ <TabItem value="Text">
77
+
78
+ ```text
79
+ Audiences : [{"Email":"active@contoso.onmicrosoft.com","Id":"7a1eea7f-9ab0-40ff-8f2e-0083d9d63451","Title":"active Members"}]
80
+ IsInDraftMode : true
81
+ IsVivaBackendSite : false
82
+ SiteId : ca49054c-85f3-41eb-a290-46ffda8f219c
83
+ TargetedLicenseType : 0
84
+ Title : testcommsite
85
+ Url : https://contoso.sharepoint.com/sites/testcomms
86
+ VivaConnectionsDefaultStart: false
87
+ WebId : 256c4f0f-e372-47b4-a891-b4888e829e20
88
+ ```
89
+
90
+ </TabItem>
91
+ <TabItem value="CSV">
92
+
93
+ ```csv
94
+ IsInDraftMode,IsVivaBackendSite,SiteId,TargetedLicenseType,Title,Url,VivaConnectionsDefaultStart,WebId
95
+ 1,0,ca49054c-85f3-41eb-a290-46ffda8f219c,0,testcommsite,https://contoso.sharepoint.com/sites/testcomms,0,256c4f0f-e372-47b4-a891-b4888e829e20
96
+ ```
97
+
98
+ </TabItem>
99
+ <TabItem value="Markdown">
100
+
101
+ ```md
102
+ # spo homesite add --url "https://contoso.sharepoint.com/sites/testcomms"
103
+
104
+ Date: 12/23/2024
105
+
106
+ ## testcommsite (https://contoso.sharepoint.com/sites/testcomms)
107
+
108
+ Property | Value
109
+ ---------|-------
110
+ IsInDraftMode | true
111
+ IsVivaBackendSite | false
112
+ SiteId | ca49054c-85f3-41eb-a290-46ffda8f219c
113
+ TargetedLicenseType | 0
114
+ Title | testcommsite
115
+ Url | https://contoso.sharepoint.com/sites/testcomms
116
+ VivaConnectionsDefaultStart | false
117
+ WebId | 256c4f0f-e372-47b4-a891-b4888e829e20
118
+ ```
119
+ </TabItem>
120
+ </Tabs>
121
+
122
+ ## More information
123
+
124
+ - SharePoint home sites [Viva Connections set up](https://learn.microsoft.com/en-us/viva/connections/set-up-admin-center)
@@ -109,10 +109,36 @@ m365 spo page copy --webUrl https://contoso.sharepoint.com/sites/team-a --source
109
109
  <TabItem value="Text">
110
110
 
111
111
  ```text
112
- Id : 24
113
- PageLayoutType: Article
114
- Title : new-page
115
- Url : SitePages/home-copy.aspx
112
+ AbsoluteUrl : https://contoso.sharepoint.com/sites/SPDemo/SitePages/home-copy.aspx
113
+ AlternativeUrlMap : {"MediaTAThumbnailPathUrl":"https://southindia1-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://southindia1-mediap.svc.ms","AFDCDNEnabled":"ClientNotOnEdge","CurrentSiteCDNPolicy":"True","PublicCDNEnabled":"True","PrivateCDNEnabled":"True"}
114
+ AuthorByline : null
115
+ BannerImageUrl : https://contoso.sharepoint.com/_layouts/15/images/sitepagethumbnail.png
116
+ BannerThumbnailUrl : https://media.akamai.odsp.cdn.office.net/contoso.sharepoint.com/_layouts/15/images/sitepagethumbnail.png
117
+ CallToAction :
118
+ CanvasContent1 : [{"controlType":3,"displayMode":2,"id":"7558d804-0334-49ca-b14a-53870cf6caae","position":{"controlIndex":1,"sectionIndex":1,"zoneIndex":1,"sectionFactor":12,"layoutIndex":1},"webPartId":"e377ea37-9047-43b9-8cdb-a761be2f8e09","emphasis":{},"webPartData":{"dataVersion":"1.0","description":"Display a location on a map using Bing Maps.","id":"e377ea37-9047-43b9-8cdb-a761be2f8e09","instanceId":"7558d804-0334-49ca-b14a-53870cf6caae","properties":{"pushPins":[],"maxNumberOfPushPins":1,"shouldShowPushPinTitle":true,"zoomLevel":12,"mapType":"road"},"title":"Bing Maps","serverProcessedContent":{"htmlStrings":{},"searchablePlainTexts":{},"imageSources":{},"links":{}}}},{"controlType":0,"pageSettingsSlice":{"isDefaultDescription":true,"isDefaultThumbnail":true}}]
119
+ Categories : null
120
+ CoAuthState : null
121
+ ContentTypeId : 0x0101009D1CB255DA76424F860D91F20E6C411800F1678937A82C3142BEF3C962300813B5
122
+ Description : null
123
+ DoesUserHaveEditPermission : true
124
+ FileName : home-copy.aspx
125
+ FirstPublished : 0001-01-01T08:00:00Z
126
+ Id : 23
127
+ IsPageCheckedOutToCurrentUser: false
128
+ IsWebWelcomePage : false
129
+ Language : en-us
130
+ LayoutWebpartsContent : null
131
+ Modified : 2022-11-26T10:11:30Z
132
+ PageLayoutType : Article
133
+ Path : {"DecodedUrl":"SitePages/home-copy.aspx"}
134
+ PromotedState : 0
135
+ SitePageFlags :
136
+ Title : new-page
137
+ TopicHeader : null
138
+ UniqueId : 3c4b010b-7043-4b2b-b7eb-e6110d1bebac
139
+ Url : SitePages/home-copy.aspx
140
+ Version : 0.1
141
+ VersionInfo : {"LastVersionCreated":"0001-01-01T00:00:00","LastVersionCreatedBy":""}
116
142
  ```
117
143
 
118
144
  </TabItem>
@@ -137,11 +137,50 @@ m365 spo page get --webUrl https://contoso.sharepoint.com/sites/team-a --name ho
137
137
  <TabItem value="Text">
138
138
 
139
139
  ```text
140
- commentsDisabled: true
141
- layoutType : Article
142
- numControls : 2
143
- numSections : 1
144
- title : new-page
140
+ BannerImageUrl : {"Description":"https://contoso.sharepoint.com/_layouts/15/images/sitepagethumbnail.png","Url":"https://contoso.sharepoint.com/_layouts/15/images/sitepagethumbnail.png"}
141
+ CanvasContent1 : <div><div data-sp-canvascontrol="" data-sp-canvasdataversion="1.0" data-sp-controldata="&#123;&quot;controlType&quot;&#58;3,&quot;displayMode&quot;&#58;2,&quot;id&quot;&#58;&quot;7558d804-0334-49ca-b14a-53870cf6caae&quot;,&quot;position&quot;&#58;&#123;&quot;controlIndex&quot;&#58;1,&quot;sectionIndex&quot;&#58;1,&quot;zoneIndex&quot;&#58;1,&quot;sectionFactor&quot;&#58;12,&quot;layoutIndex&quot;&#58;1&#125;,&quot;webPartId&quot;&#58;&quot;e377ea37-9047-43b9-8cdb-a761be2f8e09&quot;,&quot;emphasis&quot;&#58;&#123;&#125;&#125;"><div data-sp-webpart="" data-sp-webpartdataversion="1.0" data-sp-webpartdata="&#123;&quot;dataVersion&quot;&#58;&quot;1.0&quot;,&quot;description&quot;&#58;&quot;Display a location on a map using Bing Maps.&quot;,&quot;id&quot;&#58;&quot;e377ea37-9047-43b9-8cdb-a761be2f8e09&quot;,&quot;instanceId&quot;&#58;&quot;7558d804-0334-49ca-b14a-53870cf6caae&quot;,&quot;properties&quot;&#58;&#123;&quot;pushPins&quot;&#58;[],&quot;maxNumberOfPushPins&quot;&#58;1,&quot;shouldShowPushPinTitle&quot;&#58;true,&quot;zoomLevel&quot;&#58;12,&quot;mapType&quot;&#58;&quot;road&quot;&#125;,&quot;title&quot;&#58;&quot;Bing Maps&quot;&#125;"><div data-sp-componentid="e377ea37-9047-43b9-8cdb-a761be2f8e09"></div><div data-sp-htmlproperties=""></div></div></div><div data-sp-canvascontrol="" data-sp-canvasdataversion="1.0" data-sp-controldata="&#123;&quot;controlType&quot;&#58;0,&quot;pageSettingsSlice&quot;&#58;&#123;&quot;isDefaultDescription&quot;&#58;true,&quot;isDefaultThumbnail&quot;&#58;true&#125;&#125;"></div></div>
142
+ CheckInComment :
143
+ CheckOutType : 2
144
+ ClientSideApplicationId: b6917cb1-93a0-4b97-a84d-7cf49975d4ec
145
+ ComplianceAssetId : null
146
+ ContentTag : {C431F2EF-447C-4F72-BC3E-ED2687456C33},8,3
147
+ ContentTypeId : 0x0101009D1CB255DA76424F860D91F20E6C411800F1678937A82C3142BEF3C962300813B5
148
+ Created : 2022-11-26T01:51:46
149
+ CustomizedPageStatus : 2
150
+ Description : null
151
+ EditorId : 7
152
+ ETag : "{C431F2EF-447C-4F72-BC3E-ED2687456C33},8"
153
+ Exists : true
154
+ FileSystemObjectType : 0
155
+ FirstPublishedDate : null
156
+ GUID : c8e64e90-e546-4b67-ad05-44e76dac54fb
157
+ IrmEnabled : false
158
+ IsHiddenInUI : false
159
+ LayoutWebpartsContent : null
160
+ Length : 4106
161
+ Level : 2
162
+ LinkingUri : null
163
+ LinkingUrl :
164
+ ListItemAllFields : {"CanvasContent1":"<div><div data-sp-canvascontrol=\"\" data-sp-canvasdataversion=\"1.0\" data-sp-controldata=\"&#123;&quot;controlType&quot;&#58;3,&quot;displayMode&quot;&#58;2,&quot;id&quot;&#58;&quot;7558d804-0334-49ca-b14a-53870cf6caae&quot;,...","ContentTypeId":"0x0101009D1CB255DA76424F860D91F20E6C411800F1678937A82C3142BEF3C962300813B5",...}
165
+ MajorVersion : 0
166
+ MinorVersion : 4
167
+ Modified : 2022-11-26T09:55:46Z
168
+ Name : new-page.aspx
169
+ NumControls : 2
170
+ NumSections : 1
171
+ OData__ModerationStatus: 3
172
+ PageLayoutType : Article
173
+ PromotedState : 0
174
+ ServerRelativeUrl : /sites/SPDemo/SitePages/new-page.aspx
175
+ TimeCreated : 2022-11-26T09:51:46Z
176
+ TimeLastModified : 2022-11-26T09:55:46Z
177
+ Title : new-page
178
+ UIVersion : 4
179
+ UIVersionLabel : 0.4
180
+ UniqueId : c431f2ef-447c-4f72-bc3e-ed2687456c33
181
+ commentsDisabled : true
182
+ layoutType : Article
183
+ title : new-page
145
184
  ```
146
185
 
147
186
  </TabItem>
@@ -0,0 +1,47 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo page section remove
6
+
7
+ Removes the specified section from a modern page
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo page section remove [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : URL of the site where the page is located.
20
+
21
+ `-n, --pageName <pageName>`
22
+ : Name of the page from which to remove a section.
23
+
24
+ `-s, --section <section>`
25
+ : ID of the section to be removed.
26
+
27
+ `-f, --force`
28
+ : Don't prompt for confirmation.
29
+ ```
30
+
31
+ <Global />
32
+
33
+ ## Remarks
34
+
35
+ If the specified `pageName` doesn't refer to an existing modern page, you will get a _File doesn't exists_ error.
36
+
37
+ ## Examples
38
+
39
+ Remove section of a modern page
40
+
41
+ ```sh
42
+ m365 spo page section remove --webUrl https://contoso.sharepoint.com/sites/team-a --pageName home.aspx --section 1
43
+ ```
44
+
45
+ ## Response
46
+
47
+ The command won't return a response on success.
@@ -62,8 +62,15 @@ m365 spo sitedesign run status get --webUrl https://contoso.sharepoint.com/sites
62
62
  <TabItem value="Text">
63
63
 
64
64
  ```text
65
+ ActionIndex : 0
66
+ ActionKey : 00000000-0000-0000-0000-000000000000
65
67
  ActionTitle : Activate feature f151bb39-7c3b-414f-bb36-6bf18872052f
68
+ LastModified : 1687422166000
69
+ OrdinalIndex : 0
70
+ OutcomeCode : 0
66
71
  OutcomeText : null
72
+ SiteScriptID : 0c88bed7-943b-42aa-8fef-8fb69eebe3fe
73
+ SiteScriptIndex: 0
67
74
  SiteScriptTitle: Contoso
68
75
  ```
69
76
 
@@ -26,13 +26,13 @@ m365 todo list get [options]
26
26
 
27
27
  ## Examples
28
28
 
29
- Get a specific Microsoft To Do task list based on id
29
+ Get a specific Microsoft To Do task list based on id.
30
30
 
31
31
  ```sh
32
32
  m365 todo list get --id "AAMkADY3NmM5ZjhiLTc3M2ItNDg5ZC1iNGRiLTAyM2FmMjVjZmUzOQAuAAAAAAAZ1T9YqZrvS66KkevskFAXAQBEMhhN5VK7RaaKpIc1KhMKAAAZ3e1AAAA="
33
33
  ```
34
34
 
35
- Get a specific Microsoft To Do task list based on name
35
+ Get a specific Microsoft To Do task list based on name.
36
36
 
37
37
  ```sh
38
38
  m365 todo list get --name "Task list"
@@ -57,8 +57,11 @@ m365 todo list get --name "Task list"
57
57
  <TabItem value="Text">
58
58
 
59
59
  ```text
60
- displayName : Task list
61
- id : AAMkADY3NmM5ZjhiLTc3M2ItNDg5ZC1iNGRiLTAyM2FmMjVjZmUzOQAuAAAAAAAZ1T9YqZrvS66KkevskFAXAQBEMhhN5VK7RaaKpIc1KhMKAAAZ3e1AAAA=
60
+ displayName : Task list
61
+ id : AAMkADY3NmM5ZjhiLTc3M2ItNDg5ZC1iNGRiLTAyM2FmMjVjZmUzOQAuAAAAAAAZ1T9YqZrvS66KkevskFAXAQBEMhhN5VK7RaaKpIc1KhMKAAAZ3e1AAAA=
62
+ isOwner : true
63
+ isShared : false
64
+ wellknownListName: defaultList
62
65
  ```
63
66
 
64
67
  </TabItem>