@pnp/cli-microsoft365 7.0.0-beta.093ef31 → 7.0.0-beta.14c7857

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 (159) hide show
  1. package/README.md +4 -4
  2. package/dist/Auth.js +10 -1
  3. package/dist/cli/Cli.js +3 -3
  4. package/dist/m365/aad/commands/app/app-get.js +4 -1
  5. package/dist/m365/aad/commands/app/app-remove.js +3 -1
  6. package/dist/m365/aad/commands/app/app-role-add.js +4 -1
  7. package/dist/m365/aad/commands/app/app-role-list.js +4 -1
  8. package/dist/m365/aad/commands/app/app-role-remove.js +5 -2
  9. package/dist/m365/aad/commands/app/app-set.js +8 -5
  10. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +11 -6
  11. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +4 -4
  12. package/dist/m365/aad/commands/group/group-get.js +4 -4
  13. package/dist/m365/aad/commands/group/group-list.js +1 -23
  14. package/dist/m365/aad/commands/group/group-remove.js +98 -0
  15. package/dist/m365/aad/commands/m365group/m365group-add.js +21 -12
  16. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-remove.js +3 -1
  17. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-restore.js +4 -1
  18. package/dist/m365/aad/commands/m365group/m365group-teamify.js +4 -1
  19. package/dist/m365/aad/commands/sp/sp-add.js +4 -1
  20. package/dist/m365/aad/commands/sp/sp-get.js +4 -1
  21. package/dist/m365/aad/commands/user/user-get.js +7 -2
  22. package/dist/m365/aad/commands.js +1 -0
  23. package/dist/m365/booking/commands/business/business-get.js +4 -1
  24. package/dist/m365/commands/login.js +2 -2
  25. package/dist/m365/graph/commands/subscription/subscription-add.js +5 -5
  26. package/dist/m365/outlook/commands/message/message-list.js +4 -2
  27. package/dist/m365/outlook/commands/message/message-move.js +4 -2
  28. package/dist/m365/pa/commands/app/app-export.js +7 -7
  29. package/dist/m365/planner/commands/bucket/bucket-add.js +4 -1
  30. package/dist/m365/planner/commands/bucket/bucket-get.js +9 -2
  31. package/dist/m365/planner/commands/bucket/bucket-list.js +4 -1
  32. package/dist/m365/planner/commands/bucket/bucket-remove.js +7 -2
  33. package/dist/m365/planner/commands/bucket/bucket-set.js +8 -2
  34. package/dist/m365/planner/commands/plan/plan-add.js +4 -1
  35. package/dist/m365/planner/commands/plan/plan-get.js +4 -1
  36. package/dist/m365/planner/commands/plan/plan-list.js +4 -1
  37. package/dist/m365/planner/commands/plan/plan-remove.js +4 -1
  38. package/dist/m365/planner/commands/plan/plan-set.js +4 -1
  39. package/dist/m365/planner/commands/roster/roster-get.js +4 -1
  40. package/dist/m365/planner/commands/roster/roster-member-add.js +4 -1
  41. package/dist/m365/planner/commands/roster/roster-member-get.js +4 -1
  42. package/dist/m365/planner/commands/roster/roster-member-list.js +4 -1
  43. package/dist/m365/planner/commands/roster/roster-member-remove.js +4 -1
  44. package/dist/m365/planner/commands/roster/roster-plan-list.js +4 -1
  45. package/dist/m365/planner/commands/roster/roster-remove.js +4 -1
  46. package/dist/m365/planner/commands/task/task-add.js +4 -1
  47. package/dist/m365/planner/commands/task/task-checklistitem-add.js +4 -1
  48. package/dist/m365/planner/commands/task/task-checklistitem-list.js +4 -1
  49. package/dist/m365/planner/commands/task/task-checklistitem-remove.js +4 -1
  50. package/dist/m365/planner/commands/task/task-get.js +11 -3
  51. package/dist/m365/planner/commands/task/task-list.js +10 -2
  52. package/dist/m365/planner/commands/task/task-reference-add.js +4 -1
  53. package/dist/m365/planner/commands/task/task-reference-list.js +4 -1
  54. package/dist/m365/planner/commands/task/task-reference-remove.js +4 -1
  55. package/dist/m365/planner/commands/task/task-remove.js +10 -4
  56. package/dist/m365/planner/commands/task/task-set.js +4 -1
  57. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-get.js +4 -1
  58. package/dist/m365/pp/commands/card/card-get.js +3 -5
  59. package/dist/m365/pp/commands/chatbot/chatbot-get.js +3 -1
  60. package/dist/m365/pp/commands/managementapp/managementapp-add.js +4 -1
  61. package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +3 -1
  62. package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.18.0-beta.5.js → doctor-1.18.0.js} +2 -2
  63. package/dist/m365/spfx/commands/project/project-doctor.js +1 -1
  64. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js +1 -1
  65. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7.js +13 -0
  66. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.18.0-beta.5.js → upgrade-1.18.0.js} +35 -27
  67. package/dist/m365/spfx/commands/project/project-upgrade.js +13 -15
  68. package/dist/m365/spfx/commands/spfx-doctor.js +3 -3
  69. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +5 -3
  70. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-remove.js +2 -2
  71. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +3 -2
  72. package/dist/m365/spo/commands/commandset/commandset-get.js +4 -2
  73. package/dist/m365/spo/commands/commandset/commandset-remove.js +2 -1
  74. package/dist/m365/spo/commands/commandset/commandset-set.js +3 -1
  75. package/dist/m365/spo/commands/customaction/customaction-get.js +5 -2
  76. package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -1
  77. package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +3 -1
  78. package/dist/m365/spo/commands/file/file-get.js +11 -8
  79. package/dist/m365/spo/commands/file/file-remove.js +2 -2
  80. package/dist/m365/spo/commands/file/file-version-clear.js +2 -2
  81. package/dist/m365/spo/commands/file/file-version-get.js +2 -2
  82. package/dist/m365/spo/commands/file/file-version-list.js +2 -2
  83. package/dist/m365/spo/commands/file/file-version-remove.js +2 -2
  84. package/dist/m365/spo/commands/file/file-version-restore.js +2 -2
  85. package/dist/m365/spo/commands/group/group-member-add.js +24 -24
  86. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +7 -4
  87. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +4 -1
  88. package/dist/m365/spo/commands/hubsite/hubsite-get.js +3 -1
  89. package/dist/m365/spo/commands/listitem/listitem-add.js +1 -0
  90. package/dist/m365/spo/commands/listitem/listitem-set.js +3 -2
  91. package/dist/m365/spo/commands/page/clientsidepages.js +18 -0
  92. package/dist/m365/spo/commands/page/page-get.js +1 -0
  93. package/dist/m365/spo/commands/page/page-list.js +4 -3
  94. package/dist/m365/spo/commands/page/page-section-add.js +56 -21
  95. package/dist/m365/spo/commands/page/page-set.js +13 -2
  96. package/dist/m365/spo/commands/site/site-commsite-enable.js +34 -5
  97. package/dist/m365/spo/commands/site/site-list.js +5 -7
  98. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +1 -1
  99. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +8 -3
  100. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-list.js +3 -2
  101. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-remove.js +2 -1
  102. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +3 -2
  103. package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +8 -3
  104. package/dist/m365/spo/commands/tenant/tenant-commandset-list.js +3 -2
  105. package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +3 -1
  106. package/dist/m365/spo/commands/term/term-get.js +6 -6
  107. package/dist/m365/teams/commands/app/app-remove.js +49 -15
  108. package/dist/m365/teams/commands/channel/channel-add.js +5 -1
  109. package/dist/m365/teams/commands/channel/channel-member-add.js +12 -10
  110. package/dist/m365/teams/commands/channel/channel-member-remove.js +3 -1
  111. package/dist/m365/teams/commands/channel/channel-member-set.js +4 -1
  112. package/dist/m365/teams/commands/chat/chat-get.js +7 -10
  113. package/dist/m365/teams/commands/chat/chat-message-send.js +8 -10
  114. package/dist/m365/teams/commands/team/team-clone.js +5 -10
  115. package/dist/m365/teams/commands/team/team-list.js +94 -30
  116. package/dist/m365/tenant/commands/info/info-get.js +83 -0
  117. package/dist/m365/tenant/commands.js +1 -0
  118. package/dist/utils/aadGroup.js +5 -3
  119. package/dist/utils/formatting.js +7 -0
  120. package/dist/utils/powerPlatform.js +1 -1
  121. package/docs/docs/cmd/aad/app/app-set.mdx +15 -15
  122. package/docs/docs/cmd/aad/approleassignment/approleassignment-add.mdx +9 -9
  123. package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.mdx +10 -10
  124. package/docs/docs/cmd/aad/group/group-get.mdx +5 -5
  125. package/docs/docs/cmd/aad/group/group-list.mdx +0 -11
  126. package/docs/docs/cmd/aad/group/group-remove.mdx +44 -0
  127. package/docs/docs/cmd/aad/m365group/m365group-add.mdx +13 -3
  128. package/docs/docs/cmd/aad/policy/policy-list.mdx +5 -5
  129. package/docs/docs/cmd/cli/config/config-list.mdx +1 -1
  130. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +10 -10
  131. package/docs/docs/cmd/pa/app/app-export.mdx +5 -5
  132. package/docs/docs/cmd/pp/solution/solution-publisher-get.mdx +2 -2
  133. package/docs/docs/cmd/pp/solution/solution-publisher-remove.mdx +2 -2
  134. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  135. package/docs/docs/cmd/spo/file/file-get.mdx +2 -2
  136. package/docs/docs/cmd/spo/file/file-remove.mdx +2 -2
  137. package/docs/docs/cmd/spo/file/file-version-clear.mdx +2 -2
  138. package/docs/docs/cmd/spo/file/file-version-get.mdx +2 -2
  139. package/docs/docs/cmd/spo/file/file-version-list.mdx +2 -2
  140. package/docs/docs/cmd/spo/file/file-version-remove.mdx +2 -2
  141. package/docs/docs/cmd/spo/file/file-version-restore.mdx +2 -2
  142. package/docs/docs/cmd/spo/group/group-member-add.mdx +27 -27
  143. package/docs/docs/cmd/spo/list/list-contenttype-remove.mdx +1 -1
  144. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +2 -5
  145. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +2 -5
  146. package/docs/docs/cmd/spo/page/page-get.mdx +0 -1
  147. package/docs/docs/cmd/spo/page/page-list.mdx +0 -1
  148. package/docs/docs/cmd/spo/page/page-section-add.mdx +25 -1
  149. package/docs/docs/cmd/spo/page/page-set.mdx +23 -0
  150. package/docs/docs/cmd/spo/site/site-commsite-enable.mdx +11 -2
  151. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +2 -4
  152. package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +2 -4
  153. package/docs/docs/cmd/teams/app/app-remove.mdx +9 -6
  154. package/docs/docs/cmd/teams/channel/channel-member-add.mdx +4 -4
  155. package/docs/docs/cmd/teams/team/team-clone.mdx +3 -3
  156. package/docs/docs/cmd/teams/team/team-list.mdx +47 -22
  157. package/docs/docs/cmd/tenant/info/info-get.mdx +101 -0
  158. package/npm-shrinkwrap.json +24 -24
  159. package/package.json +8 -12
@@ -13,13 +13,13 @@ m365 spo file version remove [options]
13
13
  ## Options
14
14
 
15
15
  ```md definition-list
16
- `-w, --webUrl <webUrl>`
16
+ `-u, --webUrl <webUrl>`
17
17
  : The URL of the site where the file is located
18
18
 
19
19
  `--label <label>`
20
20
  : Label of version which will be removed
21
21
 
22
- `-u, --fileUrl [fileUrl]`
22
+ `--fileUrl [fileUrl]`
23
23
  : The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
24
24
 
25
25
  `-i, --fileId [fileId]`
@@ -13,13 +13,13 @@ m365 spo file version restore [options]
13
13
  ## Options
14
14
 
15
15
  ```md definition-list
16
- `-w, --webUrl <webUrl>`
16
+ `-u, --webUrl <webUrl>`
17
17
  : The URL of the site where the file is located
18
18
 
19
19
  `--label <label>`
20
20
  : Label of version which will be restored
21
21
 
22
- `-u, --fileUrl [fileUrl]`
22
+ `--fileUrl [fileUrl]`
23
23
  : The server- or site-relative decoded URL of the file whose version will be restored. Specify either `fileUrl` or `fileId` but not both
24
24
 
25
25
  `-i, --fileId [fileId]`
@@ -16,72 +16,72 @@ m365 spo group member add [options]
16
16
 
17
17
  ```md definition-list
18
18
  `-u, --webUrl <webUrl>`
19
- : URL of the site where the SharePoint group is available
19
+ : URL of the site where the SharePoint group is available.
20
20
 
21
21
  `--groupId [groupId]`
22
- : Id of the SharePoint Group to which the user needs to be added, specify either `groupId` or `groupName`
22
+ : Id of the SharePoint Group to which the user needs to be added, specify either `groupId` or `groupName`.
23
23
 
24
24
  `--groupName [groupName]`
25
- : Name of the SharePoint Group to which the user needs to be added, specify either `groupId` or `groupName`
25
+ : Name of the SharePoint Group to which the user needs to be added, specify either `groupId` or `groupName`.
26
26
 
27
- `--userName [userName]`
28
- : User's UPN (user principal name, eg. megan.bowen@contoso.com). If multiple users need to be added, they have to be comma-separated (e.g. megan.bowen@contoso.com,alex.wilber@contoso.com). Specify either `userId`, `userName`, `email`, `aadGroupId` or `aadGroupName`
27
+ `--userNames [userNames]`
28
+ : User's UPN (user principal name, eg. megan.bowen@contoso.com). If multiple users need to be added, they have to be comma-separated (e.g. megan.bowen@contoso.com,alex.wilber@contoso.com). Specify either `userIds`, `userNames`, `emails`, `aadGroupIds` or `aadGroupNames`.
29
29
 
30
- `--email [email]`
31
- : User's email (eg. megan.bowen@contoso.com). If multiple users need to be added, they have to be comma-separated (e.g. megan.bowen@contoso.com,alex.wilber@contoso.com). Specify either `userId`, `userName`, `email`, `aadGroupId` or `aadGroupName`
30
+ `--emails [emails]`
31
+ : User's email (eg. megan.bowen@contoso.com). If multiple users need to be added, they have to be comma-separated (e.g. megan.bowen@contoso.com,alex.wilber@contoso.com). Specify either `userIds`, `userNames`, `emails`, `aadGroupIds` or `aadGroupNames`.
32
32
 
33
- `--userId [userId]`
34
- : The user Id of the user to add as a member. (Id of the site user, for example: 14) If multiple users need to be added, the Ids have to be comma-separated. Specify either `userId`, `userName`, `email`, `aadGroupId` or `aadGroupName`
33
+ `--userIds [userIds]`
34
+ : The user Id of the user to add as a member. (Id of the site user, for example: 14) If multiple users need to be added, the Ids have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `aadGroupIds` or `aadGroupNames`.
35
35
 
36
- `--aadGroupId [aadGroupId]`
37
- : The object Id of the Azure AD group to add as a member. If multiple groups need to be added, the Ids have to be comma-separated. Specify either `userId`, `userName`, `email`, `aadGroupId` or `aadGroupName`
36
+ `--aadGroupIds [aadGroupIds]`
37
+ : The object Id of the Azure AD group to add as a member. If multiple groups need to be added, the Ids have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `aadGroupIds` or `aadGroupNames`.
38
38
 
39
- `--aadGroupName [aadGroupName]`
40
- : The name of the Azure AD group to add as a member. Specify either `userId`, `userName`, `email`, `aadGroupId` or `aadGroupName`
39
+ `--aadGroupNames [aadGroupNames]`
40
+ : The name of the Azure AD group to add as a member. If multiple groups need to be added, they have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `aadGroupIds` or `aadGroupNames`.
41
41
  ```
42
42
 
43
43
  <Global />
44
44
 
45
45
  ## Remarks
46
46
 
47
- For the `userId`, `userName`, `email`, `aadGroupId` or `aadGroupName` options you can specify multiple values by separating them with a comma. If one of the specified entries is not valid, the command will fail with an error message showing the list of invalid values.
47
+ For the `userIds`, `userNames`, `emails`, `aadGroupIds` or `aadGroupNames` options you can specify multiple values by separating them with a comma. If one of the specified entries is not valid, the command will fail with an error message showing the list of invalid values.
48
48
 
49
49
  ## Examples
50
50
 
51
- Add a user with the userName parameter to a SharePoint group with the groupId parameter
51
+ Add a user with the userNames parameter to a SharePoint group with the groupId parameter
52
52
 
53
53
  ```sh
54
- m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userName "Alex.Wilber@contoso.com"
54
+ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userNames "Alex.Wilber@contoso.com"
55
55
  ```
56
56
 
57
- Add multiple users with the userName parameter to a SharePoint group with the groupId parameter
57
+ Add multiple users with the userNames parameter to a SharePoint group with the groupId parameter
58
58
 
59
59
  ```sh
60
- m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userName "Alex.Wilber@contoso.com, Adele.Vance@contoso.com"
60
+ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userNames "Alex.Wilber@contoso.com, Adele.Vance@contoso.com"
61
61
  ```
62
62
 
63
- Add a user with the email parameter to a SharePoint group with the groupName parameter
63
+ Add a user with the emails parameter to a SharePoint group with the groupName parameter
64
64
 
65
65
  ```sh
66
- m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Contoso Site Owners" --email "Alex.Wilber@contoso.com"
66
+ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Contoso Site Owners" --emails "Alex.Wilber@contoso.com"
67
67
  ```
68
68
 
69
- Add multiple users with the email parameter to a SharePoint group with the groupName parameter
69
+ Add multiple users with the emails parameter to a SharePoint group with the groupName parameter
70
70
 
71
71
  ```sh
72
- m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Contoso Site Owners" --email "Alex.Wilber@contoso.com, Adele.Vance@contoso.com"
72
+ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Contoso Site Owners" --emails "Alex.Wilber@contoso.com, Adele.Vance@contoso.com"
73
73
  ```
74
74
 
75
- Add a user with the userId parameter to a SharePoint group with the groupId parameter
75
+ Add a user with the userIds parameter to a SharePoint group with the groupId parameter
76
76
 
77
77
  ```sh
78
- m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userId 5
78
+ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userIds 5
79
79
  ```
80
80
 
81
- Add multiple users with the userId parameter to a SharePoint group with the groupId parameter
81
+ Add multiple users with the userIds parameter to a SharePoint group with the groupId parameter
82
82
 
83
83
  ```sh
84
- m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userId "5,12"
84
+ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userIds "5,12"
85
85
  ```
86
86
 
87
87
  Add multiple users with the aadUserId parameter to a SharePoint group with the groupId parameter
@@ -140,7 +140,7 @@ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --
140
140
  <TabItem value="Markdown">
141
141
 
142
142
  ```md
143
- # spo group member add --webUrl "https://contoso.sharepoint.com" --groupId "5" --aadGroupId "f2fb2f10-cfd2-4054-8ffd-64533657a5ab"
143
+ # spo group member add --webUrl "https://contoso.sharepoint.com" --groupId "5" --aadGroupIds "f2fb2f10-cfd2-4054-8ffd-64533657a5ab"
144
144
 
145
145
  Date: 13/2/2023
146
146
 
@@ -51,7 +51,7 @@ m365 spo list contenttype remove --webUrl https://contoso.sharepoint.com/sites/p
51
51
  Remove content type with a specific id from the list retrieved by server relative URL in a specific site. This will not prompt for confirmation.
52
52
 
53
53
  ```sh
54
- m365 spo list contenttype remove --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl 'sites/project-x/Documents' --contentTypeId 0x010109010053EE7AEB1FC54A41B4D9F66ADBDC312A --force
54
+ m365 spo list contenttype remove --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl 'sites/project-x/Documents' --id 0x010109010053EE7AEB1FC54A41B4D9F66ADBDC312A --force
55
55
  ```
56
56
 
57
57
  ## Response
@@ -111,7 +111,6 @@ m365 spo listitem add --listTitle "Demo List" --webUrl https://contoso.sharepoin
111
111
  "Id": 234,
112
112
  "ServerRedirectedEmbedUri": null,
113
113
  "ServerRedirectedEmbedUrl": "",
114
- "ID": 234,
115
114
  "ContentTypeId": "0x01003CDBEB7138618C47A98D56499135D6EE0004C0F5794DEBCC4BAC981AC4AE1BD803",
116
115
  "Title": "Test",
117
116
  "Modified": "2022-11-16T20:55:45Z",
@@ -138,7 +137,6 @@ m365 spo listitem add --listTitle "Demo List" --webUrl https://contoso.sharepoin
138
137
  EditorId : 10
139
138
  FileSystemObjectType : 0
140
139
  GUID : cac57513-e870-4e7a-9f23-f4ea10e14f4e
141
- ID : 236
142
140
  Id : 236
143
141
  Modified : 2022-11-16T20:56:31Z
144
142
  OData__UIVersionString : 1.0
@@ -152,8 +150,8 @@ m365 spo listitem add --listTitle "Demo List" --webUrl https://contoso.sharepoin
152
150
  <TabItem value="CSV">
153
151
 
154
152
  ```csv
155
- FileSystemObjectType,Id,ServerRedirectedEmbedUri,ServerRedirectedEmbedUrl,ID,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,ComplianceAssetId,OData__vti_ItemDeclaredRecord
156
- 0,235,,,235,0x01003CDBEB7138618C47A98D56499135D6EE0004C0F5794DEBCC4BAC981AC4AE1BD803,Test,2022-11-16T20:56:09Z,2022-11-16T20:56:09Z,10,10,1.0,,7aa8f3bd-a0a2-4974-81c8-2ac7ddc8e2d8,,
153
+ FileSystemObjectType,Id,ServerRedirectedEmbedUri,ServerRedirectedEmbedUrl,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,ComplianceAssetId,OData__vti_ItemDeclaredRecord
154
+ 0,235,,,0x01003CDBEB7138618C47A98D56499135D6EE0004C0F5794DEBCC4BAC981AC4AE1BD803,Test,2022-11-16T20:56:09Z,2022-11-16T20:56:09Z,10,10,1.0,,7aa8f3bd-a0a2-4974-81c8-2ac7ddc8e2d8,,
157
155
  ```
158
156
 
159
157
  </TabItem>
@@ -176,7 +174,6 @@ m365 spo listitem add --listTitle "Demo List" --webUrl https://contoso.sharepoin
176
174
  Title | Test
177
175
  ComplianceAssetId | null
178
176
  FieldName1 | null
179
- ID | 234
180
177
  Modified | 2022-11-16T20:55:45Z
181
178
  Created | 2022-11-16T20:55:45Z
182
179
  AuthorId | 10
@@ -108,7 +108,6 @@ m365 spo listitem set --listTitle "Demo List" --id 147 --webUrl https://contoso.
108
108
  "Id": 236,
109
109
  "ServerRedirectedEmbedUri": null,
110
110
  "ServerRedirectedEmbedUrl": "",
111
- "ID": 236,
112
111
  "ContentTypeId": "0x01003CDBEB7138618C47A98D56499135D6EE0004C0F5794DEBCC4BAC981AC4AE1BD803",
113
112
  "Title": "Updated Title",
114
113
  "Modified": "2022-11-16T21:10:06Z",
@@ -135,7 +134,6 @@ m365 spo listitem set --listTitle "Demo List" --id 147 --webUrl https://contoso.
135
134
  EditorId : 10
136
135
  FileSystemObjectType : 0
137
136
  GUID : cac57513-e870-4e7a-9f23-f4ea10e14f4e
138
- ID : 236
139
137
  Id : 236
140
138
  Modified : 2022-11-16T21:10:37Z
141
139
  OData__UIVersionString : 8.0
@@ -149,8 +147,8 @@ m365 spo listitem set --listTitle "Demo List" --id 147 --webUrl https://contoso.
149
147
  <TabItem value="CSV">
150
148
 
151
149
  ```csv
152
- FileSystemObjectType,Id,ServerRedirectedEmbedUri,ServerRedirectedEmbedUrl,ID,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,ComplianceAssetId,OData__vti_ItemDeclaredRecord
153
- 0,236,,,236,0x01003CDBEB7138618C47A98D56499135D6EE0004C0F5794DEBCC4BAC981AC4AE1BD803,Updated Title,2022-11-16T21:10:55Z,2022-11-16T20:56:31Z,10,10,9.0,1,cac57513-e870-4e7a-9f23-f4ea10e14f4e,,
150
+ FileSystemObjectType,Id,ServerRedirectedEmbedUri,ServerRedirectedEmbedUrl,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,ComplianceAssetId,OData__vti_ItemDeclaredRecord
151
+ 0,236,,,0x01003CDBEB7138618C47A98D56499135D6EE0004C0F5794DEBCC4BAC981AC4AE1BD803,Updated Title,2022-11-16T21:10:55Z,2022-11-16T20:56:31Z,10,10,9.0,1,cac57513-e870-4e7a-9f23-f4ea10e14f4e,,
154
152
  ```
155
153
 
156
154
  </TabItem>
@@ -173,7 +171,6 @@ m365 spo listitem set --listTitle "Demo List" --id 147 --webUrl https://contoso.
173
171
  Title | Updated Title
174
172
  ComplianceAssetId | null
175
173
  FieldName1 | null
176
- ID | 236
177
174
  Modified | 2022-11-16T21:10:06Z
178
175
  Created | 2022-11-16T20:56:31Z
179
176
  AuthorId | 10
@@ -85,7 +85,6 @@ m365 spo page get --webUrl https://contoso.sharepoint.com/sites/team-a --name ho
85
85
  "OData__OriginalSourceItemId": null,
86
86
  "OData__SPCallToAction": null,
87
87
  "OData__ModerationStatus": 3,
88
- "ID": 21,
89
88
  "Created": "2022-11-26T01:51:46",
90
89
  "AuthorId": 7,
91
90
  "Modified": "2022-11-26T01:55:47",
@@ -89,7 +89,6 @@ m365 spo page list --webUrl https://contoso.sharepoint.com/sites/team-a
89
89
  "OData__OriginalSourceItemId": null,
90
90
  "OData__SPCallToAction": null,
91
91
  "OData__ModerationStatus": 0,
92
- "ID": 10,
93
92
  "Created": "2020-09-06T02:18:55-07:00",
94
93
  "AuthorId": 1073741823,
95
94
  "Modified": "2020-09-06T02:18:55-07:00",
@@ -20,10 +20,16 @@ m365 spo page section add [options]
20
20
  : URL of the site where the page to retrieve is located.
21
21
 
22
22
  `-t, --sectionTemplate <sectionTemplate>`
23
- : Type of section to add. Allowed values `OneColumn`, `OneColumnFullWidth`, `TwoColumn`, `ThreeColumn`, `TwoColumnLeft`, `TwoColumnRight`.
23
+ : Type of section to add. Allowed values `OneColumn`, `OneColumnFullWidth`, `TwoColumn`, `ThreeColumn`, `TwoColumnLeft`, `TwoColumnRight`, `Vertical`.
24
24
 
25
25
  `--order [order]`
26
26
  : Order of the section to add.
27
+
28
+ `--zoneEmphasis [zoneEmphasis]`
29
+ : Section background shading. Allowed values `None`, `Neutral`, `Soft`, `Strong`
30
+
31
+ `--isLayoutReflowOnTop`
32
+ : The position of the Vertical section for smaller screens. Applied only for Vertical section.
27
33
  ```
28
34
 
29
35
  <Global />
@@ -40,6 +46,24 @@ Add section to the modern page
40
46
  m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate OneColumn --order 1
41
47
  ```
42
48
 
49
+ Add section with background shading to the modern page
50
+
51
+ ```sh
52
+ m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate OneColumn --zoneEmphasis Strong
53
+ ```
54
+
55
+ Add a vertical section to the modern page. There can only be one vertical section per page. If a vertical section already exists on the page, the command will not have any effect.
56
+
57
+ ```sh
58
+ m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate Vertical
59
+ ```
60
+
61
+ Add Vertical section with background shading to the modern page with adjusting the position of this section for smaller screens to the top
62
+
63
+ ```sh
64
+ m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate Vertical --zoneEmphasis Neutral --isLayoutReflowOnTop
65
+ ```
66
+
43
67
  ## Response
44
68
 
45
69
  The command won't return a response on success.
@@ -42,6 +42,9 @@ m365 spo page set [options]
42
42
 
43
43
  `--title [title]`
44
44
  : The title to set for the page.
45
+
46
+ `--content [content]`
47
+ : JSON string containing page content
45
48
  ```
46
49
 
47
50
  <Global />
@@ -52,6 +55,20 @@ If you try to create a page with a name of a page that already exists, you will
52
55
 
53
56
  If you choose to promote the page using the `promoteAs` option or enable page comments, you will see the result only after publishing the page.
54
57
 
58
+ Running this command from the Windows Command Shell (cmd.exe) or PowerShell for Windows OS XP, 7, 8, 8.1 without bash installed might require additional formatting for command options that have JSON, XML or JavaScript values because the command shell treat quotes differently. For example, this is how you can add page content from the Windows cmd.exe:
59
+
60
+ ```sh
61
+ m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --content '[{\"controlType\": 4,\"id\": \"42b8afe8-dafe-4c11-bfbf-df5ef5b1feb7\",\"position\": {\"layoutIndex\": 1,\"zoneIndex\": 1,\"sectionIndex\": 1,\"sectionFactor\": 12,\"controlIndex\": 1},\"addedFromPersistedData\": true,\"innerHTML\":\"<p>Hello World</p>\"}]'
62
+ ```
63
+
64
+ Note, how the content option has escaped double quotes `'[{\"controlType\": 4,\"id\": \"42b8afe8-dafe-4c11-bfbf-df5ef5b1feb7\",\"position\": {\"layoutIndex\": 1,\"zoneIndex\": 1,\"sectionIndex\": 1,\"sectionFactor\": 12,\"controlIndex\": 1},\"addedFromPersistedData\": true,\"innerHTML\":\"<p>Hello World</p>\"}]'` compared to execution from bash `''[{"controlType": 4,"id": "42b8afe8-dafe-4c11-bfbf-df5ef5b1feb7","position": {"layoutIndex": 1,"zoneIndex": 1,"sectionIndex": 1,"sectionFactor": 12,"controlIndex": 1},"addedFromPersistedData": true,"innerHTML":"<p>Hello World</p>"}]'`.
65
+
66
+ :::caution Escaping JSON in PowerShell
67
+
68
+ When using the `--content` option it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../../user-guide/using-cli.mdx#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../../user-guide/using-cli.mdx#passing-complex-content-into-cli-options) instead.
69
+
70
+ :::
71
+
55
72
  ## Examples
56
73
 
57
74
  Change the layout of the existing page to _Article_
@@ -102,6 +119,12 @@ Set page description
102
119
  m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --description "Description to add for the page"
103
120
  ```
104
121
 
122
+ Set page content
123
+
124
+ ```sh
125
+ m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --content '[{\"controlType\": 4,\"id\": \"42b8afe8-dafe-4c11-bfbf-df5ef5b1feb7\",\"position\": {\"layoutIndex\": 1,\"zoneIndex\": 1,\"sectionIndex\": 1,\"sectionFactor\": 12,\"controlIndex\": 1},\"addedFromPersistedData\": true,\"innerHTML\":\"<p>Hello World</p>\"}]'
126
+ ```
127
+
105
128
  ## Response
106
129
 
107
130
  The command won't return a response on success.
@@ -17,7 +17,10 @@ m365 spo site commsite enable [options]
17
17
  : The URL of the site to enable communication site features on
18
18
 
19
19
  `-i, --designPackageId [designPackageId]`
20
- : The ID of the site design to apply when enabling communication site features. Allowed values are `96c933ac-3698-44c7-9f4a-5fd17d71af9e` (Topic = default), `6142d2a0-63a5-4ba0-aede-d9fefca2c767` (Showcase), `f6cc5403-0d63-442e-96c0-285923709ffc` (Blank)
20
+ : The ID of the site design to apply when enabling communication site features. Specify designPackageId or designPackage but not both.
21
+
22
+ `-p, --designPackage [designPackage]`
23
+ : The site design to apply when enabling communication site features. Valid values are: Topic, Showcase, or Blank. Defaults to Topic. Specify designPackageId or designPackage but not both.
21
24
  ```
22
25
 
23
26
  <Global />
@@ -38,12 +41,18 @@ Enable communication site features on an existing site
38
41
  m365 spo site commsite enable --url https://contoso.sharepoint.com
39
42
  ```
40
43
 
41
- Enable communication site features on an existing site and apply Showcase design package
44
+ Enable communication site features on an existing site and apply the Showcase design package using its ID.
42
45
 
43
46
  ```sh
44
47
  m365 spo site commsite enable --url https://contoso.sharepoint.com --designPackageId 6142d2a0-63a5-4ba0-aede-d9fefca2c767
45
48
  ```
46
49
 
50
+ Enable communication site features on an existing site and apply the Showcase design package using its friendly name.
51
+
52
+ ```sh
53
+ m365 spo site commsite enable --url https://contoso.sharepoint.com --designPackage Showcase
54
+ ```
55
+
47
56
  ## Response
48
57
 
49
58
  The command won't return a response on success.
@@ -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
@@ -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>