@pnp/cli-microsoft365 10.0.0-beta.58f28f9 → 10.0.0-beta.67e608f

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 (208) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/m365/commands/login.js +122 -69
  4. package/dist/m365/commands/setup.js +1 -1
  5. package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +0 -5
  6. package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +0 -5
  7. package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +0 -5
  8. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-add.js +0 -5
  9. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +0 -5
  10. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +0 -5
  11. package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +0 -5
  12. package/dist/m365/entra/commands/app/app-add.js +0 -5
  13. package/dist/m365/entra/commands/app/app-get.js +0 -5
  14. package/dist/m365/entra/commands/app/app-list.js +0 -5
  15. package/dist/m365/entra/commands/app/app-permission-add.js +0 -5
  16. package/dist/m365/entra/commands/app/app-remove.js +0 -5
  17. package/dist/m365/entra/commands/app/app-role-add.js +0 -5
  18. package/dist/m365/entra/commands/app/app-role-list.js +0 -5
  19. package/dist/m365/entra/commands/app/app-role-remove.js +0 -5
  20. package/dist/m365/entra/commands/app/app-set.js +0 -5
  21. package/dist/m365/entra/commands/approleassignment/approleassignment-add.js +0 -5
  22. package/dist/m365/entra/commands/approleassignment/approleassignment-list.js +0 -5
  23. package/dist/m365/entra/commands/approleassignment/approleassignment-remove.js +0 -5
  24. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +0 -5
  25. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +0 -5
  26. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +0 -5
  27. package/dist/m365/entra/commands/group/group-add.js +0 -4
  28. package/dist/m365/entra/commands/group/group-get.js +0 -5
  29. package/dist/m365/entra/commands/group/group-list.js +0 -5
  30. package/dist/m365/entra/commands/group/{group-user-add.js → group-member-add.js} +18 -18
  31. package/dist/m365/entra/commands/group/{group-user-list.js → group-member-list.js} +16 -21
  32. package/dist/m365/entra/commands/group/{group-user-set.js → group-member-set.js} +19 -19
  33. package/dist/m365/entra/commands/group/group-remove.js +0 -5
  34. package/dist/m365/entra/commands/groupsetting/groupsetting-add.js +0 -5
  35. package/dist/m365/entra/commands/groupsetting/groupsetting-get.js +0 -5
  36. package/dist/m365/entra/commands/groupsetting/groupsetting-list.js +0 -5
  37. package/dist/m365/entra/commands/groupsetting/groupsetting-remove.js +0 -5
  38. package/dist/m365/entra/commands/groupsetting/groupsetting-set.js +0 -5
  39. package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-get.js +0 -5
  40. package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-list.js +0 -5
  41. package/dist/m365/entra/commands/license/license-list.js +0 -5
  42. package/dist/m365/entra/commands/m365group/m365group-add.js +0 -5
  43. package/dist/m365/entra/commands/m365group/m365group-conversation-list.js +0 -5
  44. package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +0 -5
  45. package/dist/m365/entra/commands/m365group/m365group-get.js +0 -5
  46. package/dist/m365/entra/commands/m365group/m365group-list.js +0 -5
  47. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-clear.js +0 -5
  48. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +0 -5
  49. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-remove.js +0 -5
  50. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-restore.js +0 -5
  51. package/dist/m365/entra/commands/m365group/m365group-remove.js +0 -5
  52. package/dist/m365/entra/commands/m365group/m365group-renew.js +0 -5
  53. package/dist/m365/entra/commands/m365group/m365group-report-activitycounts.js +0 -4
  54. package/dist/m365/entra/commands/m365group/m365group-report-activitydetail.js +0 -4
  55. package/dist/m365/entra/commands/m365group/m365group-report-activityfilecounts.js +0 -4
  56. package/dist/m365/entra/commands/m365group/m365group-report-activitygroupcounts.js +0 -4
  57. package/dist/m365/entra/commands/m365group/m365group-report-activitystorage.js +0 -4
  58. package/dist/m365/entra/commands/m365group/m365group-set.js +138 -73
  59. package/dist/m365/entra/commands/m365group/m365group-teamify.js +0 -5
  60. package/dist/m365/entra/commands/m365group/m365group-user-add.js +0 -6
  61. package/dist/m365/entra/commands/m365group/m365group-user-list.js +0 -5
  62. package/dist/m365/entra/commands/m365group/m365group-user-remove.js +93 -62
  63. package/dist/m365/entra/commands/m365group/m365group-user-set.js +3 -15
  64. package/dist/m365/entra/commands/oauth2grant/oauth2grant-add.js +0 -5
  65. package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +0 -5
  66. package/dist/m365/entra/commands/oauth2grant/oauth2grant-remove.js +0 -5
  67. package/dist/m365/entra/commands/oauth2grant/oauth2grant-set.js +0 -5
  68. package/dist/m365/entra/commands/policy/policy-list.js +0 -5
  69. package/dist/m365/entra/commands/siteclassification/siteclassification-disable.js +0 -5
  70. package/dist/m365/entra/commands/siteclassification/siteclassification-enable.js +0 -5
  71. package/dist/m365/entra/commands/siteclassification/siteclassification-get.js +0 -5
  72. package/dist/m365/entra/commands/siteclassification/siteclassification-set.js +0 -5
  73. package/dist/m365/entra/commands/user/user-add.js +0 -5
  74. package/dist/m365/entra/commands/user/user-get.js +0 -5
  75. package/dist/m365/entra/commands/user/user-guest-add.js +0 -5
  76. package/dist/m365/entra/commands/user/user-hibp.js +0 -5
  77. package/dist/m365/entra/commands/user/user-license-add.js +0 -5
  78. package/dist/m365/entra/commands/user/user-license-list.js +0 -5
  79. package/dist/m365/entra/commands/user/user-license-remove.js +0 -5
  80. package/dist/m365/entra/commands/user/user-list.js +0 -5
  81. package/dist/m365/entra/commands/user/user-password-validate.js +0 -5
  82. package/dist/m365/entra/commands/user/user-recyclebinitem-clear.js +0 -5
  83. package/dist/m365/entra/commands/user/user-recyclebinitem-list.js +0 -5
  84. package/dist/m365/entra/commands/user/user-recyclebinitem-remove.js +0 -5
  85. package/dist/m365/entra/commands/user/user-recyclebinitem-restore.js +0 -5
  86. package/dist/m365/entra/commands/user/user-registrationdetails-list.js +0 -4
  87. package/dist/m365/entra/commands/user/user-remove.js +0 -5
  88. package/dist/m365/entra/commands/user/user-set.js +0 -5
  89. package/dist/m365/entra/commands/user/user-signin-list.js +0 -5
  90. package/dist/m365/entra/commands.js +3 -3
  91. package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.20.0-rc.1.js → doctor-1.20.0.js} +4 -2
  92. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002021_DEVDEP_rushstack_eslint_config.js +10 -0
  93. package/dist/m365/spfx/commands/project/project-doctor.js +1 -1
  94. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.20.0-rc.1.js → upgrade-1.20.0.js} +28 -26
  95. package/dist/m365/spfx/commands/project/project-upgrade.js +13 -15
  96. package/dist/m365/spfx/commands/spfx-doctor.js +1 -1
  97. package/dist/m365/spo/commands/file/file-copy.js +6 -6
  98. package/dist/m365/spo/commands/file/file-move.js +6 -6
  99. package/dist/m365/spo/commands/folder/folder-move.js +43 -35
  100. package/dist/m365/spo/commands/group/group-member-add.js +3 -23
  101. package/dist/m365/spo/commands/group/group-member-remove.js +1 -18
  102. package/dist/m365/spo/commands/page/page-remove.js +37 -16
  103. package/dist/m365/spo/commands/site/site-sharingpermission-set.js +68 -0
  104. package/dist/m365/spo/commands/user/user-ensure.js +1 -11
  105. package/dist/m365/spo/commands.js +1 -0
  106. package/dist/utils/spo.js +62 -21
  107. package/dist/utils/timersUtil.js +2 -1
  108. package/dist/utils/urlUtil.js +8 -0
  109. package/dist/utils/zod.js +11 -2
  110. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-add.mdx +0 -6
  111. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-get.mdx +0 -6
  112. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-list.mdx +0 -6
  113. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-add.mdx +0 -6
  114. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-get.mdx +0 -6
  115. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-list.mdx +0 -6
  116. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-remove.mdx +0 -6
  117. package/docs/docs/cmd/entra/app/app-add.mdx +0 -1
  118. package/docs/docs/cmd/entra/app/app-get.mdx +0 -1
  119. package/docs/docs/cmd/entra/app/app-list.mdx +0 -1
  120. package/docs/docs/cmd/entra/app/app-permission-add.mdx +0 -1
  121. package/docs/docs/cmd/entra/app/app-permission-list.mdx +0 -6
  122. package/docs/docs/cmd/entra/app/app-remove.mdx +0 -1
  123. package/docs/docs/cmd/entra/app/app-role-add.mdx +0 -1
  124. package/docs/docs/cmd/entra/app/app-role-list.mdx +0 -1
  125. package/docs/docs/cmd/entra/app/app-role-remove.mdx +0 -1
  126. package/docs/docs/cmd/entra/app/app-set.mdx +0 -1
  127. package/docs/docs/cmd/entra/approleassignment/approleassignment-add.mdx +0 -6
  128. package/docs/docs/cmd/entra/approleassignment/approleassignment-list.mdx +0 -6
  129. package/docs/docs/cmd/entra/approleassignment/approleassignment-remove.mdx +0 -6
  130. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +0 -1
  131. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +0 -1
  132. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +0 -1
  133. package/docs/docs/cmd/entra/group/group-add.mdx +0 -6
  134. package/docs/docs/cmd/entra/group/group-get.mdx +0 -6
  135. package/docs/docs/cmd/entra/group/group-list.mdx +0 -6
  136. package/docs/docs/cmd/entra/group/group-member-add.mdx +62 -0
  137. package/docs/docs/cmd/entra/group/{group-user-list.mdx → group-member-list.mdx} +14 -20
  138. package/docs/docs/cmd/entra/group/group-member-set.mdx +62 -0
  139. package/docs/docs/cmd/entra/group/group-remove.mdx +0 -6
  140. package/docs/docs/cmd/entra/groupsetting/groupsetting-add.mdx +0 -6
  141. package/docs/docs/cmd/entra/groupsetting/groupsetting-get.mdx +0 -6
  142. package/docs/docs/cmd/entra/groupsetting/groupsetting-list.mdx +0 -6
  143. package/docs/docs/cmd/entra/groupsetting/groupsetting-remove.mdx +0 -6
  144. package/docs/docs/cmd/entra/groupsetting/groupsetting-set.mdx +0 -6
  145. package/docs/docs/cmd/entra/groupsettingtemplate/groupsettingtemplate-get.mdx +0 -6
  146. package/docs/docs/cmd/entra/groupsettingtemplate/groupsettingtemplate-list.mdx +0 -6
  147. package/docs/docs/cmd/entra/license/license-list.mdx +0 -6
  148. package/docs/docs/cmd/entra/m365group/m365group-add.mdx +0 -6
  149. package/docs/docs/cmd/entra/m365group/m365group-conversation-list.mdx +0 -6
  150. package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +0 -6
  151. package/docs/docs/cmd/entra/m365group/m365group-get.mdx +0 -6
  152. package/docs/docs/cmd/entra/m365group/m365group-list.mdx +0 -6
  153. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-clear.mdx +0 -6
  154. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-list.mdx +0 -6
  155. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-remove.mdx +0 -6
  156. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-restore.mdx +0 -6
  157. package/docs/docs/cmd/entra/m365group/m365group-remove.mdx +0 -6
  158. package/docs/docs/cmd/entra/m365group/m365group-renew.mdx +0 -6
  159. package/docs/docs/cmd/entra/m365group/m365group-report-activitycounts.mdx +0 -6
  160. package/docs/docs/cmd/entra/m365group/m365group-report-activitydetail.mdx +0 -6
  161. package/docs/docs/cmd/entra/m365group/m365group-report-activityfilecounts.mdx +0 -6
  162. package/docs/docs/cmd/entra/m365group/m365group-report-activitygroupcounts.mdx +2 -8
  163. package/docs/docs/cmd/entra/m365group/m365group-report-activitystorage.mdx +2 -8
  164. package/docs/docs/cmd/entra/m365group/m365group-set.mdx +34 -22
  165. package/docs/docs/cmd/entra/m365group/m365group-teamify.mdx +5 -11
  166. package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +5 -11
  167. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +0 -12
  168. package/docs/docs/cmd/entra/m365group/m365group-user-remove.mdx +29 -21
  169. package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +4 -17
  170. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +3 -9
  171. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +1 -7
  172. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-remove.mdx +4 -10
  173. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-set.mdx +3 -9
  174. package/docs/docs/cmd/entra/policy/policy-list.mdx +3 -9
  175. package/docs/docs/cmd/entra/siteclassification/siteclassification-disable.mdx +3 -9
  176. package/docs/docs/cmd/entra/siteclassification/siteclassification-enable.mdx +7 -13
  177. package/docs/docs/cmd/entra/siteclassification/siteclassification-get.mdx +1 -7
  178. package/docs/docs/cmd/entra/siteclassification/siteclassification-set.mdx +8 -14
  179. package/docs/docs/cmd/entra/user/user-add.mdx +4 -10
  180. package/docs/docs/cmd/entra/user/user-get.mdx +7 -13
  181. package/docs/docs/cmd/entra/user/user-guest-add.mdx +3 -9
  182. package/docs/docs/cmd/entra/user/user-hibp.mdx +2 -8
  183. package/docs/docs/cmd/entra/user/user-license-add.mdx +0 -6
  184. package/docs/docs/cmd/entra/user/user-license-list.mdx +0 -6
  185. package/docs/docs/cmd/entra/user/user-license-remove.mdx +2 -8
  186. package/docs/docs/cmd/entra/user/user-list.mdx +1 -7
  187. package/docs/docs/cmd/entra/user/user-password-validate.mdx +1 -7
  188. package/docs/docs/cmd/entra/user/user-recyclebinitem-clear.mdx +2 -8
  189. package/docs/docs/cmd/entra/user/user-recyclebinitem-list.mdx +0 -6
  190. package/docs/docs/cmd/entra/user/user-recyclebinitem-remove.mdx +2 -8
  191. package/docs/docs/cmd/entra/user/user-recyclebinitem-restore.mdx +0 -6
  192. package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +7 -13
  193. package/docs/docs/cmd/entra/user/user-remove.mdx +2 -8
  194. package/docs/docs/cmd/entra/user/user-set.mdx +0 -6
  195. package/docs/docs/cmd/entra/user/user-signin-list.mdx +9 -15
  196. package/docs/docs/cmd/login.mdx +9 -0
  197. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  198. package/docs/docs/cmd/spo/file/file-move.mdx +1 -3
  199. package/docs/docs/cmd/spo/folder/folder-move.mdx +84 -13
  200. package/docs/docs/cmd/spo/group/group-member-add.mdx +8 -14
  201. package/docs/docs/cmd/spo/group/group-member-remove.mdx +5 -11
  202. package/docs/docs/cmd/spo/page/page-remove.mdx +30 -12
  203. package/docs/docs/cmd/spo/site/site-sharingpermission-set.mdx +58 -0
  204. package/docs/docs/cmd/spo/user/user-ensure.mdx +2 -5
  205. package/package.json +1 -1
  206. package/dist/m365/entra/aadCommands.js +0 -89
  207. package/docs/docs/cmd/entra/group/group-user-add.mdx +0 -62
  208. package/docs/docs/cmd/entra/group/group-user-set.mdx +0 -62
@@ -1,4 +1,6 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo folder move
4
6
 
@@ -31,19 +33,14 @@ m365 spo folder move [options]
31
33
  `--nameConflictBehavior [nameConflictBehavior]`
32
34
  : Behavior when a file or folder with the same name is already present at the destination. Allowed values: `fail`, `rename`. Defaults to `fail`.
33
35
 
34
- `--retainEditorAndModified`
35
- : Use this option to retain the editor and modified date. When not specified, these values are reset.
36
-
37
- `--bypassSharedLock`
38
- : This indicates whether a folder with a share lock can still be moved. Use this option to move a folder that is locked.
36
+ `--skipWait`
37
+ : Don't wait for the move operation to complete.
39
38
  ```
40
39
 
41
40
  <Global />
42
41
 
43
42
  ## Remarks
44
43
 
45
- All folder versions are retained while moving a folder.
46
-
47
44
  When you specify a value for `nameConflictBehavior`, consider the following:
48
45
 
49
46
  - `fail` will throw an error when the destination folder already exists.
@@ -69,16 +66,90 @@ Move a folder to another location and use a new name on conflict.
69
66
  m365 spo folder move --webUrl https://contoso.sharepoint.com/sites/project-x --sourceUrl "/sites/project-x/Shared Documents/Reports" --targetUrl "/sites/project-y/Shared Documents/Project files" --nameConflictBehavior rename
70
67
  ```
71
68
 
72
- Move a folder referenced by its ID to another document library and retain editor and modified date.
69
+ Move a folder referenced by its ID to another document library and don't wait for the move job to finish.
73
70
 
74
71
  ```sh
75
- m365 spo folder move --webUrl https://contoso.sharepoint.com/sites/project-x --sourceId b8cc341b-9c11-4f2d-aa2b-0ce9c18bcba2 --targetUrl "/sites/project-x/Project files" --retainEditorAndModified
72
+ m365 spo folder move --webUrl https://contoso.sharepoint.com/sites/project-x --sourceId b8cc341b-9c11-4f2d-aa2b-0ce9c18bcba2 --targetUrl "/sites/project-x/Project files" --skipWait
76
73
  ```
77
74
 
78
75
  ## Response
79
76
 
80
- The command won't return a response on success.
77
+ ### Standard Response
78
+
79
+ <Tabs>
80
+ <TabItem value="JSON">
81
+
82
+ ```json
83
+ {
84
+ "Exists": true,
85
+ "ExistsAllowThrowForPolicyFailures": true,
86
+ "ExistsWithException": true,
87
+ "IsWOPIEnabled": false,
88
+ "ItemCount": 6,
89
+ "Name": "Company",
90
+ "ProgID": null,
91
+ "ServerRelativeUrl": "/sites/Sales/Icons/Company",
92
+ "TimeCreated": "2024-09-26T22:08:53Z",
93
+ "TimeLastModified": "2024-09-26T22:09:31Z",
94
+ "UniqueId": "d3a37396-ca16-467b-b968-48f5fc41f2b6",
95
+ "WelcomePage": ""
96
+ }
97
+ ```
98
+
99
+ </TabItem>
100
+ <TabItem value="Text">
101
+
102
+ ```text
103
+ Exists : true
104
+ ExistsAllowThrowForPolicyFailures: true
105
+ ExistsWithException : true
106
+ IsWOPIEnabled : false
107
+ ItemCount : 6
108
+ Name : Company
109
+ ProgID : null
110
+ ServerRelativeUrl : /sites/Sales/Icons/Company
111
+ TimeCreated : 2024-09-26T22:08:53Z
112
+ TimeLastModified : 2024-09-26T22:09:31Z
113
+ UniqueId : d3a37396-ca16-467b-b968-48f5fc41f2b6
114
+ WelcomePage :
115
+ ```
116
+
117
+ </TabItem>
118
+ <TabItem value="CSV">
119
+
120
+ ```csv
121
+ Exists,ExistsAllowThrowForPolicyFailures,ExistsWithException,IsWOPIEnabled,ItemCount,Name,ProgID,ServerRelativeUrl,TimeCreated,TimeLastModified,UniqueId,WelcomePage
122
+ 1,1,1,0,6,Company,,/sites/Sales/Icons/Company,2024-09-26T22:08:53Z,2024-09-26T22:09:31Z,d3a37396-ca16-467b-b968-48f5fc41f2b6,
123
+ ```
124
+
125
+ </TabItem>
126
+ <TabItem value="Markdown">
127
+
128
+ ```md
129
+ # spo folder move --webUrl "https://contoso.sharepoint.com/sites/Marketing" --sourceUrl "/Logos/Contoso" --targetUrl "/sites/Sales/Logos"
130
+
131
+ Date: 27/09/2024
132
+
133
+ ## Company (d3a37396-ca16-467b-b968-48f5fc41f2b6)
134
+
135
+ Property | Value
136
+ ---------|-------
137
+ Exists | true
138
+ ExistsAllowThrowForPolicyFailures | true
139
+ ExistsWithException | true
140
+ IsWOPIEnabled | false
141
+ ItemCount | 6
142
+ Name | Company
143
+ ServerRelativeUrl | /sites/Sales/Icons/Company
144
+ TimeCreated | 2024-09-26T22:08:53Z
145
+ TimeLastModified | 2024-09-26T22:09:31Z
146
+ UniqueId | d3a37396-ca16-467b-b968-48f5fc41f2b6
147
+ WelcomePage |
148
+ ```
149
+
150
+ </TabItem>
151
+ </Tabs>
152
+
153
+ ### `skipWait` response
81
154
 
82
- ## More information
83
-
84
- - Move items from a SharePoint document library: [https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc](https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc)
155
+ The command won't return a response on success.
@@ -25,32 +25,26 @@ m365 spo group member add [options]
25
25
  : Name of the SharePoint Group to which the user needs to be added. Specify either `groupId` or `groupName`.
26
26
 
27
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`.
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`, `entraGroupIds` or `entraGroupNames`.
29
29
 
30
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`.
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`, `entraGroupIds` or `entraGroupNames`.
32
32
 
33
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`.
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`, `entraGroupIds` or `entraGroupNames`.
35
35
 
36
36
  `--entraGroupIds [entraGroupIds]`
37
- : The object Id of the Entra 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`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
38
-
39
- `--aadGroupIds [aadGroupIds]`
40
- : (deprecated. Use `entraGroupIds` instead) The object ID of the Microsoft Entra 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`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
37
+ : The object Id of the Entra 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`, `entraGroupIds` or `entraGroupNames`.
41
38
 
42
39
  `--entraGroupNames [entraGroupNames]`
43
- : The name of the Entra 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`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
44
-
45
- `--aadGroupNames [aadGroupNames]`
46
- : (deprecated. Use `entraGroupNames` instead) The name of the Microsoft Entra 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`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
40
+ : The name of the Entra group to add as a member. If multiple groups need to be added, they have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `entraGroupIds` or `entraGroupNames`.
47
41
  ```
48
42
 
49
43
  <Global />
50
44
 
51
45
  ## Remarks
52
46
 
53
- For the `userIds`, `userNames`, `emails`, `aadGroupIds`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames` 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`, `entraGroupIds`, or `entraGroupNames` 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.
54
48
 
55
49
  ## Examples
56
50
 
@@ -63,7 +57,7 @@ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --
63
57
  Add multiple users with the userNames parameter to a SharePoint group with the groupId parameter.
64
58
 
65
59
  ```sh
66
- m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userNames "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"
67
61
  ```
68
62
 
69
63
  Add a user with the emails parameter to a SharePoint group with the groupName parameter.
@@ -75,7 +69,7 @@ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --
75
69
  Add multiple users with the emails parameter to a SharePoint group with the groupName parameter.
76
70
 
77
71
  ```sh
78
- 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"
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"
79
73
  ```
80
74
 
81
75
  Add a user with the userIds parameter to a SharePoint group with the groupId parameter.
@@ -23,25 +23,19 @@ m365 spo group member remove [options]
23
23
  : Name of the SharePoint group from which user has to be removed. Specify either `groupName` or `groupId`, but not both.
24
24
 
25
25
  `--userName [userName]`
26
- : The UPN (user principal name, eg. megan.bowen@contoso.com) of the user that needs to be removed. Specify either `userName`, `email`, `userId`, `aadGroupId` or `aadGroupName`.
26
+ : The UPN (user principal name, eg. megan.bowen@contoso.com) of the user that needs to be removed. Specify either `userName`, `email`, `userId`, `entraGroupId` or `entraGroupName`.
27
27
 
28
28
  `--email [email]`
29
- : The email of the user to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId` or `aadGroupName`.
29
+ : The email of the user to remove as a member. Specify either `userName`, `email`, `userId`, `entraGroupId` or `entraGroupName`.
30
30
 
31
31
  `--userId [userId]`
32
- : The user Id (Id of the site user, eg. 14) of the user to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId` or `aadGroupName`.
32
+ : The user Id (Id of the site user, eg. 14) of the user to remove as a member. Specify either `userName`, `email`, `userId`, `entraGroupId` or `entraGroupName`.
33
33
 
34
34
  `--entraGroupId [entraGroupId]`
35
- : The object Id of the Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
36
-
37
- `--aadGroupId [aadGroupId]`
38
- : (deprecated. Use `entraGroupId` instead) The object ID of the Microsoft Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
35
+ : The object Id of the Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `entraGroupId`, or `entraGroupName`.
39
36
 
40
37
  `--entraGroupName [entraGroupName]`
41
- : The name of the Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
42
-
43
- `--aadGroupName [aadGroupName]`
44
- : (deprecated. Use `entraGroupName` instead) The name of the Microsoft Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
38
+ : The name of the Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `entraGroupId`, or `entraGroupName`.
45
39
  ```
46
40
 
47
41
  <Global />
@@ -13,36 +13,54 @@ m365 spo page remove [options]
13
13
  ## Options
14
14
 
15
15
  ```md definition-list
16
+ `-u, --webUrl <webUrl>`
17
+ : URL of the site where the page is located.
18
+
16
19
  `-n, --name <name>`
17
- : Name of the page to remove.
20
+ : Name of the page.
18
21
 
19
- `-u, --webUrl <webUrl>`
20
- : URL of the site from which the page should be removed.
22
+ `--recycle`
23
+ : Send the page to the recycle bin instead of permanently deleting it.
24
+
25
+ `--bypassSharedLock`
26
+ : Remove the page even if it is locked for shared use.
21
27
 
22
28
  `-f, --force`
23
- : Do not prompt for confirmation before removing the page.
29
+ : Do not prompt for confirmation.
24
30
  ```
25
31
 
26
32
  <Global />
27
33
 
28
- ## Remarks
29
-
30
- If you try to remove a page with that does not exist, you will get a `The file does not exist` error.
31
-
32
- If you set the `-f, --force` flag, you will not be prompted for confirmation before the page is actually removed.
33
-
34
34
  ## Examples
35
35
 
36
36
  Remove a modern page
37
37
 
38
38
  ```sh
39
- m365 spo page remove --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team
39
+ m365 spo page remove --name HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing
40
40
  ```
41
41
 
42
42
  Remove a modern page without a confirmation prompt
43
43
 
44
44
  ```sh
45
- m365 spo page remove --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --force
45
+ m365 spo page remove --name HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing --force
46
+ ```
47
+
48
+ Send a page to the recycle bin
49
+
50
+ ```sh
51
+ m365 spo page remove --name HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing --recycle
52
+ ```
53
+
54
+ Remove a page that is locked
55
+
56
+ ```sh
57
+ m365 spo page remove --name HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing --bypassSharedLock
58
+ ```
59
+
60
+ Remove a page that is located in a subfolder
61
+
62
+ ```sh
63
+ m365 spo page remove --name /Departments/People/HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing
46
64
  ```
47
65
 
48
66
  ## Response
@@ -0,0 +1,58 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # spo site sharingpermission set
4
+
5
+ Controls how a site and its components can be shared
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 spo site sharingpermission set [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `-u, --url <url>`
17
+ : URL of the site.
18
+
19
+ `--capability <capability>`
20
+ : Define how the site is shared. Possible values: `full`, `limited`, `ownersOnly`.
21
+ ```
22
+
23
+ <Global />
24
+
25
+ ## Remarks
26
+
27
+ When specifying `capability`, consider the following:
28
+ - `full`: Site owners and members can share files, folders, and the site. People with Edit permissions can share files and folders.
29
+ - `limited`: Site owners and members, and people with Edit permissions can share files and folders, but only site owners can share the site.
30
+ - `ownersOnly`: Only site owners can share files, folders, and the site.
31
+
32
+ ## Examples
33
+
34
+ Update the sharing permissions for a site so only owners can share files and the site
35
+
36
+ ```sh
37
+ m365 spo site sharingpermission set --siteUrl https://siteaddress.com/sites/sitename --capability ownersOnly
38
+ ```
39
+
40
+ Update the sharing permissions for a site where so both owners and members can share files and the site
41
+
42
+ ```sh
43
+ m365 spo site sharingpermission set --siteUrl https://siteaddress.com/sites/sitename --capability full
44
+ ```
45
+
46
+ Update the sharing permissions for a site where so owners can share the site, but members can only share files
47
+
48
+ ```sh
49
+ m365 spo site sharingpermission set --siteUrl https://siteaddress.com/sites/sitename --capability limited
50
+ ```
51
+
52
+ ## Response
53
+
54
+ The command won't return a response on success.
55
+
56
+ ## More information
57
+
58
+ - Sharing a SharePoint site: [https://support.microsoft.com/office/share-a-site-958771a8-d041-4eb8-b51c-afea2eae3658](https://support.microsoft.com/office/share-a-site-958771a8-d041-4eb8-b51c-afea2eae3658)
@@ -19,13 +19,10 @@ m365 spo user ensure [options]
19
19
  : Absolute URL of the site.
20
20
 
21
21
  `--entraId [--entraId]`
22
- : Id of the user in Entra. Specify either `aadId`, `entraId`, or `userName`.
23
-
24
- `--aadId [--aadId]`
25
- : (deprecated. Use `entraId` instead) Id of the user in Microsoft Entra. Specify either `aadId`, `entraId`, or `userName`.
22
+ : Id of the user in Entra. Specify either `entraId` or `userName`.
26
23
 
27
24
  `--userName [userName]`
28
- : User's UPN (user principal name, e.g. john@contoso.com). Specify either `aadId`, `entraId`, or `userName`.
25
+ : User's UPN (user principal name, e.g. john@contoso.com). Specify either `entraId` or `userName`.
29
26
  ```
30
27
 
31
28
  <Global />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "10.0.0-beta.58f28f9",
3
+ "version": "10.0.0-beta.67e608f",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -1,89 +0,0 @@
1
- const prefix = 'aad';
2
- export default {
3
- ADMINISTRATIVEUNIT_ADD: `${prefix} administrativeunit add`,
4
- ADMINISTRATIVEUNIT_GET: `${prefix} administrativeunit get`,
5
- ADMINISTRATIVEUNIT_LIST: `${prefix} administrativeunit list`,
6
- ADMINISTRATIVEUNIT_REMOVE: `${prefix} administrativeunit remove`,
7
- ADMINISTRATIVEUNIT_MEMBER_ADD: `${prefix} administrativeunit member add`,
8
- ADMINISTRATIVEUNIT_MEMBER_GET: `${prefix} administrativeunit member get`,
9
- ADMINISTRATIVEUNIT_MEMBER_LIST: `${prefix} administrativeunit member list`,
10
- ADMINISTRATIVEUNIT_MEMBER_REMOVE: `${prefix} administrativeunit member remove`,
11
- ADMINISTRATIVEUNIT_ROLEASSIGNMENT_ADD: `${prefix} administrativeunit roleassignment add`,
12
- APP_ADD: `${prefix} app add`,
13
- APP_GET: `${prefix} app get`,
14
- APP_LIST: `${prefix} app list`,
15
- APP_REMOVE: `${prefix} app remove`,
16
- APP_SET: `${prefix} app set`,
17
- APP_PERMISSION_ADD: `${prefix} app permission add`,
18
- APP_ROLE_ADD: `${prefix} app role add`,
19
- APP_ROLE_LIST: `${prefix} app role list`,
20
- APP_ROLE_REMOVE: `${prefix} app role remove`,
21
- APPROLEASSIGNMENT_ADD: `${prefix} approleassignment add`,
22
- APPROLEASSIGNMENT_LIST: `${prefix} approleassignment list`,
23
- APPROLEASSIGNMENT_REMOVE: `${prefix} approleassignment remove`,
24
- GROUP_ADD: `${prefix} group add`,
25
- GROUP_GET: `${prefix} group get`,
26
- GROUP_LIST: `${prefix} group list`,
27
- GROUP_REMOVE: `${prefix} group remove`,
28
- GROUP_USER_LIST: `${prefix} group user list`,
29
- GROUPSETTING_ADD: `${prefix} groupsetting add`,
30
- GROUPSETTING_GET: `${prefix} groupsetting get`,
31
- GROUPSETTING_LIST: `${prefix} groupsetting list`,
32
- GROUPSETTING_REMOVE: `${prefix} groupsetting remove`,
33
- GROUPSETTING_SET: `${prefix} groupsetting set`,
34
- GROUPSETTINGTEMPLATE_GET: `${prefix} groupsettingtemplate get`,
35
- GROUPSETTINGTEMPLATE_LIST: `${prefix} groupsettingtemplate list`,
36
- LICENSE_LIST: `${prefix} license list`,
37
- M365GROUP_ADD: `${prefix} m365group add`,
38
- M365GROUP_GET: `${prefix} m365group get`,
39
- M365GROUP_LIST: `${prefix} m365group list`,
40
- M365GROUP_CONVERSATION_LIST: `${prefix} m365group conversation list`,
41
- M365GROUP_CONVERSATION_POST_LIST: `${prefix} m365group conversation post list`,
42
- M365GROUP_RECYCLEBINITEM_CLEAR: `${prefix} m365group recyclebinitem clear`,
43
- M365GROUP_RECYCLEBINITEM_LIST: `${prefix} m365group recyclebinitem list`,
44
- M365GROUP_RECYCLEBINITEM_REMOVE: `${prefix} m365group recyclebinitem remove`,
45
- M365GROUP_RECYCLEBINITEM_RESTORE: `${prefix} m365group recyclebinitem restore`,
46
- M365GROUP_SET: `${prefix} m365group set`,
47
- M365GROUP_TEAMIFY: `${prefix} m365group teamify`,
48
- M365GROUP_REMOVE: `${prefix} m365group remove`,
49
- M365GROUP_RENEW: `${prefix} m365group renew`,
50
- M365GROUP_REPORT_ACTIVITYCOUNTS: `${prefix} m365group report activitycounts`,
51
- M365GROUP_REPORT_ACTIVITYDETAIL: `${prefix} m365group report activitydetail`,
52
- M365GROUP_REPORT_ACTIVITYFILECOUNTS: `${prefix} m365group report activityfilecounts`,
53
- M365GROUP_REPORT_ACTIVITYGROUPCOUNTS: `${prefix} m365group report activitygroupcounts`,
54
- M365GROUP_REPORT_ACTIVITYSTORAGE: `${prefix} m365group report activitystorage`,
55
- M365GROUP_USER_ADD: `${prefix} m365group user add`,
56
- M365GROUP_USER_LIST: `${prefix} m365group user list`,
57
- M365GROUP_USER_REMOVE: `${prefix} m365group user remove`,
58
- M365GROUP_USER_SET: `${prefix} m365group user set`,
59
- OAUTH2GRANT_ADD: `${prefix} oauth2grant add`,
60
- OAUTH2GRANT_LIST: `${prefix} oauth2grant list`,
61
- OAUTH2GRANT_REMOVE: `${prefix} oauth2grant remove`,
62
- OAUTH2GRANT_SET: `${prefix} oauth2grant set`,
63
- POLICY_LIST: `${prefix} policy list`,
64
- SITECLASSIFICATION_DISABLE: `${prefix} siteclassification disable`,
65
- SITECLASSIFICATION_ENABLE: `${prefix} siteclassification enable`,
66
- SITECLASSIFICATION_GET: `${prefix} siteclassification get`,
67
- SITECLASSIFICATION_SET: `${prefix} siteclassification set`,
68
- SP_ADD: `${prefix} sp add`,
69
- SP_GET: `${prefix} sp get`,
70
- SP_LIST: `${prefix} sp list`,
71
- USER_ADD: `${prefix} user add`,
72
- USER_GET: `${prefix} user get`,
73
- USER_GUEST_ADD: `${prefix} user guest add`,
74
- USER_HIBP: `${prefix} user hibp`,
75
- USER_LICENSE_ADD: `${prefix} user license add`,
76
- USER_LICENSE_LIST: `${prefix} user license list`,
77
- USER_LICENSE_REMOVE: `${prefix} user license remove`,
78
- USER_LIST: `${prefix} user list`,
79
- USER_PASSWORD_VALIDATE: `${prefix} user password validate`,
80
- USER_RECYCLEBINITEM_CLEAR: `${prefix} user recyclebinitem clear`,
81
- USER_RECYCLEBINITEM_LIST: `${prefix} user recyclebinitem list`,
82
- USER_RECYCLEBINITEM_REMOVE: `${prefix} user recyclebinitem remove`,
83
- USER_REGISTRATIONDETAILS_LIST: `${prefix} user registrationdetails list`,
84
- USER_REMOVE: `${prefix} user remove`,
85
- USER_RECYCLEBINITEM_RESTORE: `${prefix} user recyclebinitem restore`,
86
- USER_SET: `${prefix} user set`,
87
- USER_SIGNIN_LIST: `${prefix} user signin list`
88
- };
89
- //# sourceMappingURL=aadCommands.js.map
@@ -1,62 +0,0 @@
1
- import Global from '/docs/cmd/_global.mdx';
2
-
3
- # entra group user add
4
-
5
- Adds a user to a Microsoft Entra ID group
6
-
7
- ## Usage
8
-
9
- ```sh
10
- m365 entra group user add [options]
11
- ```
12
-
13
- ## Options
14
-
15
- ```md definition-list
16
- `-i, --groupId [groupId]`
17
- : The ID of the Microsoft Entra group. Specify `groupId` or `groupDisplayName` but not both.
18
-
19
- `-n, --groupDisplayName [groupDisplayName]`
20
- : The display name of the Microsoft Entra group. Specify `groupId` or `groupDisplayName` but not both.
21
-
22
- `--ids [ids]`
23
- : Microsoft Entra IDs of users. You can also pass a comma-separated list of IDs. Specify either `ids` or `userNames` but not both.
24
-
25
- `--userNames [userNames]`
26
- : The user principal names of users. You can also pass a comma-separated list of UPNs. Specify either `ids` or `userNames` but not both.
27
-
28
- `-r, --role <role>`
29
- : The role to be assigned to the new users. Valid values: `Owner`, `Member`.
30
- ```
31
-
32
- <Global />
33
-
34
- ## Examples
35
-
36
- Add a single user specified by ID as a member to a group specified by display name.
37
-
38
- ```sh
39
- m365 entra group user add --groupDisplayName Developers --ids 098b9f52-f48c-4401-819f-29c33794c3f5 --role Member
40
- ```
41
-
42
- Add multiple users specified by ID as members to a group specified by ID.
43
-
44
- ```sh
45
- m365 entra group user add --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --ids "098b9f52-f48c-4401-819f-29c33794c3f5,f1e06e31-3abf-4746-83c2-1513d71f38b8" --role Member
46
- ```
47
-
48
- Add a single user specified by UPN as an owner to a group specified by display name.
49
-
50
- ```sh
51
- m365 entra group user add --groupDisplayName Developers --userNames john.doe@contoso.com --role Owner
52
- ```
53
-
54
- Adds multiple users specified by UPN as owners to a group specified by ID.
55
-
56
- ```sh
57
- m365 entra group user add --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --userNames "john.doe@contoso.com,adele.vance@contoso.com" --role Owner
58
- ```
59
-
60
- ## Response
61
-
62
- The command won't return a response on success.
@@ -1,62 +0,0 @@
1
- import Global from '/docs/cmd/_global.mdx';
2
-
3
- # entra group user set
4
-
5
- Updates role of users in a Microsoft Entra ID group
6
-
7
- ## Usage
8
-
9
- ```sh
10
- m365 entra group user set [options]
11
- ```
12
-
13
- ## Options
14
-
15
- ```md definition-list
16
- `-i, --groupId [groupId]`
17
- : The ID of the Entra ID group. Specify `groupId` or `groupDisplayName` but not both.
18
-
19
- `-n, --groupDisplayName [groupDisplayName]`
20
- : The display name of the Entra ID group. Specify `groupId` or `groupDisplayName` but not both.
21
-
22
- `--ids [ids]`
23
- : Comma-separated list of user IDs. Specify either `ids` or `userNames` but not both.
24
-
25
- `--userNames [userNames]`
26
- : The user principal names of users. You can also pass a comma-separated list of UPNs. Specify either `ids` or `userNames` but not both.
27
-
28
- `-r, --role <role>`
29
- : The new role to be assigned to the users. Valid values: `Owner`, `Member`.
30
- ```
31
-
32
- <Global />
33
-
34
- ## Examples
35
-
36
- Update a single user specified by ID to a member of a group specified by display name
37
-
38
- ```sh
39
- m365 entra group user set --groupDisplayName Developers --ids 098b9f52-f48c-4401-819f-29c33794c3f5 --role Member
40
- ```
41
-
42
- Update multiple users specified by ID to members of a group specified by ID
43
-
44
- ```sh
45
- m365 entra group user set --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --ids "098b9f52-f48c-4401-819f-29c33794c3f5,f1e06e31-3abf-4746-83c2-1513d71f38b8" --role Member
46
- ```
47
-
48
- Update a single user specified by UPN to an owner of a group specified by display name
49
-
50
- ```sh
51
- m365 entra group user set --groupDisplayName Developers --userNames john.doe@contoso.com --role Owner
52
- ```
53
-
54
- Update multiple users specified by UPN to owners of a group specified by ID
55
-
56
- ```sh
57
- m365 entra group user set --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --userNames "john.doe@contoso.com,adele.vance@contoso.com" --role Owner
58
- ```
59
-
60
- ## Response
61
-
62
- The command won't return a response on success.