@pnp/cli-microsoft365 6.3.0 → 6.4.0-beta.140530d

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 (212) hide show
  1. package/.devcontainer/Dockerfile +5 -2
  2. package/.eslintrc.js +4 -0
  3. package/Dockerfile +6 -3
  4. package/README.md +12 -1
  5. package/dist/Auth.js +1 -3
  6. package/dist/Command.js +1 -0
  7. package/dist/m365/aad/commands/user/user-get.js +3 -0
  8. package/dist/m365/aad/commands/user/user-license-remove.js +2 -1
  9. package/dist/m365/aad/commands/user/user-recyclebinitem-restore.js +2 -9
  10. package/dist/m365/aad/commands/user/user-set.js +3 -0
  11. package/dist/m365/aad/commands/user/user-signin-list.js +3 -0
  12. package/dist/m365/file/commands/file-list.js +5 -1
  13. package/dist/m365/flow/commands/flow-disable.js +9 -2
  14. package/dist/m365/flow/commands/flow-enable.js +9 -2
  15. package/dist/m365/flow/commands/flow-get.js +9 -2
  16. package/dist/m365/flow/commands/flow-list.js +1 -1
  17. package/dist/m365/flow/commands/flow-remove.js +2 -2
  18. package/dist/m365/flow/commands/owner/owner-ensure.js +147 -0
  19. package/dist/m365/flow/commands/owner/owner-list.js +89 -0
  20. package/dist/m365/flow/commands/owner/owner-remove.js +147 -0
  21. package/dist/m365/flow/commands/run/run-cancel.js +9 -2
  22. package/dist/m365/flow/commands/run/run-list.js +5 -2
  23. package/dist/m365/flow/commands.js +3 -0
  24. package/dist/m365/planner/commands/roster/roster-member-add.js +3 -0
  25. package/dist/m365/planner/commands/roster/roster-member-get.js +98 -0
  26. package/dist/m365/planner/commands.js +1 -0
  27. package/dist/m365/purview/commands/retentionevent/retentionevent-add.js +138 -0
  28. package/dist/m365/purview/commands/retentionlabel/retentionlabel-add.js +48 -14
  29. package/dist/m365/purview/commands.js +1 -0
  30. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.0-beta.1.js +59 -0
  31. package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
  32. package/dist/m365/spfx/commands/spfx-doctor.js +43 -29
  33. package/dist/m365/spo/commands/commandset/commandset-add.js +138 -0
  34. package/dist/m365/spo/commands/commandset/commandset-get.js +128 -0
  35. package/dist/m365/spo/commands/commandset/commandset-list.js +77 -0
  36. package/dist/m365/spo/commands/commandset/commandset-remove.js +146 -0
  37. package/dist/m365/spo/commands/commandset/commandset-set.js +182 -0
  38. package/dist/m365/spo/commands/customaction/customaction-get.js +27 -7
  39. package/dist/m365/spo/commands/file/file-move.js +1 -1
  40. package/dist/m365/spo/commands/group/group-member-add.js +54 -95
  41. package/dist/m365/spo/commands/list/list-add.js +11 -8
  42. package/dist/m365/spo/commands/list/list-set.js +3 -3
  43. package/dist/m365/spo/commands/navigation/navigation-node-add.js +5 -4
  44. package/dist/m365/spo/commands/navigation/navigation-node-set.js +5 -1
  45. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +118 -0
  46. package/dist/m365/spo/commands/term/term-get.js +68 -48
  47. package/dist/m365/spo/commands/user/user-ensure.js +105 -0
  48. package/dist/m365/spo/commands.js +7 -0
  49. package/dist/m365/todo/commands/task/task-add.js +35 -3
  50. package/dist/utils/aadGroup.js +18 -0
  51. package/dist/utils/aadUser.js +37 -0
  52. package/dist/utils/md.js +7 -0
  53. package/dist/utils/spo.js +32 -0
  54. package/docs/docs/cmd/aad/app/app-add.md +3 -3
  55. package/docs/docs/cmd/aad/approleassignment/approleassignment-add.md +5 -5
  56. package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.md +3 -3
  57. package/docs/docs/cmd/aad/user/user-remove.md +1 -1
  58. package/docs/docs/cmd/cli/completion/completion-clink-update.md +4 -4
  59. package/docs/docs/cmd/flow/owner/owner-ensure.md +61 -0
  60. package/docs/docs/cmd/flow/owner/owner-list.md +90 -0
  61. package/docs/docs/cmd/flow/owner/owner-remove.md +67 -0
  62. package/docs/docs/cmd/flow/run/run-list.md +28 -0
  63. package/docs/docs/cmd/onenote/page/page-list.md +1 -1
  64. package/docs/docs/cmd/outlook/mail/mail-send.md +7 -3
  65. package/docs/docs/cmd/outlook/message/message-get.md +143 -0
  66. package/docs/docs/cmd/outlook/message/message-list.md +119 -0
  67. package/docs/docs/cmd/outlook/message/message-move.md +4 -0
  68. package/docs/docs/cmd/outlook/report/report-mailactivitycounts.md +40 -0
  69. package/docs/docs/cmd/outlook/report/report-mailactivityusercounts.md +40 -0
  70. package/docs/docs/cmd/outlook/report/report-mailactivityuserdetail.md +45 -0
  71. package/docs/docs/cmd/outlook/report/report-mailappusageappsusercounts.md +43 -0
  72. package/docs/docs/cmd/outlook/report/report-mailappusageusercounts.md +44 -0
  73. package/docs/docs/cmd/outlook/report/report-mailappusageuserdetail.md +48 -0
  74. package/docs/docs/cmd/outlook/report/report-mailappusageversionsusercounts.md +41 -0
  75. package/docs/docs/cmd/outlook/report/report-mailboxusagedetail.md +49 -0
  76. package/docs/docs/cmd/outlook/report/report-mailboxusagemailboxcount.md +37 -0
  77. package/docs/docs/cmd/outlook/report/report-mailboxusagequotastatusmailboxcounts.md +40 -0
  78. package/docs/docs/cmd/outlook/report/report-mailboxusagestorage.md +36 -0
  79. package/docs/docs/cmd/outlook/room/room-list.md +81 -0
  80. package/docs/docs/cmd/outlook/roomlist/roomlist-list.md +58 -0
  81. package/docs/docs/cmd/planner/plan/plan-add.md +3 -3
  82. package/docs/docs/cmd/planner/plan/plan-set.md +73 -7
  83. package/docs/docs/cmd/planner/roster/roster-add.md +16 -1
  84. package/docs/docs/cmd/planner/roster/roster-member-get.md +87 -0
  85. package/docs/docs/cmd/planner/task/task-add.md +230 -0
  86. package/docs/docs/cmd/planner/task/task-checklistitem-add.md +55 -0
  87. package/docs/docs/cmd/planner/task/task-checklistitem-list.md +55 -0
  88. package/docs/docs/cmd/planner/task/task-checklistitem-remove.md +4 -0
  89. package/docs/docs/cmd/planner/task/task-get.md +131 -0
  90. package/docs/docs/cmd/planner/task/task-list.md +92 -0
  91. package/docs/docs/cmd/planner/task/task-reference-add.md +46 -0
  92. package/docs/docs/cmd/planner/task/task-reference-list.md +46 -0
  93. package/docs/docs/cmd/planner/task/task-reference-remove.md +4 -0
  94. package/docs/docs/cmd/planner/task/task-remove.md +4 -0
  95. package/docs/docs/cmd/planner/task/task-set.md +230 -0
  96. package/docs/docs/cmd/planner/tenant/tenant-settings-list.md +55 -0
  97. package/docs/docs/cmd/planner/tenant/tenant-settings-set.md +55 -0
  98. package/docs/docs/cmd/pp/card/card-get.md +2 -2
  99. package/docs/docs/cmd/pp/card/card-list.md +2 -2
  100. package/docs/docs/cmd/purview/retentionevent/retentionevent-add.md +149 -0
  101. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.md +7 -7
  102. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.md +12 -0
  103. package/docs/docs/cmd/skype/report/report-activitycounts.md +38 -0
  104. package/docs/docs/cmd/skype/report/report-activityusercounts.md +38 -0
  105. package/docs/docs/cmd/skype/report/report-activityuserdetail.md +67 -0
  106. package/docs/docs/cmd/spfx/project/project-doctor.md +3 -3
  107. package/docs/docs/cmd/spfx/project/project-externalize.md +3 -3
  108. package/docs/docs/cmd/spfx/project/project-permissions-grant.md +21 -0
  109. package/docs/docs/cmd/spfx/project/project-upgrade.md +3 -3
  110. package/docs/docs/cmd/spfx/spfx-doctor.md +3 -3
  111. package/docs/docs/cmd/spo/cdn/cdn-get.md +6 -6
  112. package/docs/docs/cmd/spo/cdn/cdn-origin-add.md +3 -3
  113. package/docs/docs/cmd/spo/cdn/cdn-origin-list.md +3 -3
  114. package/docs/docs/cmd/spo/cdn/cdn-origin-remove.md +3 -3
  115. package/docs/docs/cmd/spo/cdn/cdn-policy-list.md +3 -3
  116. package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +3 -3
  117. package/docs/docs/cmd/spo/cdn/cdn-set.md +3 -3
  118. package/docs/docs/cmd/spo/commandset/commandset-add.md +159 -0
  119. package/docs/docs/cmd/spo/commandset/commandset-get.md +149 -0
  120. package/docs/docs/cmd/spo/commandset/commandset-list.md +109 -0
  121. package/docs/docs/cmd/spo/commandset/commandset-remove.md +55 -0
  122. package/docs/docs/cmd/spo/commandset/commandset-set.md +71 -0
  123. package/docs/docs/cmd/spo/customaction/customaction-get.md +113 -11
  124. package/docs/docs/cmd/spo/externaluser/externaluser-list.md +2 -0
  125. package/docs/docs/cmd/spo/group/group-member-add.md +26 -4
  126. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.md +2 -0
  127. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.md +2 -0
  128. package/docs/docs/cmd/spo/homesite/homesite-remove.md +2 -0
  129. package/docs/docs/cmd/spo/homesite/homesite-set.md +2 -0
  130. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-get.md +2 -0
  131. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.md +2 -0
  132. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +3 -3
  133. package/docs/docs/cmd/spo/list/list-add.md +2 -2
  134. package/docs/docs/cmd/spo/list/list-set.md +2 -2
  135. package/docs/docs/cmd/spo/listitem/listitem-add.md +1 -1
  136. package/docs/docs/cmd/spo/listitem/listitem-batch-add.md +1 -1
  137. package/docs/docs/cmd/spo/listitem/listitem-set.md +1 -1
  138. package/docs/docs/cmd/spo/navigation/navigation-node-add.md +3 -3
  139. package/docs/docs/cmd/spo/navigation/navigation-node-set.md +2 -2
  140. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.md +2 -0
  141. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.md +2 -0
  142. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.md +2 -0
  143. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.md +2 -0
  144. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.md +2 -0
  145. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-set.md +3 -3
  146. package/docs/docs/cmd/spo/site/site-appcatalog-add.md +2 -0
  147. package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +3 -3
  148. package/docs/docs/cmd/spo/site/site-commsite-enable.md +2 -0
  149. package/docs/docs/cmd/spo/site/site-list.md +3 -3
  150. package/docs/docs/cmd/spo/site/site-remove.md +3 -3
  151. package/docs/docs/cmd/spo/site/site-rename.md +3 -3
  152. package/docs/docs/cmd/spo/site/site-set.md +5 -5
  153. package/docs/docs/cmd/spo/storageentity/storageentity-remove.md +3 -3
  154. package/docs/docs/cmd/spo/storageentity/storageentity-set.md +3 -3
  155. package/docs/docs/cmd/spo/tenant/tenant-appcatalog-add.md +3 -3
  156. package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.md +2 -0
  157. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.md +3 -3
  158. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.md +142 -0
  159. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-list.md +2 -0
  160. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.md +3 -3
  161. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.md +3 -3
  162. package/docs/docs/cmd/spo/tenant/tenant-settings-list.md +2 -0
  163. package/docs/docs/cmd/spo/tenant/tenant-settings-set.md +28 -26
  164. package/docs/docs/cmd/spo/term/term-add.md +3 -3
  165. package/docs/docs/cmd/spo/term/term-get.md +3 -3
  166. package/docs/docs/cmd/spo/term/term-group-add.md +2 -0
  167. package/docs/docs/cmd/spo/term/term-group-get.md +2 -0
  168. package/docs/docs/cmd/spo/term/term-group-list.md +2 -0
  169. package/docs/docs/cmd/spo/term/term-list.md +3 -1
  170. package/docs/docs/cmd/spo/term/term-set-add.md +3 -3
  171. package/docs/docs/cmd/spo/term/term-set-get.md +2 -0
  172. package/docs/docs/cmd/spo/term/term-set-list.md +2 -0
  173. package/docs/docs/cmd/spo/theme/theme-apply.md +3 -3
  174. package/docs/docs/cmd/spo/theme/theme-get.md +2 -0
  175. package/docs/docs/cmd/spo/theme/theme-list.md +2 -0
  176. package/docs/docs/cmd/spo/theme/theme-remove.md +2 -0
  177. package/docs/docs/cmd/spo/theme/theme-set.md +3 -3
  178. package/docs/docs/cmd/spo/user/user-ensure.md +109 -0
  179. package/docs/docs/cmd/teams/channel/channel-get.md +1 -1
  180. package/docs/docs/cmd/teams/channel/channel-member-add.md +2 -2
  181. package/docs/docs/cmd/teams/message/message-get.md +39 -4
  182. package/docs/docs/cmd/teams/message/message-list.md +41 -6
  183. package/docs/docs/cmd/teams/message/message-reply-list.md +39 -4
  184. package/docs/docs/cmd/teams/messagingsettings/messagingsettings-list.md +20 -2
  185. package/docs/docs/cmd/teams/messagingsettings/messagingsettings-set.md +8 -8
  186. package/docs/docs/cmd/teams/report/report-deviceusagedistributionusercounts.md +12 -5
  187. package/docs/docs/cmd/teams/report/report-deviceusageusercounts.md +13 -6
  188. package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.md +14 -7
  189. package/docs/docs/cmd/teams/report/report-directroutingcalls.md +13 -6
  190. package/docs/docs/cmd/teams/report/report-pstncalls.md +13 -6
  191. package/docs/docs/cmd/teams/report/report-useractivitycounts.md +13 -6
  192. package/docs/docs/cmd/teams/report/report-useractivityusercounts.md +13 -6
  193. package/docs/docs/cmd/teams/report/report-useractivityuserdetail.md +13 -6
  194. package/docs/docs/cmd/teams/tab/tab-add.md +16 -0
  195. package/docs/docs/cmd/teams/tab/tab-get.md +17 -0
  196. package/docs/docs/cmd/teams/tab/tab-list.md +19 -0
  197. package/docs/docs/cmd/teams/team/team-add.md +77 -8
  198. package/docs/docs/cmd/teams/team/team-app-list.md +18 -2
  199. package/docs/docs/cmd/teams/team/team-archive.md +2 -2
  200. package/docs/docs/cmd/teams/team/team-clone.md +8 -8
  201. package/docs/docs/cmd/teams/team/team-get.md +34 -4
  202. package/docs/docs/cmd/teams/team/team-list.md +34 -3
  203. package/docs/docs/cmd/teams/team/team-remove.md +3 -3
  204. package/docs/docs/cmd/teams/team/team-set.md +8 -8
  205. package/docs/docs/cmd/teams/team/team-unarchive.md +3 -2
  206. package/docs/docs/cmd/teams/user/user-app-add.md +3 -3
  207. package/docs/docs/cmd/teams/user/user-app-list.md +18 -2
  208. package/docs/docs/cmd/teams/user/user-app-remove.md +4 -4
  209. package/docs/docs/cmd/teams/user/user-list.md +21 -4
  210. package/docs/docs/cmd/todo/task/task-add.md +47 -2
  211. package/npm-shrinkwrap.json +279 -194
  212. package/package.json +15 -14
@@ -10,8 +10,6 @@ m365 spo tenant settings set [options]
10
10
 
11
11
  ## Options
12
12
 
13
- --8<-- "docs/cmd/_global.md"
14
-
15
13
  `--MinCompatibilityLevel [MinCompatibilityLevel]`
16
14
  : Specifies the lower bound on the compatibility level for new sites
17
15
 
@@ -19,7 +17,7 @@ m365 spo tenant settings set [options]
19
17
  : Specifies the upper bound on the compatibility level for new sites
20
18
 
21
19
  `--ExternalServicesEnabled [ExternalServicesEnabled]`
22
- : Enables external services for a tenant. External services are defined as services that are not in the Microsoft 365 datacenters. Allowed values `true,false`
20
+ : Enables external services for a tenant. External services are defined as services that are not in the Microsoft 365 data centers. Allowed values `true,false`
23
21
 
24
22
  `--NoAccessRedirectUrl [NoAccessRedirectUrl]`
25
23
  : Specifies the URL of the redirected site for those site collections which have the locked state "NoAccess"
@@ -34,43 +32,43 @@ m365 spo tenant settings set [options]
34
32
  : Specifies URL of the form to load in the Start a Site dialog. The valid values are: "" (default) - Blank by default, this will also remove or clear any value that has been set. Full URL - Example:"https://contoso.sharepoint.com/path/to/form"
35
33
 
36
34
  `--ShowEveryoneClaim [ShowEveryoneClaim]`
37
- : Enables the administrator to hide the Everyone claim in the People Picker. When users share an item with Everyone, it is accessible to all authenticated users in the tenant\'s Azure Active Directory, including any active external users who have previously accepted invitations. Note, that some SharePoint system resources such as templates and pages are required to be shared to Everyone and this type of sharing does not expose any user data or metadata. Allowed values `true,false`
35
+ : Enables the administrator to hide the Everyone claim in the People Picker. When users share an item with Everyone, it is accessible to all authenticated users in the tenant's Azure Active Directory, including any active external users who have previously accepted invitations. Note, that some SharePoint system resources such as templates and pages are required to be shared with Everyone and this type of sharing does not expose any user data or metadata. Allowed values `true,false`
38
36
 
39
37
  `--ShowAllUsersClaim [ShowAllUsersClaim]`
40
- : Enables the administrator to hide the All Users claim groups in People Picker. When users share an item with "All Users (x)", it is accessible to all organization members in the tenant\'s Azure Active Directory who have authenticated with via this method. When users share an item with "All Users (x)" it is accessible to all organization members in the tenant that used NTLM to authentication with SharePoint. Allowed values `true,false`
38
+ : Enables the administrator to hide the All Users claim groups in People Picker. When users share an item with "All Users (x)", it is accessible to all organization members in the tenant's Azure Active Directory who have authenticated via this method. When users share an item with "All Users (x)" it is accessible to all organization members in the tenant that used NTLM to authenticate with SharePoint. Allowed values `true,false`
41
39
 
42
40
  `--ShowEveryoneExceptExternalUsersClaim [ShowEveryoneExceptExternalUsersClaim]`
43
41
  : Enables the administrator to hide the "Everyone except external users" claim in the People Picker. When users share an item with "Everyone except external users", it is accessible to all organization members in the tenant's Azure Active Directory, but not to any users who have previously accepted invitations. Allowed values `true,false`
44
42
 
45
43
  `--SearchResolveExactEmailOrUPN [SearchResolveExactEmailOrUPN]`
46
- : Removes the search capability from People Picker. Note, recently resolved names will still appear in the list until browser cache is cleared or expired. SharePoint Administrators will still be able to use starts with or partial name matching when enabled. Allowed values `true,false`
44
+ : Removes the search capability from People Picker. Note, recently resolved names will still appear in the list until the browser cache is cleared or expired. SharePoint Administrators will still be able to use starts with or partial name matching when enabled. Allowed values `true,false`
47
45
 
48
46
  `--OfficeClientADALDisabled [OfficeClientADALDisabled]`
49
47
  : When set to true this will disable the ability to use Modern Authentication that leverages ADAL across the tenant. Allowed values `true,false`
50
48
 
51
49
  `--LegacyAuthProtocolsEnabled [LegacyAuthProtocolsEnabled]`
52
- : By default this value is set to true. Setting this parameter prevents Office clients using non-modern authentication protocols from accessing SharePoint Online resources. A value of true - Enables Office clients using non-modern authentication protocols (such as, Forms-Based Authentication (FBA) or Identity Client Runtime Library (IDCRL)) to access SharePoint resources. Allowed values `true,false`
50
+ : By default, this value is set to true. Setting this parameter prevents Office clients using non-modern authentication protocols from accessing SharePoint Online resources. A value of true - Enables Office clients using non-modern authentication protocols (such as Forms-Based Authentication (FBA) or Identity Client Runtime Library (IDCRL)) to access SharePoint resources. Allowed values `true,false`
53
51
 
54
52
  `--RequireAcceptingAccountMatchInvitedAccount [RequireAcceptingAccountMatchInvitedAccount]`
55
53
  : Ensures that an external user can only accept an external sharing invitation with an account matching the invited email address. Administrators who desire increased control over external collaborators should consider enabling this feature. Allowed values `true,false`
56
54
 
57
55
  `--ProvisionSharedWithEveryoneFolder [ProvisionSharedWithEveryoneFolder]`
58
- : Creates a Shared with Everyone folder in every user\'s new OneDrive for Business document library. The valid values are: True (default) - The Shared with Everyone folder is created. False - No folder is created when the site and OneDrive for Business document library is created. Allowed values `true,false`
56
+ : Creates a Shared with Everyone folder in every user's new OneDrive for Business document library. The valid values are: True (default) - The Shared with Everyone folder is created. False - No folder is created when the site and OneDrive for Business document library are created. Allowed values `true,false`
59
57
 
60
58
  `--SignInAccelerationDomain [SignInAccelerationDomain]`
61
- : Specifies the home realm discovery value to be sent to Azure Active Directory (AAD) during the user sign-in process. When the organization uses a third-party identity provider, this prevents the user from seeing the Azure Active Directory Home Realm Discovery web page and ensures the user only sees their company's Identity Provider's portal. This value can also be used with Azure Active Directory Premium to customize the Azure Active Directory login page. Acceleration will not occur on site collections that are shared externally. This value should be configured with the login domain that is used by your company (that is, example@contoso.com). If your company has multiple third-party identity providers, configuring the sign-in acceleration value will break sign-in for your organization. The valid values are: "" (default) - Blank by default, this will also remove or clear any value that has been set. Login Domain - For example: "contoso.com". No value assigned by default
59
+ : Specifies the home realm discovery value to be sent to Azure Active Directory (AAD) during the user sign-in process. When the organization uses a third-party identity provider, this prevents the user from seeing the Azure Active Directory Home Realm Discovery web page and ensures the user only sees their company's Identity Provider's portal. This value can also be used with Azure Active Directory Premium to customize the Azure Active Directory login page. Acceleration will not occur on-site collections that are shared externally. This value should be configured with the login domain that is used by your company (that is, example@contoso.com). If your company has multiple third-party identity providers, configuring the sign-in acceleration value will break sign-in for your organization. The valid values are: "" (default) - Blank by default, this will also remove or clear any value that has been set. Login Domain - For example: "contoso.com". No value assigned by default
62
60
 
63
61
  `--EnableGuestSignInAcceleration [EnableGuestSignInAcceleration]`
64
62
  : Accelerates guest-enabled site collections as well as member-only site collections when the SignInAccelerationDomain parameter is set. Allowed values `true,false`
65
63
 
66
64
  `--UsePersistentCookiesForExplorerView [UsePersistentCookiesForExplorerView]`
67
- : Lets SharePoint issue a special cookie that will allow this feature to work even when "Keep Me Signed In" is not selected. "Open with Explorer" requires persisted cookies to operate correctly. When the user does not select "Keep Me Signed in" at the time of sign -in, "Open with Explorer" will fail. This special cookie expires after 30 minutes and cannot be cleared by closing the browser or signing out of SharePoint Online.To clear this cookie, the user must log out of their Windows session. The valid values are: False(default) - No special cookie is generated and the normal Microsoft 365 sign -in length / timing applies. True - Generates a special cookie that will allow "Open with Explorer" to function if the "Keep Me Signed In" box is not checked at sign -in. Allowed values `true,false`
65
+ : Lets SharePoint issue a special cookie that will allow this feature to work even when "Keep Me Signed In" is not selected. "Open with Explorer" requires persisted cookies to operate correctly. When the user does not select "Keep Me Signed in" at the time of sign-in, "Open with Explorer" will fail. This special cookie expires after 30 minutes and cannot be cleared by closing the browser or signing out of SharePoint Online.To clear this cookie, the user must log out of their Windows session. The valid values are: False(default) - No special cookie is generated and the normal Microsoft 365 sign-in length/timing applies. True - Generates a special cookie that will allow "Open with Explorer" to function if the "Keep Me Signed In" box is not checked at sign-in. Allowed values `true,false`
68
66
 
69
67
  `--BccExternalSharingInvitations [BccExternalSharingInvitations]`
70
- : When the feature is enabled, all external sharing invitations that are sent will blind copy the e-mail messages listed in the BccExternalSharingsInvitationList. Allowed values `true,false`
68
+ : When the feature is enabled, all external sharing invitations that are sent will blindly copy the e-mail messages listed in the BccExternalSharingsInvitationList. Allowed values `true,false`
71
69
 
72
70
  `--BccExternalSharingInvitationsList [BccExternalSharingInvitationsList]`
73
- : Specifies a list of e-mail addresses to be BCC'd when the BCC for External Sharing feature is enabled. Multiple addresses can be specified by creating a comma separated list with no spaces
71
+ : Specifies a list of e-mail addresses to be BCC'd when the BCC for External Sharing feature is enabled. Multiple addresses can be specified by creating a comma-separated list with no spaces
74
72
 
75
73
  `--UserVoiceForFeedbackEnabled [UserVoiceForFeedbackEnabled]`
76
74
  : Enables or disables the User Voice Feedback button. Allowed values `true,false`
@@ -79,16 +77,16 @@ m365 spo tenant settings set [options]
79
77
  : Enables or disables the publish CDN. Allowed values `true,false`
80
78
 
81
79
  `--PublicCdnAllowedFileTypes [PublicCdnAllowedFileTypes]`
82
- : Sets public CDN allowed file types
80
+ : Sets public CDN-allowed file types
83
81
 
84
82
  `--RequireAnonymousLinksExpireInDays [RequireAnonymousLinksExpireInDays]`
85
83
  : Specifies all anonymous links that have been created (or will be created) will expire after the set number of days. To remove the expiration requirement, set the value to zero (0)
86
84
 
87
85
  `--SharingAllowedDomainList [SharingAllowedDomainList]`
88
- : Specifies a list of email domains that is allowed for sharing with the external collaborators. Use the space character as the delimiter for entering multiple values. For example, "contoso.com fabrikam.com"
86
+ : Specifies a list of email domains that are allowed for sharing with external collaborators. Use the space character as the delimiter for entering multiple values. For example, "contoso.com fabrikam.com"
89
87
 
90
88
  `--SharingBlockedDomainList [SharingBlockedDomainList]`
91
- : Specifies a list of email domains that is blocked or prohibited for sharing with the external collaborators. Use space character as the delimiter for entering multiple values. For example, "contoso.com fabrikam.com"
89
+ : Specifies a list of email domains that are blocked or prohibited from sharing with external collaborators. Use space character as the delimiter for entering multiple values. For example, "contoso.com fabrikam.com"
92
90
 
93
91
  `--SharingDomainRestrictionMode [SharingDomainRestrictionMode]`
94
92
  : Specifies the external sharing mode for domains. Allowed values `None,AllowList,BlockList`
@@ -97,7 +95,7 @@ m365 spo tenant settings set [options]
97
95
  : Sets a default OneDrive for Business storage quota for the tenant. It will be used for new OneDrive for Business sites created. A typical use will be to reduce the amount of storage associated with OneDrive for Business to a level below what the License entitles the users. For example, it could be used to set the quota to 10 gigabytes (GB) by default
98
96
 
99
97
  `--OneDriveForGuestsEnabled [OneDriveForGuestsEnabled]`
100
- : Lets OneDrive for Business creation for administrator managed guest users. Administrator managed Guest users use credentials in the resource tenant to access the resources. Allowed values `true,false`
98
+ : Lets OneDrive for Business creation for administrator-managed guest users. Administrator-managed Guest users use credentials in the resource tenant to access the resources. Allowed values `true,false`
101
99
 
102
100
  `--IPAddressEnforcement [IPAddressEnforcement]`
103
101
  : Allows access from network locations that are defined by an administrator. The values are true and false. The default value is false which means the setting is disabled. Before the iPAddressEnforcement parameter is set, make sure you add a valid IPv4 or IPv6 address to the iPAddressAllowList parameter. Allowed values `true,false`
@@ -109,10 +107,10 @@ m365 spo tenant settings set [options]
109
107
  : Sets IP Address WAC token lifetime'
110
108
 
111
109
  `--UseFindPeopleInPeoplePicker [UseFindPeopleInPeoplePicker]`
112
- : Sets use find people in PeoplePicker to true or false. Note: When set to true, users aren\'t able to share with security groups or SharePoint groups. Allowed values `true,false`
110
+ : Sets use to find people in PeoplePicker to true or false. Note: When set to true, users aren't able to share with security groups or SharePoint groups. Allowed values `true,false`
113
111
 
114
112
  `--DefaultSharingLinkType [DefaultSharingLinkType]`
115
- : Lets administrators choose what type of link appears is selected in the “Get a link” sharing dialog box in OneDrive for Business and SharePoint Online. Allowed values `None,Direct,Internal,AnonymousAccess`
113
+ : Let's administrators choose what type of link appears is selected in the “Get a link” sharing dialog box in OneDrive for Business and SharePoint Online. Allowed values `None,Direct,Internal,AnonymousAccess`
116
114
 
117
115
  `--ODBMembersCanShare [ODBMembersCanShare]`
118
116
  : Lets administrators set policy on re-sharing behavior in OneDrive for Business. Allowed values `Unspecified,On,Off`
@@ -145,7 +143,7 @@ m365 spo tenant settings set [options]
145
143
  : Enables or disables notifications in SharePoint. Allowed values `true,false`
146
144
 
147
145
  `--OwnerAnonymousNotification [OwnerAnonymousNotification]`
148
- : Enables or disables owner anonymous notification. Allowed values `true,false`
146
+ : Enables or disables owner-anonymous notification. Allowed values `true,false`
149
147
 
150
148
  `--CommentsOnSitePagesDisabled [CommentsOnSitePagesDisabled]`
151
149
  : Enables or disables comments on site pages. Allowed values `true,false`
@@ -160,19 +158,19 @@ m365 spo tenant settings set [options]
160
158
  : Prevents the Download button from being displayed on the Virus Found warning page. Allowed values `true,false`
161
159
 
162
160
  `--DefaultLinkPermission [DefaultLinkPermission]`
163
- : Choose the dafault permission that is selected when users share. This applies to anonymous access, internal and direct links. Allowed values `None,View,Edit`
161
+ : Choose the default permission that is selected when users share. This applies to anonymous access, internal and direct links. Allowed values `None,View,Edit`
164
162
 
165
163
  `--ConditionalAccessPolicy [ConditionalAccessPolicy]`
166
164
  : Configures conditional access policy. Allowed values `AllowFullAccess,AllowLimitedAccess,BlockAccess`
167
165
 
168
166
  `--AllowDownloadingNonWebViewableFiles [AllowDownloadingNonWebViewableFiles]`
169
- : Allows downloading non web viewable files. The Allowed values `true,false`
167
+ : Allows downloading non-web viewable files. The Allowed values `true,false`
170
168
 
171
169
  `--AllowEditing [AllowEditing]`
172
170
  : Allows editing. Allowed values `true,false`
173
171
 
174
172
  `--ApplyAppEnforcedRestrictionsToAdHocRecipients [ApplyAppEnforcedRestrictionsToAdHocRecipients]`
175
- : Applies app enforced restrictions to AdHoc recipients. Allowed values `true,false`
173
+ : Applies app-enforced restrictions to AdHoc recipients. Allowed values `true,false`
176
174
 
177
175
  `--FilePickerExternalImageSearchEnabled [FilePickerExternalImageSearchEnabled]`
178
176
  : Enables file picker external image search. Allowed values `true,false`
@@ -190,7 +188,7 @@ m365 spo tenant settings set [options]
190
188
  : Blocks access on unmanaged devices. Allowed values `true,false`
191
189
 
192
190
  `--AllowLimitedAccessOnUnmanagedDevices [AllowLimitedAccessOnUnmanagedDevices]`
193
- : Allows limited access on unmanaged devices blocks. Allowed values `true,false`
191
+ : Allows limited access on unmanaged device blocks. Allowed values `true,false`
194
192
 
195
193
  `--BlockDownloadOfAllFilesForGuests [BlockDownloadOfAllFilesForGuests]`
196
194
  : Blocks download of all files for guests. Allowed values `true,false`
@@ -211,7 +209,7 @@ m365 spo tenant settings set [options]
211
209
  : Disables report problem dialog. Allowed values `true,false`
212
210
 
213
211
  `--DisplayNamesOfFileViewers [DisplayNamesOfFileViewers]`
214
- : Displayes names of file viewers. Allowed values `true,false`
212
+ : Displays names of file viewers. Allowed values `true,false`
215
213
 
216
214
  `--EnableMinimumVersionRequirement [EnableMinimumVersionRequirement]`
217
215
  : Enables minimum version requirement. Allowed values `true,false`
@@ -235,7 +233,7 @@ m365 spo tenant settings set [options]
235
233
  : Organization news site url'
236
234
 
237
235
  `--PermissiveBrowserFileHandlingOverride [PermissiveBrowserFileHandlingOverride]`
238
- : Permissive browser fileHandling override. Allowed values `true,false`
236
+ : Permissive browser file handling override. Allowed values `true,false`
239
237
 
240
238
  `--ShowNGSCDialogForSyncOnODB [ShowNGSCDialogForSyncOnODB]`
241
239
  : Show NGSC dialog for sync on OneDrive for Business. Allowed values `true,false`
@@ -264,8 +262,12 @@ m365 spo tenant settings set [options]
264
262
  `--SyncAadB2BManagementPolicy [SyncAadB2BManagementPolicy]`
265
263
  : Syncs Azure B2B Management Policies. Allowed values `true,false`. For more information, see [SharePoint and OneDrive integration with Azure AD B2B](https://aka.ms/spo-b2b-integration).
266
264
 
265
+ --8<-- "docs/cmd/_global.md"
266
+
267
+ ## Remarks
268
+
267
269
  !!! important
268
- To use this command you have to have permissions to access the tenant admin site.
270
+ To use this command you have to have permission to access the tenant admin site.
269
271
 
270
272
  ## Examples
271
273
 
@@ -42,14 +42,14 @@ m365 spo term add [options]
42
42
 
43
43
  --8<-- "docs/cmd/_global.md"
44
44
 
45
- !!! important
46
- To use this command you have to have permissions to access the tenant admin site.
47
-
48
45
  ## Remarks
49
46
 
50
47
  !!! warning "Escaping JSON in PowerShell"
51
48
  When using the `--customProperties` and/or `--localCustomProperties` options it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../../user-guide/using-cli.md#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../../user-guide/using-cli.md#passing-complex-content-into-cli-options) instead.
52
49
 
50
+ !!! important
51
+ To use this command you have to have permissions to access the tenant admin site.
52
+
53
53
  ## Examples
54
54
 
55
55
  Add taxonomy term with the specified name to the term group and term set specified by their names
@@ -30,13 +30,13 @@ m365 spo term get [options]
30
30
 
31
31
  --8<-- "docs/cmd/_global.md"
32
32
 
33
- !!! important
34
- To use this command you have to have permissions to access the tenant admin site.
35
-
36
33
  ## Remarks
37
34
 
38
35
  When retrieving term by its ID, it's sufficient to specify just the ID. When retrieving it by its name however, you need to specify the parent term group and term set using either their names or IDs.
39
36
 
37
+ !!! important
38
+ To use this command you have to have permissions to access the tenant admin site.
39
+
40
40
  ## Examples
41
41
 
42
42
  Get information about a taxonomy term using its ID
@@ -21,6 +21,8 @@ m365 spo term group add [options]
21
21
 
22
22
  --8<-- "docs/cmd/_global.md"
23
23
 
24
+ ## Remarks
25
+
24
26
  !!! important
25
27
  To use this command you have to have permissions to access the tenant admin site.
26
28
 
@@ -18,6 +18,8 @@ m365 spo term group get [options]
18
18
 
19
19
  --8<-- "docs/cmd/_global.md"
20
20
 
21
+ ## Remarks
22
+
21
23
  !!! important
22
24
  To use this command you have to have permissions to access the tenant admin site.
23
25
 
@@ -12,6 +12,8 @@ m365 spo term group list [options]
12
12
 
13
13
  --8<-- "docs/cmd/_global.md"
14
14
 
15
+ ## Remarks
16
+
15
17
  !!! important
16
18
  To use this command you have to have permissions to access the tenant admin site.
17
19
 
@@ -27,6 +27,8 @@ m365 spo term list [options]
27
27
 
28
28
  --8<-- "docs/cmd/_global.md"
29
29
 
30
+ ## Remarks
31
+
30
32
  !!! important
31
33
  To use this command you have to have permissions to access the tenant admin site.
32
34
 
@@ -145,7 +147,7 @@ When we make use of the option `includeChildTerms` the response will differ.
145
147
  "CustomProperties": {},
146
148
  "CustomSortOrder": null,
147
149
  "IsAvailableForTagging": true,
148
- "Owner": "i:0#.f|membership|admin@mathijsdev2.onmicrosoft.com",
150
+ "Owner": "i:0#.f|membership|admin@contoso.onmicrosoft.com",
149
151
  "Description": "",
150
152
  "IsDeprecated": false,
151
153
  "IsKeyword": false,
@@ -30,14 +30,14 @@ m365 spo term set add [options]
30
30
 
31
31
  --8<-- "docs/cmd/_global.md"
32
32
 
33
- !!! important
34
- To use this command you have to have permissions to access the tenant admin site.
35
-
36
33
  ## Remarks
37
34
 
38
35
  !!! warning "Escaping JSON in PowerShell"
39
36
  When using the `--customProperties` option it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../../user-guide/using-cli.md#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../../user-guide/using-cli.md#passing-complex-content-into-cli-options) instead.
40
37
 
38
+ !!! important
39
+ To use this command you have to have permissions to access the tenant admin site.
40
+
41
41
  ## Examples
42
42
 
43
43
  Add taxonomy term set to the term group specified by ID
@@ -24,6 +24,8 @@ m365 spo term set get [options]
24
24
 
25
25
  --8<-- "docs/cmd/_global.md"
26
26
 
27
+ ## Remarks
28
+
27
29
  !!! important
28
30
  To use this command you have to have permissions to access the tenant admin site.
29
31
 
@@ -18,6 +18,8 @@ m365 spo term set list [options]
18
18
 
19
19
  --8<-- "docs/cmd/_global.md"
20
20
 
21
+ ## Remarks
22
+
21
23
  !!! important
22
24
  To use this command you have to have permissions to access the tenant admin site.
23
25
 
@@ -21,13 +21,13 @@ m365 spo theme apply [options]
21
21
 
22
22
  --8<-- "docs/cmd/_global.md"
23
23
 
24
- !!! important
25
- To use this command you have to have permissions to access the tenant admin site.
26
-
27
24
  ## Remarks
28
25
 
29
26
  Following standard SharePoint themes are supported by the CLI for Microsoft 365: Blue, Orange, Red, Purple, Green, Gray, Dark Yellow and Dark Blue.
30
27
 
28
+ !!! important
29
+ To use this command you have to have permissions to access the tenant admin site.
30
+
31
31
  ## Examples
32
32
 
33
33
  Apply theme to the specified site
@@ -15,6 +15,8 @@ m365 spo theme get [options]
15
15
 
16
16
  --8<-- "docs/cmd/_global.md"
17
17
 
18
+ ## Remarks
19
+
18
20
  !!! important
19
21
  To use this command you have to have permissions to access the tenant admin site.
20
22
 
@@ -12,6 +12,8 @@ m365 spo theme list [options]
12
12
 
13
13
  --8<-- "docs/cmd/_global.md"
14
14
 
15
+ ## Remarks
16
+
15
17
  !!! important
16
18
  To use this command you have to have permissions to access the tenant admin site.
17
19
 
@@ -18,6 +18,8 @@ m365 spo theme remove [options]
18
18
 
19
19
  --8<-- "docs/cmd/_global.md"
20
20
 
21
+ ## Remarks
22
+
21
23
  !!! important
22
24
  To use this command you have to have permissions to access the tenant admin site.
23
25
 
@@ -21,9 +21,6 @@ m365 spo theme set [options]
21
21
 
22
22
  --8<-- "docs/cmd/_global.md"
23
23
 
24
- !!! important
25
- To use this command you have to have permissions to access the tenant admin site.
26
-
27
24
  ## Remarks
28
25
 
29
26
  To prevent the accidental creation of invalid themes the CLI for Microsoft 365 implements a set of checks. These checks are executed against the provided json file. A valid theme JSON file is as follows:
@@ -64,6 +61,9 @@ When executing the `m365 spo theme set` command the following checks are execute
64
61
 
65
62
  If any of these checks fails you are presented with a `The specified theme is not valid` error.
66
63
 
64
+ !!! important
65
+ To use this command you have to have permissions to access the tenant admin site.
66
+
67
67
  ## Examples
68
68
 
69
69
  Add or update a theme from a theme JSON file
@@ -0,0 +1,109 @@
1
+ # spo user ensure
2
+
3
+ Ensures that a user is available on a specific site
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo user ensure [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : Absolute URL of the site.
15
+
16
+ `--aadId [--aadId]`
17
+ : Id of the user in Azure AD. Specify either `aadId` or `userName` but not both.
18
+
19
+ `--userName [userName]`
20
+ : User's UPN (user principal name, e.g. john@contoso.com). Specify either `aadId` or `userName` but not both.
21
+
22
+ --8<-- "docs/cmd/_global.md"
23
+
24
+ ## Examples
25
+
26
+ Ensures a user by its Azure AD Id
27
+
28
+ ```sh
29
+ m365 spo user ensure --webUrl https://contoso.sharepoint.com/sites/project --aadId e254750a-eaa4-44f6-9517-b74f65cdb747
30
+ ```
31
+
32
+ Ensures a user by its user principal name
33
+
34
+ ```sh
35
+ m365 spo user ensure --webUrl https://contoso.sharepoint.com/sites/project --userName john@contoso.com
36
+ ```
37
+
38
+ ## Response
39
+
40
+ === "JSON"
41
+
42
+ ```json
43
+ {
44
+ "Id": 35,
45
+ "IsHiddenInUI": false,
46
+ "LoginName": "i:0#.f|membership|john@contoso.com",
47
+ "Title": "John Doe",
48
+ "PrincipalType": 1,
49
+ "Email": "john@contoso.com",
50
+ "Expiration": "",
51
+ "IsEmailAuthenticationGuestUser": false,
52
+ "IsShareByEmailGuestUser": false,
53
+ "IsSiteAdmin": false,
54
+ "UserId": {
55
+ "NameId": "1003200274f51d2d",
56
+ "NameIdIssuer": "urn:federation:microsoftonline"
57
+ },
58
+ "UserPrincipalName": "john@contoso.com"
59
+ }
60
+ ```
61
+
62
+ === "Text"
63
+
64
+ ```text
65
+ Email : john@contoso.com
66
+ Expiration :
67
+ Id : 35
68
+ IsEmailAuthenticationGuestUser: false
69
+ IsHiddenInUI : false
70
+ IsShareByEmailGuestUser : false
71
+ IsSiteAdmin : false
72
+ LoginName : i:0#.f|membership|john@contoso.com
73
+ PrincipalType : 1
74
+ Title : John Doe
75
+ UserId : {"NameId":"1003200274f51d2d","NameIdIssuer":"urn:federation:microsoftonline"}
76
+ UserPrincipalName : john@contoso.com
77
+ ```
78
+
79
+ === "CSV"
80
+
81
+ ```csv
82
+ Id,IsHiddenInUI,LoginName,Title,PrincipalType,Email,Expiration,IsEmailAuthenticationGuestUser,IsShareByEmailGuestUser,IsSiteAdmin,UserId,UserPrincipalName
83
+ 35,,i:0#.f|membership|john@contoso.com,John Doe,1,john@contoso.com,,,,,"{""NameId"":""100320009d80e5de"",""NameIdIssuer"":""urn:federation:microsoftonline""}",john@contoso.com
84
+ ```
85
+
86
+ === "Markdown"
87
+
88
+ ```md
89
+ # spo user ensure --webUrl "https://mathijsdev2.sharepoint.com" --userName "john@contoso.com"
90
+
91
+ Date: 18/02/2023
92
+
93
+ ## John Doe (35)
94
+
95
+ Property | Value
96
+ ---------|-------
97
+ Id | 35
98
+ IsHiddenInUI | false
99
+ LoginName | i:0#.f\|membership\|john@contoso.com
100
+ Title | John Doe
101
+ PrincipalType | 1
102
+ Email | john@contoso.com
103
+ Expiration |
104
+ IsEmailAuthenticationGuestUser | false
105
+ IsShareByEmailGuestUser | false
106
+ IsSiteAdmin | false
107
+ UserId | {"NameId":"100320009d80e5de","NameIdIssuer":"urn:federation:microsoftonline"}
108
+ UserPrincipalName | john@contoso.com
109
+ ```
@@ -71,7 +71,7 @@ m365 teams channel get --teamName "Team Name" --primary
71
71
  createdDateTime : 2022-10-26T15:43:31.954Z
72
72
  description : This team is about the Contoso
73
73
  displayName : Channel Name
74
- email : TeamName@ordidev.onmicrosoft.com
74
+ email : TeamName@contoso.onmicrosoft.com
75
75
  id : 19:493665404ebd4a18adb8a980a31b4986@thread.tacv2
76
76
  isFavoriteByDefault: null
77
77
  membershipType : standard
@@ -23,10 +23,10 @@ m365 teams channel member add [options]
23
23
  : The display name of the Microsoft Teams team channel. Specify either `channelId` or `channelName`, but not both.
24
24
 
25
25
  `--userId [userId]`
26
- : The user's ID or principal name. You can also pass a comma separated list of userIds.
26
+ : The user's ID or principal name. You can also pass a comma-separated list of userIds.
27
27
 
28
28
  `--userDisplayName [userDisplayName]`
29
- : The display name of a user. You can also pass a comma separated list of display names.
29
+ : The display name of a user. You can also pass a comma-separated list of display names.
30
30
 
31
31
  `--owner`
32
32
  : Assign the user the owner role. Defaults to member permissions.
@@ -11,13 +11,13 @@ m365 teams message get [options]
11
11
  ## Options
12
12
 
13
13
  `-t, --teamId <teamId>`
14
- : The ID of the team where the channel is located
14
+ : The ID of the team where the channel is located.
15
15
 
16
16
  `-c, --channelId <channelId>`
17
- : The ID of the channel that contains the message
17
+ : The ID of the channel that contains the message.
18
18
 
19
19
  `-i, --id <id>`
20
- : The ID of the message to retrieve
20
+ : The ID of the message to retrieve.
21
21
 
22
22
  --8<-- "docs/cmd/_global.md"
23
23
 
@@ -27,7 +27,7 @@ You can only retrieve a message from a Microsoft Teams team if you are a member
27
27
 
28
28
  ## Examples
29
29
 
30
- Retrieve the specified message from a channel of the Microsoft Teams team
30
+ Retrieve the specified message from a channel of the Microsoft Teams team.
31
31
 
32
32
  ```sh
33
33
  m365 teams message get --teamId 5f5d7b71-1161-44d8-bcc1-3da710eb4171 --channelId 19:88f7e66a8dfe42be92db19505ae912a8@thread.skype --id 1540747442203
@@ -112,3 +112,38 @@ m365 teams message get --teamId 5f5d7b71-1161-44d8-bcc1-3da710eb4171 --channelId
112
112
  id,replyToId,etag,messageType,createdDateTime,lastModifiedDateTime,lastEditedDateTime,deletedDateTime,subject,summary,chatId,importance,locale,webUrl,policyViolation,eventDetail,from,body,channelIdentity,attachments,mentions,reactions
113
113
  1540747442203,,1666799582385,message,2022-10-26T15:52:00.731Z,2022-10-26T15:53:02.385Z,2022-10-26T15:53:02.288Z,,Second message Title,,,normal,en-us,https://teams.microsoft.com/l/message/19%388f7e66a8dfe42be92db19505ae912a8%40thread.tacv2/1540747442203?groupId=5f5d7b71-1161-44d8-bcc1-3da710eb4171&tenantId=92e59666-257b-49c3-b1fa-1bae8107f6ba&createdTime=1540747442203&parentMessageId=1540747442203,,,"{""application"":null,""device"":null,""user"":{""id"":""78ccf530-bbf0-47e4-aae6-da5f8c6fb142"",""displayName"":""John Doe"",""userIdentityType"":""aadUser"",""tenantId"":""92e59666-257b-49c3-b1fa-1bae8107f6ba""}}","{""contentType"":""text"",""content"":""second message!""}","{""teamId"":""5f5d7b71-1161-44d8-bcc1-3da710eb4171"",""channelId"":""19:e2916df2b11046beba42d22da898383f@thread.tacv2""}",[],[],[]
114
114
  ```
115
+
116
+ === "Markdown"
117
+
118
+ ```md
119
+ # teams message get --teamId "5f5d7b71-1161-44d8-bcc1-3da710eb4171" --channelId "19:e2916df2b11046beba42d22da898383f@thread.tacv2" --id "1540747442203"
120
+
121
+ Date: 1/3/2023
122
+
123
+ ## undefined (1540747442203)
124
+
125
+ Property | Value
126
+ ---------|-------
127
+ id | 1540747442203
128
+ replyToId | null
129
+ etag | 1666799582385
130
+ messageType | message
131
+ createdDateTime | 2022-10-26T15:52:00.731Z
132
+ lastModifiedDateTime | 2022-10-26T15:53:02.385Z
133
+ lastEditedDateTime | 2022-10-26T15:53:02.288Z
134
+ deletedDateTime | null
135
+ subject | Second message Title
136
+ summary | null
137
+ chatId | null
138
+ importance | normal
139
+ locale | en-us
140
+ webUrl | https://teams.microsoft.com/l/message/19%388f7e66a8dfe42be92db19505ae912a8%40thread.tacv2/1540747442203?groupId=5f5d7b71-1161-44d8-bcc1-3da710eb4171&tenantId=92e59666-257b-49c3-b1fa-1bae8107f6ba&createdTime=1540747442203&parentMessageId=1540747442203
141
+ policyViolation | null
142
+ eventDetail | null
143
+ from | {"application":null,"device":null,"user":{"id":"78ccf530-bbf0-47e4-aae6-da5f8c6fb142","displayName":"John Doe","userIdentityType":"aadUser","tenantId":"92e59666-257b-49c3-b1fa-1bae8107f6ba"}}
144
+ body | {"contentType":"text","content":"second message!"}
145
+ channelIdentity | {"teamId":"5f5d7b71-1161-44d8-bcc1-3da710eb4171","channelId":"19:e2916df2b11046beba42d22da898383f@thread.tacv2"}
146
+ attachments | []
147
+ mentions | []
148
+ reactions | []
149
+ ```