@pnp/cli-microsoft365 7.0.0-beta.093ef31 → 7.0.0-beta.18ce559

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 (188) hide show
  1. package/README.md +4 -4
  2. package/dist/Auth.js +10 -1
  3. package/dist/Command.js +2 -2
  4. package/dist/cli/Cli.js +4 -4
  5. package/dist/m365/aad/commands/app/app-get.js +4 -1
  6. package/dist/m365/aad/commands/app/app-remove.js +3 -1
  7. package/dist/m365/aad/commands/app/app-role-add.js +4 -1
  8. package/dist/m365/aad/commands/app/app-role-list.js +4 -1
  9. package/dist/m365/aad/commands/app/app-role-remove.js +5 -2
  10. package/dist/m365/aad/commands/app/app-set.js +8 -5
  11. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +11 -6
  12. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +4 -4
  13. package/dist/m365/aad/commands/group/group-get.js +4 -4
  14. package/dist/m365/aad/commands/group/group-list.js +1 -23
  15. package/dist/m365/aad/commands/group/group-remove.js +98 -0
  16. package/dist/m365/aad/commands/m365group/m365group-add.js +21 -12
  17. package/dist/m365/aad/commands/m365group/m365group-conversation-list.js +5 -0
  18. package/dist/m365/aad/commands/m365group/m365group-conversation-post-list.js +4 -0
  19. package/dist/m365/aad/commands/m365group/m365group-get.js +4 -3
  20. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-remove.js +3 -1
  21. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-restore.js +4 -1
  22. package/dist/m365/aad/commands/m365group/m365group-remove.js +5 -0
  23. package/dist/m365/aad/commands/m365group/m365group-renew.js +5 -0
  24. package/dist/m365/aad/commands/m365group/m365group-set.js +5 -0
  25. package/dist/m365/aad/commands/m365group/m365group-teamify.js +14 -6
  26. package/dist/m365/aad/commands/m365group/m365group-user-add.js +5 -0
  27. package/dist/m365/aad/commands/m365group/m365group-user-list.js +5 -0
  28. package/dist/m365/aad/commands/m365group/m365group-user-remove.js +5 -0
  29. package/dist/m365/aad/commands/m365group/m365group-user-set.js +5 -0
  30. package/dist/m365/aad/commands/sp/sp-add.js +4 -1
  31. package/dist/m365/aad/commands/sp/sp-get.js +4 -1
  32. package/dist/m365/aad/commands/user/user-get.js +7 -2
  33. package/dist/m365/aad/commands.js +1 -0
  34. package/dist/m365/booking/commands/business/business-get.js +4 -1
  35. package/dist/m365/commands/login.js +2 -2
  36. package/dist/m365/flow/commands/flow-export.js +13 -13
  37. package/dist/m365/graph/commands/subscription/subscription-add.js +5 -5
  38. package/dist/m365/outlook/commands/message/message-list.js +4 -2
  39. package/dist/m365/outlook/commands/message/message-move.js +4 -2
  40. package/dist/m365/pa/commands/app/app-export.js +7 -7
  41. package/dist/m365/pa/commands/connector/connector-export.js +5 -5
  42. package/dist/m365/planner/commands/bucket/bucket-add.js +4 -1
  43. package/dist/m365/planner/commands/bucket/bucket-get.js +9 -2
  44. package/dist/m365/planner/commands/bucket/bucket-list.js +4 -1
  45. package/dist/m365/planner/commands/bucket/bucket-remove.js +7 -2
  46. package/dist/m365/planner/commands/bucket/bucket-set.js +8 -2
  47. package/dist/m365/planner/commands/plan/plan-add.js +4 -1
  48. package/dist/m365/planner/commands/plan/plan-get.js +4 -1
  49. package/dist/m365/planner/commands/plan/plan-list.js +4 -1
  50. package/dist/m365/planner/commands/plan/plan-remove.js +4 -1
  51. package/dist/m365/planner/commands/plan/plan-set.js +4 -1
  52. package/dist/m365/planner/commands/roster/roster-get.js +4 -1
  53. package/dist/m365/planner/commands/roster/roster-member-add.js +4 -1
  54. package/dist/m365/planner/commands/roster/roster-member-get.js +4 -1
  55. package/dist/m365/planner/commands/roster/roster-member-list.js +4 -1
  56. package/dist/m365/planner/commands/roster/roster-member-remove.js +4 -1
  57. package/dist/m365/planner/commands/roster/roster-plan-list.js +4 -1
  58. package/dist/m365/planner/commands/roster/roster-remove.js +4 -1
  59. package/dist/m365/planner/commands/task/task-add.js +4 -1
  60. package/dist/m365/planner/commands/task/task-checklistitem-add.js +4 -1
  61. package/dist/m365/planner/commands/task/task-checklistitem-list.js +4 -1
  62. package/dist/m365/planner/commands/task/task-checklistitem-remove.js +4 -1
  63. package/dist/m365/planner/commands/task/task-get.js +11 -3
  64. package/dist/m365/planner/commands/task/task-list.js +10 -2
  65. package/dist/m365/planner/commands/task/task-reference-add.js +4 -1
  66. package/dist/m365/planner/commands/task/task-reference-list.js +4 -1
  67. package/dist/m365/planner/commands/task/task-reference-remove.js +4 -1
  68. package/dist/m365/planner/commands/task/task-remove.js +10 -4
  69. package/dist/m365/planner/commands/task/task-set.js +4 -1
  70. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-get.js +4 -1
  71. package/dist/m365/pp/commands/card/card-get.js +3 -5
  72. package/dist/m365/pp/commands/chatbot/chatbot-get.js +3 -1
  73. package/dist/m365/pp/commands/chatbot/chatbot-list.js +2 -2
  74. package/dist/m365/pp/commands/managementapp/managementapp-add.js +4 -1
  75. package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +3 -1
  76. package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.18.0-beta.5.js → doctor-1.18.0.js} +2 -2
  77. package/dist/m365/spfx/commands/project/project-doctor.js +1 -1
  78. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js +1 -1
  79. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7.js +13 -0
  80. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.18.0-beta.5.js → upgrade-1.18.0.js} +35 -27
  81. package/dist/m365/spfx/commands/project/project-upgrade.js +13 -15
  82. package/dist/m365/spfx/commands/spfx-doctor.js +3 -3
  83. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +5 -3
  84. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-remove.js +2 -2
  85. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +3 -2
  86. package/dist/m365/spo/commands/commandset/commandset-get.js +4 -2
  87. package/dist/m365/spo/commands/commandset/commandset-remove.js +2 -1
  88. package/dist/m365/spo/commands/commandset/commandset-set.js +3 -1
  89. package/dist/m365/spo/commands/customaction/customaction-get.js +5 -2
  90. package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -1
  91. package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +3 -1
  92. package/dist/m365/spo/commands/file/file-get.js +11 -8
  93. package/dist/m365/spo/commands/file/file-remove.js +2 -2
  94. package/dist/m365/spo/commands/file/file-version-clear.js +2 -2
  95. package/dist/m365/spo/commands/file/file-version-get.js +2 -2
  96. package/dist/m365/spo/commands/file/file-version-list.js +2 -2
  97. package/dist/m365/spo/commands/file/file-version-remove.js +2 -2
  98. package/dist/m365/spo/commands/file/file-version-restore.js +2 -2
  99. package/dist/m365/spo/commands/group/group-member-add.js +24 -24
  100. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +7 -4
  101. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +4 -1
  102. package/dist/m365/spo/commands/hubsite/hubsite-get.js +3 -1
  103. package/dist/m365/spo/commands/listitem/listitem-add.js +1 -0
  104. package/dist/m365/spo/commands/listitem/listitem-attachment-add.js +127 -0
  105. package/dist/m365/spo/commands/listitem/listitem-attachment-get.js +97 -0
  106. package/dist/m365/spo/commands/listitem/listitem-attachment-remove.js +121 -0
  107. package/dist/m365/spo/commands/listitem/listitem-attachment-set.js +115 -0
  108. package/dist/m365/spo/commands/listitem/listitem-set.js +3 -2
  109. package/dist/m365/spo/commands/page/clientsidepages.js +18 -0
  110. package/dist/m365/spo/commands/page/page-get.js +1 -0
  111. package/dist/m365/spo/commands/page/page-list.js +4 -3
  112. package/dist/m365/spo/commands/page/page-section-add.js +56 -21
  113. package/dist/m365/spo/commands/page/page-set.js +13 -2
  114. package/dist/m365/spo/commands/site/site-commsite-enable.js +34 -5
  115. package/dist/m365/spo/commands/site/site-list.js +5 -7
  116. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +1 -1
  117. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +8 -3
  118. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-list.js +3 -2
  119. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-remove.js +2 -1
  120. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +3 -2
  121. package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +8 -3
  122. package/dist/m365/spo/commands/tenant/tenant-commandset-list.js +3 -2
  123. package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +3 -1
  124. package/dist/m365/spo/commands/term/term-get.js +6 -6
  125. package/dist/m365/spo/commands/user/user-get.js +10 -10
  126. package/dist/m365/spo/commands.js +4 -0
  127. package/dist/m365/teams/commands/app/app-remove.js +49 -15
  128. package/dist/m365/teams/commands/channel/channel-add.js +5 -1
  129. package/dist/m365/teams/commands/channel/channel-member-add.js +12 -10
  130. package/dist/m365/teams/commands/channel/channel-member-remove.js +3 -1
  131. package/dist/m365/teams/commands/channel/channel-member-set.js +4 -1
  132. package/dist/m365/teams/commands/chat/chat-get.js +7 -10
  133. package/dist/m365/teams/commands/chat/chat-message-send.js +8 -10
  134. package/dist/m365/teams/commands/team/team-clone.js +5 -10
  135. package/dist/m365/teams/commands/team/team-list.js +94 -30
  136. package/dist/m365/tenant/commands/info/info-get.js +83 -0
  137. package/dist/m365/tenant/commands.js +1 -0
  138. package/dist/utils/aadGroup.js +21 -3
  139. package/dist/utils/formatting.js +7 -0
  140. package/dist/utils/powerPlatform.js +1 -1
  141. package/docs/docs/_clisettings.mdx +1 -1
  142. package/docs/docs/cmd/aad/app/app-set.mdx +15 -15
  143. package/docs/docs/cmd/aad/approleassignment/approleassignment-add.mdx +9 -9
  144. package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.mdx +10 -10
  145. package/docs/docs/cmd/aad/group/group-get.mdx +5 -5
  146. package/docs/docs/cmd/aad/group/group-list.mdx +0 -11
  147. package/docs/docs/cmd/aad/group/group-remove.mdx +44 -0
  148. package/docs/docs/cmd/aad/m365group/m365group-add.mdx +13 -3
  149. package/docs/docs/cmd/aad/policy/policy-list.mdx +5 -5
  150. package/docs/docs/cmd/cli/config/config-list.mdx +1 -1
  151. package/docs/docs/cmd/flow/flow-export.mdx +11 -11
  152. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +10 -10
  153. package/docs/docs/cmd/pa/app/app-export.mdx +5 -5
  154. package/docs/docs/cmd/pa/connector/connector-export.mdx +3 -3
  155. package/docs/docs/cmd/pp/chatbot/chatbot-list.mdx +4 -4
  156. package/docs/docs/cmd/pp/solution/solution-publisher-get.mdx +2 -2
  157. package/docs/docs/cmd/pp/solution/solution-publisher-remove.mdx +2 -2
  158. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  159. package/docs/docs/cmd/spo/file/file-get.mdx +2 -2
  160. package/docs/docs/cmd/spo/file/file-remove.mdx +2 -2
  161. package/docs/docs/cmd/spo/file/file-version-clear.mdx +2 -2
  162. package/docs/docs/cmd/spo/file/file-version-get.mdx +2 -2
  163. package/docs/docs/cmd/spo/file/file-version-list.mdx +2 -2
  164. package/docs/docs/cmd/spo/file/file-version-remove.mdx +2 -2
  165. package/docs/docs/cmd/spo/file/file-version-restore.mdx +2 -2
  166. package/docs/docs/cmd/spo/group/group-member-add.mdx +27 -27
  167. package/docs/docs/cmd/spo/list/list-contenttype-remove.mdx +1 -1
  168. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +2 -5
  169. package/docs/docs/cmd/spo/listitem/listitem-attachment-add.mdx +110 -0
  170. package/docs/docs/cmd/spo/listitem/listitem-attachment-get.mdx +104 -0
  171. package/docs/docs/cmd/spo/listitem/listitem-attachment-remove.mdx +58 -0
  172. package/docs/docs/cmd/spo/listitem/listitem-attachment-set.mdx +58 -0
  173. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +2 -5
  174. package/docs/docs/cmd/spo/page/page-get.mdx +0 -1
  175. package/docs/docs/cmd/spo/page/page-list.mdx +0 -1
  176. package/docs/docs/cmd/spo/page/page-section-add.mdx +25 -1
  177. package/docs/docs/cmd/spo/page/page-set.mdx +23 -0
  178. package/docs/docs/cmd/spo/site/site-commsite-enable.mdx +11 -2
  179. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +2 -4
  180. package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +2 -4
  181. package/docs/docs/cmd/spo/user/user-get.mdx +8 -8
  182. package/docs/docs/cmd/teams/app/app-remove.mdx +9 -6
  183. package/docs/docs/cmd/teams/channel/channel-member-add.mdx +4 -4
  184. package/docs/docs/cmd/teams/team/team-clone.mdx +3 -3
  185. package/docs/docs/cmd/teams/team/team-list.mdx +47 -22
  186. package/docs/docs/cmd/tenant/info/info-get.mdx +101 -0
  187. package/npm-shrinkwrap.json +24 -24
  188. package/package.json +8 -12
@@ -36,7 +36,6 @@ m365 spo tenant applicationcustomizer list
36
36
  "Id": 8,
37
37
  "ServerRedirectedEmbedUri": null,
38
38
  "ServerRedirectedEmbedUrl": "",
39
- "ID": 8,
40
39
  "ContentTypeId": "0x00693E2C487575B448BD420C12CEAE7EFE",
41
40
  "Title": "HelloWorld",
42
41
  "Modified": "2023-05-21T14:31:30Z",
@@ -73,8 +72,8 @@ m365 spo tenant applicationcustomizer list
73
72
  <TabItem value="CSV">
74
73
 
75
74
  ```csv
76
- FileSystemObjectType,Id,ServerRedirectedEmbedUrl,ID,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,TenantWideExtensionComponentId,TenantWideExtensionComponentProperties,TenantWideExtensionListTemplate,TenantWideExtensionLocation,TenantWideExtensionSequence,TenantWideExtensionDisabled
77
- 0,8,,8,0x00693E2C487575B448BD420C12CEAE7EFE,HelloWorld,2023-05-21T14:31:30Z,2023-05-21T14:31:30Z,9,9,1.0,,23951a41-f613-440e-8119-8f1e87df1d1a,d54e75e7-af4d-455f-9101-a5d906692ecd,"{""testMessage"":""Test message""}",0,ClientSideExtension.ApplicationCustomizer,0,
75
+ FileSystemObjectType,Id,ServerRedirectedEmbedUrl,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,TenantWideExtensionComponentId,TenantWideExtensionComponentProperties,TenantWideExtensionListTemplate,TenantWideExtensionLocation,TenantWideExtensionSequence,TenantWideExtensionDisabled
76
+ 0,8,,0x00693E2C487575B448BD420C12CEAE7EFE,HelloWorld,2023-05-21T14:31:30Z,2023-05-21T14:31:30Z,9,9,1.0,,23951a41-f613-440e-8119-8f1e87df1d1a,d54e75e7-af4d-455f-9101-a5d906692ecd,"{""testMessage"":""Test message""}",0,ClientSideExtension.ApplicationCustomizer,0,
78
77
  ```
79
78
 
80
79
  </TabItem>
@@ -92,7 +91,6 @@ m365 spo tenant applicationcustomizer list
92
91
  FileSystemObjectType | 0
93
92
  Id | 8
94
93
  ServerRedirectedEmbedUrl |
95
- ID | 8
96
94
  ContentTypeId | 0x00693E2C487575B448BD420C12CEAE7EFE
97
95
  Title | HelloWorld
98
96
  Modified | 2023-05-21T14:31:30Z
@@ -36,7 +36,6 @@ m365 spo tenant commandset list
36
36
  "Id": 9,
37
37
  "ServerRedirectedEmbedUri": null,
38
38
  "ServerRedirectedEmbedUrl": "",
39
- "ID": 9,
40
39
  "ContentTypeId": "0x00693E2C487575B448BD420C12CEAE7EFE",
41
40
  "Title": "HelloWorld",
42
41
  "Modified": "2023-05-25T12:11:21Z",
@@ -73,8 +72,8 @@ m365 spo tenant commandset list
73
72
  <TabItem value="CSV">
74
73
 
75
74
  ```csv
76
- FileSystemObjectType,Id,ServerRedirectedEmbedUrl,ID,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,TenantWideExtensionComponentId,TenantWideExtensionComponentProperties,TenantWideExtensionListTemplate,TenantWideExtensionLocation,TenantWideExtensionSequence,TenantWideExtensionDisabled
77
- 0,9,,9,0x00693E2C487575B448BD420C12CEAE7EFE,HelloWorld,2023-05-25T12:11:21Z,2023-05-25T12:11:21Z,9,9,1.0,,6c47dd94-f5d5-4ea8-8b39-920385a56c37,f61d4ae8-3480-4541-930b-d641233c4fea,"{""sampleTextOne"":""One item is selected in the list."", ""sampleTextTwo"":""This command is always visible.""}",100,ClientSideExtension.ListViewCommandSet.CommandBar,0,
75
+ FileSystemObjectType,Id,ServerRedirectedEmbedUrl,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,TenantWideExtensionComponentId,TenantWideExtensionComponentProperties,TenantWideExtensionListTemplate,TenantWideExtensionLocation,TenantWideExtensionSequence,TenantWideExtensionDisabled
76
+ 0,9,,0x00693E2C487575B448BD420C12CEAE7EFE,HelloWorld,2023-05-25T12:11:21Z,2023-05-25T12:11:21Z,9,9,1.0,,6c47dd94-f5d5-4ea8-8b39-920385a56c37,f61d4ae8-3480-4541-930b-d641233c4fea,"{""sampleTextOne"":""One item is selected in the list."", ""sampleTextTwo"":""This command is always visible.""}",100,ClientSideExtension.ListViewCommandSet.CommandBar,0,
78
77
  ```
79
78
 
80
79
  </TabItem>
@@ -92,7 +91,6 @@ m365 spo tenant commandset list
92
91
  FileSystemObjectType | 0
93
92
  Id | 9
94
93
  ServerRedirectedEmbedUrl |
95
- ID | 9
96
94
  ContentTypeId | 0x00693E2C487575B448BD420C12CEAE7EFE
97
95
  Title | HelloWorld
98
96
  Modified | 2023-05-25T12:11:21Z
@@ -19,13 +19,13 @@ m365 spo user get [options]
19
19
  : URL of the web to get the user within
20
20
 
21
21
  `-i, --id [id]`
22
- : ID of the user to retrieve information for. Use either `email`, `id` or `userName`, but not all.
22
+ : ID of the user to retrieve information for. Use either `email`, `id` or `loginName`, but not all.
23
23
 
24
24
  `--email [email]`
25
- : Email of the user to retrieve information for. Use either `email`, `id` or `userName`, but not all.
25
+ : Email of the user to retrieve information for. Use either `email`, `id` or `loginName`, but not all.
26
26
 
27
- `--userName [userName]`
28
- : Login name of the user to retrieve information for. Use either `email`, `id` or `userName`, but not all.
27
+ `--loginName [loginName]`
28
+ : Login name of the user to retrieve information for. Use either `email`, `id` or `loginName`, but not all.
29
29
  ```
30
30
 
31
31
  <Global />
@@ -38,16 +38,16 @@ Get user by email for a web
38
38
  m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --email john.doe@mytenant.onmicrosoft.com
39
39
  ```
40
40
 
41
- Get user with ID _6_ for a web
41
+ Get user by ID for a web
42
42
 
43
43
  ```sh
44
44
  m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --id 6
45
45
  ```
46
46
 
47
- Get user with login name 'i:0#.f|membership|john.doe@mytenant.onmicrosoft.com' for a web
47
+ Get user by login name for a web
48
48
 
49
49
  ```sh
50
- m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --userName "i:0#.f|membership|john.doe@mytenant.onmicrosoft.com"
50
+ m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --loginName "i:0#.f|membership|john.doe@mytenant.onmicrosoft.com"
51
51
  ```
52
52
 
53
53
  ## Response
@@ -105,7 +105,7 @@ m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --user
105
105
  <TabItem value="Markdown">
106
106
 
107
107
  ```md
108
- # spo user get --webUrl "https://contoso.sharepoint.com" --userName "i:0#.f|membership|john.doe@contoso.onmicrosoft.com"
108
+ # spo user get --webUrl "https://contoso.sharepoint.com" --loginName "i:0#.f|membership|john.doe@contoso.onmicrosoft.com"
109
109
 
110
110
  Date: 4/10/2023
111
111
 
@@ -13,11 +13,14 @@ m365 teams app remove [options]
13
13
  ## Options
14
14
 
15
15
  ```md definition-list
16
- `-i, --id <id>`
17
- : ID of the Teams app to remove. Needs to be available in your organization\'s app catalog.
16
+ `-i, --id [id]`
17
+ : ID of the Teams app to remove. Needs to be available in your organization\'s app catalog. Specify either `id` or `name`.
18
+
19
+ `-n, --name [name]`
20
+ : Name of the Teams app to remove. Needs to be available in your organization\'s app catalog. Specify either `id` or `name`.
18
21
 
19
22
  `-f, --force`
20
- : Don't prompt for confirming removing the app
23
+ : Don't prompt for confirming removing the app.
21
24
  ```
22
25
 
23
26
  <Global />
@@ -28,16 +31,16 @@ You can only remove a Teams app as a global administrator.
28
31
 
29
32
  ## Examples
30
33
 
31
- Remove the Teams app with ID _83cece1e-938d-44a1-8b86-918cf6151957_ from the organization's app catalog. Will prompt for confirmation before actually removing the app.
34
+ Remove the Teams app by ID from the organization's app catalog. Will prompt for confirmation before actually removing the app.
32
35
 
33
36
  ```sh
34
37
  m365 teams app remove --id 83cece1e-938d-44a1-8b86-918cf6151957
35
38
  ```
36
39
 
37
- Remove the Teams app with ID _83cece1e-938d-44a1-8b86-918cf6151957_ from the organization's app catalog. Don't prompt for confirmation.
40
+ Remove the Teams app by name from the organization's app catalog. Don't prompt for confirmation.
38
41
 
39
42
  ```sh
40
- m365 teams app remove --id 83cece1e-938d-44a1-8b86-918cf6151957 --force
43
+ m365 teams app remove --name HelloWorld --force
41
44
  ```
42
45
 
43
46
  ## Response
@@ -25,10 +25,10 @@ m365 teams channel member add [options]
25
25
  `--channelName [channelName]`
26
26
  : The display name of the Microsoft Teams team channel. Specify either `channelId` or `channelName`, but not both.
27
27
 
28
- `--userId [userId]`
28
+ `--userIds [userIds]`
29
29
  : The user's ID or principal name. You can also pass a comma-separated list of userIds.
30
30
 
31
- `--userDisplayName [userDisplayName]`
31
+ `--userDisplayNames [userDisplayNames]`
32
32
  : The display name of a user. You can also pass a comma-separated list of display names.
33
33
 
34
34
  `--owner`
@@ -48,13 +48,13 @@ You can only add members and owners of a team to a private channel.
48
48
  Add members to a channel based on their id or user principal name
49
49
 
50
50
  ```sh
51
- m365 teams channel member add --teamId 47d6625d-a540-4b59-a4ab-19b787e40593 --channelId 19:586a8b9e36c4479bbbd378e439a96df2@thread.skype --userId "85a50aa1-e5b8-48ac-b8ce-8e338033c366,john.doe@contoso.com"
51
+ m365 teams channel member add --teamId 47d6625d-a540-4b59-a4ab-19b787e40593 --channelId 19:586a8b9e36c4479bbbd378e439a96df2@thread.skype --userIds "85a50aa1-e5b8-48ac-b8ce-8e338033c366,john.doe@contoso.com"
52
52
  ```
53
53
 
54
54
  Add owners to a channel based on their display names
55
55
 
56
56
  ```sh
57
- m365 teams channel member add --teamName "Human Resources" --channelName "Private Channel" --userDisplayName "Anne Matthews,John Doe" --owner
57
+ m365 teams channel member add --teamName "Human Resources" --channelName "Private Channel" --userDisplayNames "Anne Matthews,John Doe" --owner
58
58
  ```
59
59
 
60
60
  ## Response
@@ -13,11 +13,11 @@ m365 teams team clone [options]
13
13
  ## Options
14
14
 
15
15
  ```md definition-list
16
- `-i, --id [id]`
16
+ `-i, --id <id>`
17
17
  : The ID of the Microsoft Teams team to clone.
18
18
 
19
- `-n, --name [name]`
20
- : The display name for the new Microsoft Teams Team to clone.
19
+ `-n, --name <name>`
20
+ : The display name for the new Microsoft Teams team.
21
21
 
22
22
  `-p, --partsToClone <partsToClone>`
23
23
  : A comma-separated list of the parts to clone. Allowed values are `apps`, `channels`, `members`, `settings`, `tabs`.
@@ -16,29 +16,62 @@ m365 teams team list [options]
16
16
 
17
17
  ```md definition-list
18
18
  `-j, --joined`
19
- : Show only joined teams.
19
+ : Show only teams that the user is a direct member of. Specify either `joined` or `associated` but not both.
20
+
21
+ `-a, --associated`
22
+ : Show only teams that the user is associated with. This includes teams with direct membership and shared channels. Specify either `joined` or `associated` but not both.
23
+
24
+ `--userId [userId]`
25
+ : The ID of the user. Specify either `userId` or `userName` but not both. Specify only when using `joined` or `associated` options.
26
+
27
+ `--userName [userName]`
28
+ : The user principal name of the user. Specify either `userId` or `userName` but not both. Specify only when using `joined` or `associated` options.
20
29
  ```
21
30
 
22
31
  <Global />
23
32
 
24
33
  ## Remarks
25
34
 
35
+ :::note
36
+
37
+ To list `joined` or `associated` teams of another user, you have to be a Teams Administrator or use application permissions.
38
+
39
+ :::
40
+
26
41
  You can only see the details or archived status of the Microsoft Teams you are a member of.
27
42
 
28
43
  ## Examples
29
44
 
30
- List all Microsoft Teams in the tenant.
45
+ List all Microsoft Teams in the tenant
31
46
 
32
47
  ```sh
33
48
  m365 teams team list
34
49
  ```
35
50
 
36
- List all Microsoft Teams in the tenant you are a member of.
51
+ List all Microsoft Teams teams you are a direct member of
37
52
 
38
53
  ```sh
39
54
  m365 teams team list --joined
40
55
  ```
41
56
 
57
+ List all Microsoft Teams teams you are a direct member of or are associated with via a shared channel
58
+
59
+ ```sh
60
+ m365 teams team list --associated
61
+ ```
62
+
63
+ List all Microsoft Teams teams another user is member of
64
+
65
+ ```sh
66
+ m365 teams team list --joined --userName john.doe@contoso.com
67
+ ```
68
+
69
+ List all Microsoft Teams teams where another user is a direct member of or is associated with via a shared channel
70
+
71
+ ```sh
72
+ m365 teams team list --associated --userId e3aca2a8-625a-449b-bb86-cfa84c5d08de
73
+ ```
74
+
42
75
  ## Response
43
76
 
44
77
  <Tabs>
@@ -99,17 +132,17 @@ m365 teams team list --joined
99
132
  <TabItem value="Text">
100
133
 
101
134
  ```text
102
- id displayName isArchived description
103
- ------------------------------------ ---------------- ---------- ---------------------------------------
104
- 5dc7ba76-b9aa-4fdd-9e91-9fe7d0e8dca3 Architecture false Architecture Discussion
135
+ id displayName isArchived description
136
+ ------------------------------------ ------------ ---------- -----------------------
137
+ 5dc7ba76-b9aa-4fdd-9e91-9fe7d0e8dca3 Architecture false Architecture Discussion
105
138
  ```
106
139
 
107
140
  </TabItem>
108
141
  <TabItem value="CSV">
109
142
 
110
143
  ```csv
111
- id,displayName,isArchived,description
112
- 5dc7ba76-b9aa-4fdd-9e91-9fe7d0e8dca3,Architecture,,Architecture Discussion
144
+ id,createdDateTime,displayName,description,internalId,specialization,visibility,webUrl,isArchived,isMembershipLimitedToOwners
145
+ 5dc7ba76-b9aa-4fdd-9e91-9fe7d0e8dca3,2022-12-08T09:17:55.039Z,Architecture,Architecture Discussion,19:pLknmKPPkvgeaG0FtegLfjoDINeY3gvmitMkNG9H3X41@thread.tacv2,none,public,https://teams.microsoft.com/l/team/19:a5c6eccad3fb401997756a1501d561aa%40thread.skype/conversations?groupId=8090c93e-ba7c-433e-9f39-08c7ba07c0b3&tenantId=dcd219dd-bc68-4b9b-bf0b-4a33a796be35,,
113
146
  ```
114
147
 
115
148
  </TabItem>
@@ -125,23 +158,15 @@ m365 teams team list --joined
125
158
  Property | Value
126
159
  ---------|-------
127
160
  id | 5dc7ba76-b9aa-4fdd-9e91-9fe7d0e8dca3
128
- createdDateTime | null
161
+ createdDateTime | 2022-12-08T09:17:55.039Z
129
162
  displayName | Architecture
130
163
  description | Architecture Discussion
131
- internalId | null
132
- classification | null
133
- specialization | null
134
- visibility | null
135
- webUrl | null
164
+ internalId | 19:pLknmKPPkvgeaG0FtegLfjoDINeY3gvmitMkNG9H3X41@thread.tacv2
165
+ specialization | none
166
+ visibility | public
167
+ webUrl | https://teams.microsoft.com/l/team/19:a5c6eccad3fb401997756a1501d561aa%40thread.skype/conversations?groupId=8090c93e-ba7c-433e-9f39-08c7ba07c0b3&tenantId=dcd219dd-bc68-4b9b-bf0b-4a33a796be35
136
168
  isArchived | false
137
- tenantId | 92e59666-257b-49c3-b1fa-1bae8107f6ba
138
- isMembershipLimitedToOwners | null
139
- memberSettings | null
140
- guestSettings | null
141
- messagingSettings | null
142
- funSettings | null
143
- discoverySettings | null
144
- summary | null
169
+ isMembershipLimitedToOwners | false
145
170
  ```
146
171
 
147
172
  </TabItem>
@@ -0,0 +1,101 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # tenant info get
6
+
7
+ Gets information about any tenant
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 tenant info get [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-d, --domainName [domainName]`
19
+ : The primary domain name of a tenant. Optionally specify either `domainName` or `tenantId` but not both. If none are specified, the tenantId of the currently signed-in user is used.
20
+
21
+ `-i, --tenantId [tenantId]`
22
+ : The unique tenant identifier of a tenant. Optionally specify either `domainName` or `tenantId` but not both. If none are specified, the tenantId of the currently signed-in user is used.
23
+ ```
24
+
25
+ <Global />
26
+
27
+ ## Remarks
28
+
29
+ If no domain name or tenantId is specified, the command will return the tenant information of the currently signed in user.
30
+
31
+ ## Examples
32
+
33
+ Get tenant information for the currently signed in user.
34
+
35
+ ```sh
36
+ m365 tenant info get
37
+ ```
38
+
39
+ Get tenant information for the Contoso tenant.
40
+
41
+ ```sh
42
+ m365 tenant info get --domainName contoso.com
43
+ ```
44
+
45
+ Get tenant information by id.
46
+
47
+ ```sh
48
+ m365 tenant info get --tenantId e65b162c-6f87-4eb1-a24e-1b37d3504663
49
+ ```
50
+
51
+ ## Response
52
+
53
+ <Tabs>
54
+ <TabItem value="JSON">
55
+
56
+ ```json
57
+ {
58
+ "tenantId": "e65b162c-6f87-4eb1-a24e-1b37d3504663",
59
+ "federationBrandName": null,
60
+ "displayName": "Contoso",
61
+ "defaultDomainName": "contoso.com"
62
+ }
63
+ ```
64
+
65
+ </TabItem>
66
+ <TabItem value="Text">
67
+
68
+ ```text
69
+ defaultDomainName : contoso.com
70
+ displayName : Contoso
71
+ federationBrandName : null
72
+ tenantId : e65b162c-6f87-4eb1-a24e-1b37d3504663
73
+ ```
74
+
75
+ </TabItem>
76
+ <TabItem value="CSV">
77
+
78
+ ```csv
79
+ tenantId,displayName,defaultDomainName
80
+ e65b162c-6f87-4eb1-a24e-1b37d3504663,Contoso,contoso.com
81
+ ```
82
+
83
+ </TabItem>
84
+ <TabItem value="Markdown">
85
+
86
+ ```md
87
+ # tenant info get
88
+
89
+ Date: 9/14/2023
90
+
91
+ ## Contoso
92
+
93
+ Property | Value
94
+ ---------|-------
95
+ tenantId | e65b162c-6f87-4eb1-a24e-1b37d3504663
96
+ displayName | Contoso
97
+ defaultDomainName | contoso.com
98
+ ```
99
+
100
+ </TabItem>
101
+ </Tabs>
@@ -17,7 +17,7 @@
17
17
  "adaptivecards-templating": "^2.3.1",
18
18
  "adm-zip": "^0.5.10",
19
19
  "applicationinsights": "^2.7.0",
20
- "axios": "^1.3.4",
20
+ "axios": "^1.5.0",
21
21
  "chalk": "^5.2.0",
22
22
  "clipboardy": "^3.0.0",
23
23
  "configstore": "^6.0.0",
@@ -36,7 +36,7 @@
36
36
  "typescript": "^5.0.2",
37
37
  "update-notifier": "^6.0.2",
38
38
  "uuid": "^9.0.0",
39
- "yaml": "^2.3.1"
39
+ "yaml": "^2.3.2"
40
40
  },
41
41
  "bin": {
42
42
  "m365": "dist/index.js",
@@ -52,13 +52,13 @@
52
52
  "@types/json-to-ast": "^2.1.2",
53
53
  "@types/minimist": "^1.2.2",
54
54
  "@types/mocha": "^10.0.1",
55
- "@types/node": "^18.17.4",
55
+ "@types/node": "^18.17.14",
56
56
  "@types/node-forge": "^1.3.4",
57
57
  "@types/omelette": "^0.4.2",
58
- "@types/semver": "^7.5.0",
58
+ "@types/semver": "^7.5.1",
59
59
  "@types/sinon": "^10.0.16",
60
- "@types/update-notifier": "^6.0.2",
61
- "@types/uuid": "^9.0.2",
60
+ "@types/update-notifier": "^6.0.5",
61
+ "@types/uuid": "^9.0.3",
62
62
  "@typescript-eslint/eslint-plugin": "^5.62.0",
63
63
  "@typescript-eslint/parser": "^5.62.0",
64
64
  "c8": "^7.14.0",
@@ -704,9 +704,9 @@
704
704
  "dev": true
705
705
  },
706
706
  "node_modules/@types/node": {
707
- "version": "18.17.11",
708
- "resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.11.tgz",
709
- "integrity": "sha512-r3hjHPBu+3LzbGBa8DHnr/KAeTEEOrahkcL+cZc4MaBMTM+mk8LtXR+zw+nqfjuDZZzYTYgTcpHuP+BEQk069g==",
707
+ "version": "18.17.14",
708
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.14.tgz",
709
+ "integrity": "sha512-ZE/5aB73CyGqgQULkLG87N9GnyGe5TcQjv34pwS8tfBs1IkCh0ASM69mydb2znqd6v0eX+9Ytvk6oQRqu8T1Vw==",
710
710
  "dev": true
711
711
  },
712
712
  "node_modules/@types/node-forge": {
@@ -725,9 +725,9 @@
725
725
  "dev": true
726
726
  },
727
727
  "node_modules/@types/semver": {
728
- "version": "7.5.0",
729
- "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz",
730
- "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==",
728
+ "version": "7.5.1",
729
+ "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.1.tgz",
730
+ "integrity": "sha512-cJRQXpObxfNKkFAZbJl2yjWtJCqELQIdShsogr1d2MilP8dKD9TE/nEKHkJgUNHdGKCQaf9HbIynuV2csLGVLg==",
731
731
  "dev": true
732
732
  },
733
733
  "node_modules/@types/shimmer": {
@@ -760,9 +760,9 @@
760
760
  }
761
761
  },
762
762
  "node_modules/@types/update-notifier": {
763
- "version": "6.0.4",
764
- "resolved": "https://registry.npmjs.org/@types/update-notifier/-/update-notifier-6.0.4.tgz",
765
- "integrity": "sha512-CiKJPSmt/3F4sVnkQTjnP/onKtTJxRkib6Gvw4XESM8FNsHlvRnBNqU5qL0IQmqjtKnz5e9E6Y7xChOpvxFzKg==",
763
+ "version": "6.0.5",
764
+ "resolved": "https://registry.npmjs.org/@types/update-notifier/-/update-notifier-6.0.5.tgz",
765
+ "integrity": "sha512-uUOhxsJ3edPHu06r3k4I2yJ4eoyqBt+53ra9+caXEx0ruoPwqNHTlkq75CUvI4yWsrCA5+31tih+opunLCYnXw==",
766
766
  "dev": true,
767
767
  "dependencies": {
768
768
  "@types/configstore": "*",
@@ -770,9 +770,9 @@
770
770
  }
771
771
  },
772
772
  "node_modules/@types/uuid": {
773
- "version": "9.0.2",
774
- "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.2.tgz",
775
- "integrity": "sha512-kNnC1GFBLuhImSnV7w4njQkUiJi0ZXUycu1rUaouPqiKlXkh77JKgdRnTAp1x5eBwcIwbtI+3otwzuIDEuDoxQ==",
773
+ "version": "9.0.3",
774
+ "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.3.tgz",
775
+ "integrity": "sha512-taHQQH/3ZyI3zP8M/puluDEIEvtQHVYcC6y3N8ijFtAd28+Ey/G4sg1u2gB01S8MwybLOKAp9/yCMu/uR5l3Ug==",
776
776
  "dev": true
777
777
  },
778
778
  "node_modules/@types/xmldom": {
@@ -1293,9 +1293,9 @@
1293
1293
  "integrity": "sha512-LEeSAWeh2Gfa2FtlQE1shxQ8zi5F9GHarrGKz08TMdODD5T4eH6BMsvtnhbWZ+XQn+Gb6om/917ucvRu7l7ukw=="
1294
1294
  },
1295
1295
  "node_modules/axios": {
1296
- "version": "1.4.0",
1297
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz",
1298
- "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==",
1296
+ "version": "1.5.0",
1297
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.5.0.tgz",
1298
+ "integrity": "sha512-D4DdjDo5CY50Qms0qGQTTw6Q44jl7zRwY7bthds06pUGfChBCTcQs+N743eFWGEd6pRTMd6A+I87aWyFV5wiZQ==",
1299
1299
  "dependencies": {
1300
1300
  "follow-redirects": "^1.15.0",
1301
1301
  "form-data": "^4.0.0",
@@ -5194,9 +5194,9 @@
5194
5194
  "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="
5195
5195
  },
5196
5196
  "node_modules/yaml": {
5197
- "version": "2.3.1",
5198
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz",
5199
- "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==",
5197
+ "version": "2.3.2",
5198
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.2.tgz",
5199
+ "integrity": "sha512-N/lyzTPaJasoDmfV7YTrYCI0G/3ivm/9wdG0aHuheKowWQwGTsK0Eoiw6utmzAnI6pkJa0DUVygvp3spqqEKXg==",
5200
5200
  "engines": {
5201
5201
  "node": ">= 14"
5202
5202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "7.0.0-beta.093ef31",
3
+ "version": "7.0.0-beta.18ce559",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -64,11 +64,6 @@
64
64
  "email": "appie@digiwijs.nl",
65
65
  "web": "https://www.cloudappie.nl/"
66
66
  },
67
- {
68
- "name": "Rabia Williams",
69
- "email": "rabiawilliams@gmail.com",
70
- "web": "https://rabiawilliams.com/"
71
- },
72
67
  {
73
68
  "name": "Patrick Lamber",
74
69
  "email": "patrick@nubo.eu",
@@ -149,6 +144,7 @@
149
144
  "Kesavanarayanan, Sudharsan <10280385+sudharsank@users.noreply.github.com>",
150
145
  "Khalil, Bassem <bk@bassems-air.home>",
151
146
  "Kirkham, Don <donkirkham@live.com>",
147
+ "Kornet, Michał <kornetmichal@gmail.com>",
152
148
  "Kumar, Shantha <34408892+ktskumar@users.noreply.github.com>",
153
149
  "Kurian, Cyril C <cyril.kurian2@gmail.com>",
154
150
  "Lamber, Patrick <patrick@nubo.eu>",
@@ -236,7 +232,7 @@
236
232
  "adaptivecards-templating": "^2.3.1",
237
233
  "adm-zip": "^0.5.10",
238
234
  "applicationinsights": "^2.7.0",
239
- "axios": "^1.3.4",
235
+ "axios": "^1.5.0",
240
236
  "chalk": "^5.2.0",
241
237
  "clipboardy": "^3.0.0",
242
238
  "configstore": "^6.0.0",
@@ -255,7 +251,7 @@
255
251
  "typescript": "^5.0.2",
256
252
  "update-notifier": "^6.0.2",
257
253
  "uuid": "^9.0.0",
258
- "yaml": "^2.3.1"
254
+ "yaml": "^2.3.2"
259
255
  },
260
256
  "devDependencies": {
261
257
  "@microsoft/microsoft-graph-types": "^2.38.0",
@@ -265,13 +261,13 @@
265
261
  "@types/json-to-ast": "^2.1.2",
266
262
  "@types/minimist": "^1.2.2",
267
263
  "@types/mocha": "^10.0.1",
268
- "@types/node": "^18.17.4",
264
+ "@types/node": "^18.17.14",
269
265
  "@types/node-forge": "^1.3.4",
270
266
  "@types/omelette": "^0.4.2",
271
- "@types/semver": "^7.5.0",
267
+ "@types/semver": "^7.5.1",
272
268
  "@types/sinon": "^10.0.16",
273
- "@types/update-notifier": "^6.0.2",
274
- "@types/uuid": "^9.0.2",
269
+ "@types/update-notifier": "^6.0.5",
270
+ "@types/uuid": "^9.0.3",
275
271
  "@typescript-eslint/eslint-plugin": "^5.62.0",
276
272
  "@typescript-eslint/parser": "^5.62.0",
277
273
  "c8": "^7.14.0",