@pnp/cli-microsoft365 11.1.0-beta.d3fc85d → 11.1.0

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 (199) hide show
  1. package/.devproxy/api-specs/sharepoint.yaml +41 -0
  2. package/allCommands.json +1 -1
  3. package/allCommandsFull.json +1 -1
  4. package/dist/Auth.js +10 -7
  5. package/dist/Command.js +2 -2
  6. package/dist/auth/msalCachePlugin.js +6 -2
  7. package/dist/autocomplete.js +6 -2
  8. package/dist/chili/chili.js +2 -1
  9. package/dist/cli/cli.js +4 -2
  10. package/dist/config.js +0 -1
  11. package/dist/m365/adaptivecard/commands/adaptivecard-send.js +2 -2
  12. package/dist/m365/app/commands/permission/permission-list.js +4 -2
  13. package/dist/m365/booking/commands/business/business-list.js +5 -0
  14. package/dist/m365/commands/logout.js +5 -1
  15. package/dist/m365/commands/setup.js +6 -3
  16. package/dist/m365/connection/commands/connection-list.js +5 -1
  17. package/dist/m365/entra/commands/app/app-role-add.js +1 -1
  18. package/dist/m365/entra/commands/group/group-add.js +1 -1
  19. package/dist/m365/entra/commands/group/group-set.js +1 -1
  20. package/dist/m365/entra/commands/license/license-list.js +5 -0
  21. package/dist/m365/entra/commands/m365group/m365group-add.js +0 -1
  22. package/dist/m365/file/commands/convert/convert-pdf.js +1 -6
  23. package/dist/m365/flow/commands/flow-export.js +8 -5
  24. package/dist/m365/flow/commands/run/run-get.js +3 -3
  25. package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +1 -1
  26. package/dist/m365/onedrive/commands/onedrive-list.js +5 -0
  27. package/dist/m365/outlook/commands/roomlist/roomlist-list.js +5 -0
  28. package/dist/m365/pa/commands/app/app-export.js +1 -1
  29. package/dist/m365/pa/commands/app/app-get.js +1 -1
  30. package/dist/m365/pa/commands/environment/environment-list.js +5 -0
  31. package/dist/m365/planner/commands/tenant/tenant-settings-list.js +5 -0
  32. package/dist/m365/pp/commands/gateway/gateway-list.js +5 -0
  33. package/dist/m365/pp/commands/solution/solution-publisher-get.js +1 -1
  34. package/dist/m365/pp/commands/tenant/tenant-settings-list.js +5 -0
  35. package/dist/m365/purview/commands/retentionevent/retentionevent-list.js +5 -0
  36. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-list.js +5 -0
  37. package/dist/m365/purview/commands/retentionlabel/retentionlabel-list.js +5 -0
  38. package/dist/m365/spfx/commands/package/package-generate.js +3 -1
  39. package/dist/m365/spfx/commands/project/base-project-command.js +13 -5
  40. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021007_PKG_only_one_rush_stack_compiler_installed.js +1 -1
  41. package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +6 -4
  42. package/dist/m365/spfx/commands/project/project-model/ScssFile.js +3 -1
  43. package/dist/m365/spfx/commands/project/project-model/TsFile.js +6 -2
  44. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +1 -1
  45. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.0.js +2 -0
  46. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.0.js +2 -0
  47. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.0.js +2 -0
  48. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.19.0.js +2 -0
  49. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.20.0.js +2 -0
  50. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.21.0.js +2 -0
  51. package/dist/m365/spfx/commands/spfx-doctor.js +5 -5
  52. package/dist/m365/spo/commands/file/file-add.js +4 -2
  53. package/dist/m365/spo/commands/file/file-rename.js +3 -4
  54. package/dist/m365/spo/commands/hubsite/hubsite-list.js +1 -1
  55. package/dist/m365/spo/commands/listitem/listitem-attachment-add.js +1 -1
  56. package/dist/m365/spo/commands/listitem/listitem-batch-set.js +9 -5
  57. package/dist/m365/spo/commands/page/clientsidepages.js +12 -12
  58. package/dist/m365/spo/commands/page/page-add.js +4 -2
  59. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +1 -0
  60. package/dist/m365/spo/commands/page/page-set.js +4 -2
  61. package/dist/m365/spo/commands/page/page-text-add.js +1 -0
  62. package/dist/m365/spo/commands/propertybag/propertybag-base.js +34 -54
  63. package/dist/m365/spo/commands/theme/theme-apply.js +1 -1
  64. package/dist/m365/spo/commands/web/web-alert-list.js +107 -0
  65. package/dist/m365/spo/commands/web/web-alert-remove.js +59 -0
  66. package/dist/m365/spo/commands/web/web-reindex.js +17 -27
  67. package/dist/m365/spo/commands.js +2 -0
  68. package/dist/m365/teams/commands/tab/tab-add.js +9 -3
  69. package/dist/m365/viva/commands/connections/connections-app-create.js +1 -1
  70. package/dist/m365/viva/commands/engage/engage-community-user-add.js +1 -1
  71. package/dist/m365/viva/commands/engage/engage-community-user-remove.js +1 -1
  72. package/dist/telemetry.js +3 -1
  73. package/dist/utils/accessToken.js +4 -0
  74. package/dist/utils/cache.js +3 -2
  75. package/dist/utils/customAppScope.js +1 -1
  76. package/dist/utils/directoryExtension.js +1 -1
  77. package/dist/utils/entraAdministrativeUnit.js +1 -1
  78. package/dist/utils/entraApp.js +2 -2
  79. package/dist/utils/entraDevice.js +1 -1
  80. package/dist/utils/entraServicePrincipal.js +2 -2
  81. package/dist/utils/formatting.js +1 -1
  82. package/dist/utils/md.js +2 -2
  83. package/dist/utils/odata.js +2 -0
  84. package/dist/utils/planner.js +1 -1
  85. package/dist/utils/powerPlatform.js +2 -2
  86. package/dist/utils/roleDefinition.js +2 -2
  87. package/dist/utils/spo.js +10 -11
  88. package/dist/utils/urlUtil.js +1 -1
  89. package/dist/utils/validation.js +1 -1
  90. package/dist/utils/vivaEngage.js +3 -3
  91. package/docs/docs/cmd/booking/business/business-get.mdx +18 -1
  92. package/docs/docs/cmd/booking/business/business-list.mdx +18 -1
  93. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-add.mdx +19 -0
  94. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-get.mdx +19 -0
  95. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-list.mdx +19 -0
  96. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-add.mdx +21 -0
  97. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-get.mdx +19 -0
  98. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-list.mdx +19 -0
  99. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-remove.mdx +21 -0
  100. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-remove.mdx +21 -0
  101. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-roleassignment-add.mdx +19 -0
  102. package/docs/docs/cmd/entra/app/app-add.mdx +18 -0
  103. package/docs/docs/cmd/entra/app/app-get.mdx +19 -1
  104. package/docs/docs/cmd/entra/app/app-list.mdx +18 -1
  105. package/docs/docs/cmd/entra/app/app-remove.mdx +20 -0
  106. package/docs/docs/cmd/entra/app/app-set.mdx +20 -0
  107. package/docs/docs/cmd/entra/approleassignment/approleassignment-add.mdx +18 -0
  108. package/docs/docs/cmd/entra/approleassignment/approleassignment-list.mdx +18 -0
  109. package/docs/docs/cmd/entra/approleassignment/approleassignment-remove.mdx +20 -0
  110. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +14 -0
  111. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +15 -0
  112. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +14 -0
  113. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx +14 -0
  114. package/docs/docs/cmd/entra/group/group-add.mdx +18 -0
  115. package/docs/docs/cmd/entra/group/group-get.mdx +18 -0
  116. package/docs/docs/cmd/entra/group/group-list.mdx +18 -0
  117. package/docs/docs/cmd/entra/group/group-member-add.mdx +20 -0
  118. package/docs/docs/cmd/entra/group/group-member-list.mdx +18 -0
  119. package/docs/docs/cmd/entra/group/group-member-remove.mdx +20 -0
  120. package/docs/docs/cmd/entra/group/group-member-set.mdx +20 -0
  121. package/docs/docs/cmd/entra/group/group-remove.mdx +20 -0
  122. package/docs/docs/cmd/entra/group/group-set.mdx +20 -0
  123. package/docs/docs/cmd/entra/groupsetting/groupsetting-add.mdx +19 -0
  124. package/docs/docs/cmd/entra/groupsetting/groupsetting-get.mdx +19 -0
  125. package/docs/docs/cmd/entra/groupsetting/groupsetting-list.mdx +19 -0
  126. package/docs/docs/cmd/entra/groupsetting/groupsetting-remove.mdx +21 -0
  127. package/docs/docs/cmd/entra/groupsetting/groupsetting-set.mdx +21 -0
  128. package/docs/docs/cmd/entra/m365group/m365group-add.mdx +19 -0
  129. package/docs/docs/cmd/entra/m365group/m365group-get.mdx +19 -0
  130. package/docs/docs/cmd/entra/m365group/m365group-list.mdx +19 -0
  131. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-clear.mdx +14 -0
  132. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-list.mdx +19 -0
  133. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-remove.mdx +14 -0
  134. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-restore.mdx +21 -0
  135. package/docs/docs/cmd/entra/m365group/m365group-remove.mdx +21 -0
  136. package/docs/docs/cmd/entra/m365group/m365group-renew.mdx +21 -0
  137. package/docs/docs/cmd/entra/m365group/m365group-report-activitycounts.mdx +18 -0
  138. package/docs/docs/cmd/entra/m365group/m365group-report-activitydetail.mdx +18 -0
  139. package/docs/docs/cmd/entra/m365group/m365group-report-activityfilecounts.mdx +18 -0
  140. package/docs/docs/cmd/entra/m365group/m365group-report-activitygroupcounts.mdx +18 -0
  141. package/docs/docs/cmd/entra/m365group/m365group-report-activitystorage.mdx +18 -0
  142. package/docs/docs/cmd/entra/m365group/m365group-set.mdx +21 -0
  143. package/docs/docs/cmd/entra/m365group/m365group-teamify.mdx +19 -0
  144. package/docs/docs/cmd/entra/multitenant/multitenant-add.mdx +18 -0
  145. package/docs/docs/cmd/entra/multitenant/multitenant-get.mdx +18 -1
  146. package/docs/docs/cmd/entra/multitenant/multitenant-remove.mdx +20 -0
  147. package/docs/docs/cmd/entra/multitenant/multitenant-set.mdx +20 -0
  148. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +20 -0
  149. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +17 -0
  150. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-remove.mdx +20 -0
  151. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-set.mdx +20 -0
  152. package/docs/docs/cmd/entra/organization/organization-list.mdx +19 -2
  153. package/docs/docs/cmd/entra/pim/pim-role-assignment-add.mdx +18 -0
  154. package/docs/docs/cmd/entra/pim/pim-role-assignment-eligibility-list.mdx +18 -0
  155. package/docs/docs/cmd/entra/pim/pim-role-assignment-list.mdx +18 -0
  156. package/docs/docs/cmd/entra/pim/pim-role-assignment-remove.mdx +18 -0
  157. package/docs/docs/cmd/entra/pim/pim-role-request-list.mdx +18 -0
  158. package/docs/docs/cmd/graph/directoryextension/directoryextension-add.mdx +18 -0
  159. package/docs/docs/cmd/graph/directoryextension/directoryextension-get.mdx +18 -0
  160. package/docs/docs/cmd/graph/directoryextension/directoryextension-list.mdx +18 -0
  161. package/docs/docs/cmd/graph/directoryextension/directoryextension-remove.mdx +20 -0
  162. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +18 -1
  163. package/docs/docs/cmd/graph/schemaextension/schemaextension-get.mdx +18 -1
  164. package/docs/docs/cmd/graph/schemaextension/schemaextension-list.mdx +19 -1
  165. package/docs/docs/cmd/graph/schemaextension/schemaextension-remove.mdx +20 -0
  166. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +23 -3
  167. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +27 -6
  168. package/docs/docs/cmd/outlook/mail/mail-send.mdx +21 -0
  169. package/docs/docs/cmd/outlook/mailbox/mailbox-settings-get.mdx +20 -1
  170. package/docs/docs/cmd/outlook/mailbox/mailbox-settings-set.mdx +20 -1
  171. package/docs/docs/cmd/outlook/room/room-list.mdx +19 -0
  172. package/docs/docs/cmd/outlook/roomlist/roomlist-list.mdx +19 -0
  173. package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +18 -0
  174. package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +18 -0
  175. package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +18 -0
  176. package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.mdx +20 -0
  177. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +18 -0
  178. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +18 -0
  179. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +18 -0
  180. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.mdx +21 -1
  181. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.mdx +21 -1
  182. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.mdx +11 -0
  183. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.mdx +12 -1
  184. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.mdx +12 -1
  185. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.mdx +14 -1
  186. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.mdx +13 -0
  187. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +18 -0
  188. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +18 -0
  189. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +18 -0
  190. package/docs/docs/cmd/purview/threatassessment/threatassessment-add.mdx +12 -0
  191. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +19 -0
  192. package/docs/docs/cmd/purview/threatassessment/threatassessment-list.mdx +19 -0
  193. package/docs/docs/cmd/spo/web/web-alert-list.mdx +187 -0
  194. package/docs/docs/cmd/spo/web/web-alert-remove.mdx +65 -0
  195. package/eslint-rules/lib/rules/correct-command-class-name.js +18 -2
  196. package/eslint.config.mjs +270 -0
  197. package/npm-shrinkwrap.json +1279 -2304
  198. package/package.json +26 -24
  199. package/.eslintrc.cjs +0 -289
@@ -17,7 +17,7 @@ export const roleDefinition = {
17
17
  }
18
18
  const roleDefinitions = await odata.getAllItems(url);
19
19
  if (roleDefinitions.length === 0) {
20
- throw `The specified role definition '${displayName}' does not exist.`;
20
+ throw new Error(`The specified role definition '${displayName}' does not exist.`);
21
21
  }
22
22
  if (roleDefinitions.length > 1) {
23
23
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', roleDefinitions);
@@ -61,7 +61,7 @@ export const roleDefinition = {
61
61
  }
62
62
  const roleDefinitions = await odata.getAllItems(url);
63
63
  if (roleDefinitions.length === 0) {
64
- throw `The specified role definition '${displayName}' does not exist.`;
64
+ throw new Error(`The specified role definition '${displayName}' does not exist.`);
65
65
  }
66
66
  if (roleDefinitions.length > 1) {
67
67
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', roleDefinitions);
package/dist/utils/spo.js CHANGED
@@ -114,7 +114,7 @@ export const spo = {
114
114
  try {
115
115
  await auth.storeConnectionInfo();
116
116
  }
117
- catch (e) {
117
+ catch {
118
118
  if (debug) {
119
119
  await logger.logToStderr('Error while storing connection info');
120
120
  }
@@ -123,7 +123,7 @@ export const spo = {
123
123
  },
124
124
  async getSpoAdminUrl(logger, debug) {
125
125
  const spoUrl = await spo.getSpoUrl(logger, debug);
126
- return (spoUrl.replace(/(https:\/\/)([^\.]+)(.*)/, '$1$2-admin$3'));
126
+ return (spoUrl.replace(/(https:\/\/)([^.]+)(.*)/, '$1$2-admin$3'));
127
127
  },
128
128
  async getTenantId(logger, debug) {
129
129
  if (auth.connection.spoTenantId) {
@@ -151,7 +151,7 @@ export const spo = {
151
151
  try {
152
152
  await auth.storeConnectionInfo();
153
153
  }
154
- catch (e) {
154
+ catch {
155
155
  if (debug) {
156
156
  await logger.logToStderr('Error while storing connection info');
157
157
  }
@@ -749,10 +749,7 @@ export const spo = {
749
749
  }
750
750
  }
751
751
  else {
752
- if (siteDesignId) {
753
- siteDesignId = siteDesignId;
754
- }
755
- else {
752
+ if (!siteDesignId) {
756
753
  if (siteDesign) {
757
754
  switch (siteDesign) {
758
755
  case 'Topic':
@@ -1592,10 +1589,12 @@ export const spo = {
1592
1589
  const requestBody = {
1593
1590
  formValues: requestBodyOptions
1594
1591
  };
1595
- contentTypeName && requestBody.formValues.push({
1596
- FieldName: 'ContentType',
1597
- FieldValue: contentTypeName
1598
- });
1592
+ if (contentTypeName) {
1593
+ requestBody.formValues.push({
1594
+ FieldName: 'ContentType',
1595
+ FieldValue: contentTypeName
1596
+ });
1597
+ }
1599
1598
  const requestOptions = {
1600
1599
  url: `${absoluteListUrl}/items(${itemId})/ValidateUpdateListItem()`,
1601
1600
  headers: {
@@ -176,7 +176,7 @@ export const urlUtil = {
176
176
  getTargetSiteAbsoluteUrl(webUrl, url) {
177
177
  const fullUrl = url.startsWith('https://') ? url : urlUtil.getAbsoluteUrl(webUrl, url);
178
178
  // Pattern to match SharePoint URLs
179
- const urlPattern = /https:\/\/[\w\-]+\.sharepoint\.com\/(teams|sites|personal)\/([\w\-]+)/;
179
+ const urlPattern = /https:\/\/[\w-]+\.sharepoint\.com\/(teams|sites|personal)\/([\w-]+)/;
180
180
  const match = fullUrl.match(urlPattern);
181
181
  if (match) {
182
182
  // If a match is found, return the matched URL
@@ -309,7 +309,7 @@ export const validation = {
309
309
  return false;
310
310
  }
311
311
  const hasInvalidProperties = validThemeProperties.map((property) => {
312
- return theme.hasOwnProperty(property);
312
+ return Object.prototype.hasOwnProperty.call(theme, property);
313
313
  }).includes(false);
314
314
  if (hasInvalidProperties) {
315
315
  return false;
@@ -19,7 +19,7 @@ export const vivaEngage = {
19
19
  };
20
20
  const community = await request.get(requestOptions);
21
21
  if (!community) {
22
- throw `The specified Viva Engage community with ID '${communityId}' does not exist.`;
22
+ throw new Error(`The specified Viva Engage community with ID '${communityId}' does not exist.`);
23
23
  }
24
24
  return community;
25
25
  },
@@ -32,7 +32,7 @@ export const vivaEngage = {
32
32
  async getCommunityByDisplayName(displayName, selectProperties) {
33
33
  const communities = await odata.getAllItems(`https://graph.microsoft.com/v1.0/employeeExperience/communities?$filter=displayName eq '${formatting.encodeQueryParameter(displayName)}'&$select=${selectProperties.join(',')}`);
34
34
  if (communities.length === 0) {
35
- throw `The specified Viva Engage community '${displayName}' does not exist.`;
35
+ throw new Error(`The specified Viva Engage community '${displayName}' does not exist.`);
36
36
  }
37
37
  if (communities.length > 1) {
38
38
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', communities);
@@ -53,7 +53,7 @@ export const vivaEngage = {
53
53
  const communities = await odata.getAllItems(`https://graph.microsoft.com/v1.0/employeeExperience/communities?$select=${properties.join(',')}`);
54
54
  const filteredCommunity = communities.find(c => c.groupId === entraGroupId);
55
55
  if (!filteredCommunity) {
56
- throw `The Microsoft Entra group with id '${entraGroupId}' is not associated with any Viva Engage community.`;
56
+ throw new Error(`The Microsoft Entra group with id '${entraGroupId}' is not associated with any Viva Engage community.`);
57
57
  }
58
58
  return filteredCommunity;
59
59
  },
@@ -24,6 +24,24 @@ m365 booking business get [options]
24
24
 
25
25
  <Global />
26
26
 
27
+ ## Permissions
28
+ <Tabs>
29
+ <TabItem value="Delegated">
30
+
31
+ | Resource | Permissions |
32
+ |-----------------|-------------------|
33
+ | Microsoft Graph | Bookings.Read.All |
34
+
35
+ </TabItem>
36
+ <TabItem value="Application">
37
+
38
+ | Resource | Permissions |
39
+ |-----------------|-----------------------------------|
40
+ | Microsoft Graph | BookingsAppointment.ReadWrite.All |
41
+
42
+ </TabItem>
43
+ </Tabs>
44
+
27
45
  ## Examples
28
46
 
29
47
  Retrieve the specified Microsoft Bookings business with the specified id.
@@ -186,4 +204,3 @@ m365 booking business get --name 'business name'
186
204
 
187
205
  </TabItem>
188
206
  </Tabs>
189
-
@@ -16,6 +16,24 @@ m365 booking business list [options]
16
16
 
17
17
  <Global />
18
18
 
19
+ ## Permissions
20
+ <Tabs>
21
+ <TabItem value="Delegated">
22
+
23
+ | Resource | Permissions |
24
+ |-----------------|-------------------|
25
+ | Microsoft Graph | Bookings.Read.All |
26
+
27
+ </TabItem>
28
+ <TabItem value="Application">
29
+
30
+ | Resource | Permissions |
31
+ |-----------------|-----------------------------------|
32
+ | Microsoft Graph | BookingsAppointment.ReadWrite.All |
33
+
34
+ </TabItem>
35
+ </Tabs>
36
+
19
37
  ## Examples
20
38
 
21
39
  Returns a list of all Microsoft Bookings businesses that are created for the tenant.
@@ -73,4 +91,3 @@ m365 booking business list
73
91
 
74
92
  </TabItem>
75
93
  </Tabs>
76
-
@@ -35,6 +35,25 @@ To use this command you must be either **Global Administrator** or **Privileged
35
35
 
36
36
  :::
37
37
 
38
+ ## Permissions
39
+
40
+ <Tabs>
41
+ <TabItem value="Delegated">
42
+
43
+ | Resource | Permissions |
44
+ |-----------------|----------------------------------|
45
+ | Microsoft Graph | AdministrativeUnit.ReadWrite.All |
46
+
47
+ </TabItem>
48
+ <TabItem value="Application">
49
+
50
+ | Resource | Permissions |
51
+ |-----------------|----------------------------------|
52
+ | Microsoft Graph | AdministrativeUnit.ReadWrite.All |
53
+
54
+ </TabItem>
55
+ </Tabs>
56
+
38
57
  ## Examples
39
58
 
40
59
  Create an administrative unit with a specific display name
@@ -31,6 +31,25 @@ m365 entra administrativeunit get [options]
31
31
 
32
32
  Using the `--properties` option, you can specify a comma-separated list of administrative unit properties to retrieve from the Microsoft Graph. If you don't specify any properties, the command will output the default properties returned by Graph.
33
33
 
34
+ ## Permissions
35
+
36
+ <Tabs>
37
+ <TabItem value="Delegated">
38
+
39
+ | Resource | Permissions |
40
+ |-----------------|-----------------------------|
41
+ | Microsoft Graph | AdministrativeUnit.Read.All |
42
+
43
+ </TabItem>
44
+ <TabItem value="Application">
45
+
46
+ | Resource | Permissions |
47
+ |-----------------|-----------------------------|
48
+ | Microsoft Graph | AdministrativeUnit.Read.All |
49
+
50
+ </TabItem>
51
+ </Tabs>
52
+
34
53
  ## Examples
35
54
 
36
55
  Get information about the administrative unit by its id.
@@ -25,6 +25,25 @@ m365 entra administrativeunit list [options]
25
25
 
26
26
  Using the `--properties` option, you can specify a comma-separated list of administrative unit properties to retrieve from the Microsoft Graph. If you don't specify any properties, the command will output the default properties returned by Graph.
27
27
 
28
+ ## Permissions
29
+
30
+ <Tabs>
31
+ <TabItem value="Delegated">
32
+
33
+ | Resource | Permissions |
34
+ |-----------------|-----------------------------|
35
+ | Microsoft Graph | AdministrativeUnit.Read.All |
36
+
37
+ </TabItem>
38
+ <TabItem value="Application">
39
+
40
+ | Resource | Permissions |
41
+ |-----------------|-----------------------------|
42
+ | Microsoft Graph | AdministrativeUnit.Read.All |
43
+
44
+ </TabItem>
45
+ </Tabs>
46
+
28
47
  ## Examples
29
48
 
30
49
  Retrieve a list of administrative units.
@@ -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
  # entra administrativeunit member add
4
6
 
@@ -48,6 +50,25 @@ To use this command you must be either **Global Administrator** or **Privileged
48
50
 
49
51
  :::
50
52
 
53
+ ## Permissions
54
+
55
+ <Tabs>
56
+ <TabItem value="Delegated">
57
+
58
+ | Resource | Permissions |
59
+ |-----------------|----------------------------------|
60
+ | Microsoft Graph | AdministrativeUnit.ReadWrite.All |
61
+
62
+ </TabItem>
63
+ <TabItem value="Application">
64
+
65
+ | Resource | Permissions |
66
+ |-----------------|----------------------------------|
67
+ | Microsoft Graph | AdministrativeUnit.ReadWrite.All |
68
+
69
+ </TabItem>
70
+ </Tabs>
71
+
51
72
  ## Examples
52
73
 
53
74
  Add a single user specified by id to an administrative unit specified by id
@@ -36,6 +36,25 @@ To get the member of a hidden membership in an administrative unit, the `Member.
36
36
 
37
37
  When the `properties` option includes values with a `/`, for example: `manager/displayName`, an additional `$expand` query parameter will be included on manager.
38
38
 
39
+ ## Permissions
40
+
41
+ <Tabs>
42
+ <TabItem value="Delegated">
43
+
44
+ | Resource | Permissions |
45
+ |-----------------|-----------------------------|
46
+ | Microsoft Graph | AdministrativeUnit.Read.All |
47
+
48
+ </TabItem>
49
+ <TabItem value="Application">
50
+
51
+ | Resource | Permissions |
52
+ |-----------------|-----------------------------|
53
+ | Microsoft Graph | AdministrativeUnit.Read.All |
54
+
55
+ </TabItem>
56
+ </Tabs>
57
+
39
58
  ## Examples
40
59
 
41
60
  Get information about a member specified by id from an administrative unit specified by id
@@ -39,6 +39,25 @@ To list the members of a hidden membership in an administrative unit, the `Membe
39
39
 
40
40
  When the `properties` option includes values with a `/`, for example: `manager/displayName`, an additional `$expand` query parameter will be included on manager.
41
41
 
42
+ ## Permissions
43
+
44
+ <Tabs>
45
+ <TabItem value="Delegated">
46
+
47
+ | Resource | Permissions |
48
+ |-----------------|-----------------------------|
49
+ | Microsoft Graph | AdministrativeUnit.Read.All |
50
+
51
+ </TabItem>
52
+ <TabItem value="Application">
53
+
54
+ | Resource | Permissions |
55
+ |-----------------|-----------------------------|
56
+ | Microsoft Graph | AdministrativeUnit.Read.All |
57
+
58
+ </TabItem>
59
+ </Tabs>
60
+
42
61
  ## Examples
43
62
 
44
63
  List members of an administrative unit specified by id
@@ -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
  # entra administrativeunit member remove
4
6
 
@@ -54,6 +56,25 @@ To use this command you must be either **Global Administrator** or **Privileged
54
56
 
55
57
  :::
56
58
 
59
+ ## Permissions
60
+
61
+ <Tabs>
62
+ <TabItem value="Delegated">
63
+
64
+ | Resource | Permissions |
65
+ |-----------------|----------------------------------|
66
+ | Microsoft Graph | AdministrativeUnit.ReadWrite.All |
67
+
68
+ </TabItem>
69
+ <TabItem value="Application">
70
+
71
+ | Resource | Permissions |
72
+ |-----------------|----------------------------------|
73
+ | Microsoft Graph | AdministrativeUnit.ReadWrite.All |
74
+
75
+ </TabItem>
76
+ </Tabs>
77
+
57
78
  ## Examples
58
79
 
59
80
  Remove a member specified by id from an administrative unit specified by id
@@ -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
  # entra administrativeunit remove
4
6
 
@@ -33,6 +35,25 @@ To use this command you must be either **Global Administrator** or **Privileged
33
35
 
34
36
  :::
35
37
 
38
+ ## Permissions
39
+
40
+ <Tabs>
41
+ <TabItem value="Delegated">
42
+
43
+ | Resource | Permissions |
44
+ |-----------------|----------------------------------|
45
+ | Microsoft Graph | AdministrativeUnit.ReadWrite.All |
46
+
47
+ </TabItem>
48
+ <TabItem value="Application">
49
+
50
+ | Resource | Permissions |
51
+ |-----------------|----------------------------------|
52
+ | Microsoft Graph | AdministrativeUnit.ReadWrite.All |
53
+
54
+ </TabItem>
55
+ </Tabs>
56
+
36
57
  ## Examples
37
58
 
38
59
  Remove an administrative unit by its id
@@ -44,6 +44,25 @@ To use this command you must be either **Global Administrator** or **Privileged
44
44
 
45
45
  :::
46
46
 
47
+ ## Permissions
48
+
49
+ <Tabs>
50
+ <TabItem value="Delegated">
51
+
52
+ | Resource | Permissions |
53
+ |-----------------|------------------------------------|
54
+ | Microsoft Graph | RoleManagement.ReadWrite.Directory |
55
+
56
+ </TabItem>
57
+ <TabItem value="Application">
58
+
59
+ | Resource | Permissions |
60
+ |-----------------|------------------------------------|
61
+ | Microsoft Graph | RoleManagement.ReadWrite.Directory |
62
+
63
+ </TabItem>
64
+ </Tabs>
65
+
47
66
  ## Examples
48
67
 
49
68
  Assign a role definition specified by id to a user specified by id for an administrative unit specified by id
@@ -120,6 +120,24 @@ If you want to store the information about the created Entra app registration, u
120
120
 
121
121
  When specifying `--grantAdminConsent` option, an enterprise application will be created for the app registration.
122
122
 
123
+ ## Permissions
124
+ <Tabs>
125
+ <TabItem value="Delegated">
126
+
127
+ | Resource | Permissions |
128
+ |-----------------|---------------------------|
129
+ | Microsoft Graph | Application.ReadWrite.All |
130
+
131
+ </TabItem>
132
+ <TabItem value="Application">
133
+
134
+ | Resource | Permissions |
135
+ |-----------------|-------------------------------|
136
+ | Microsoft Graph | Application.ReadWrite.OwnedBy |
137
+
138
+ </TabItem>
139
+ </Tabs>
140
+
123
141
  ## Examples
124
142
 
125
143
  Create new Entra app registration with the specified name
@@ -49,6 +49,24 @@ If you want to store the information about the Entra app registration, use the `
49
49
 
50
50
  Using the `--properties` option, you can specify a comma-separated list of app properties to retrieve from the Microsoft Graph. If you don't specify any properties, the command will output the default properties returned by Graph.
51
51
 
52
+ ## Permissions
53
+ <Tabs>
54
+ <TabItem value="Delegated">
55
+
56
+ | Resource | Permissions |
57
+ |-----------------|----------------------|
58
+ | Microsoft Graph | Application.Read.All |
59
+
60
+ </TabItem>
61
+ <TabItem value="Application">
62
+
63
+ | Resource | Permissions |
64
+ |-----------------|----------------------|
65
+ | Microsoft Graph | Application.Read.All |
66
+
67
+ </TabItem>
68
+ </Tabs>
69
+
52
70
  ## Examples
53
71
 
54
72
  Get the Entra application registration by its app (client) ID.
@@ -288,4 +306,4 @@ m365 entra app get --name "My app" --save
288
306
  ```
289
307
 
290
308
  </TabItem>
291
- </Tabs>
309
+ </Tabs>
@@ -31,6 +31,24 @@ m365 entra appregistration list [options]
31
31
 
32
32
  Using the `--properties` option, you can specify a comma-separated list of app properties to retrieve from the Microsoft Graph. If you don't specify any properties, the command will output the default properties returned by Graph.
33
33
 
34
+ ## Permissions
35
+ <Tabs>
36
+ <TabItem value="Delegated">
37
+
38
+ | Resource | Permissions |
39
+ |-----------------|----------------------|
40
+ | Microsoft Graph | Application.Read.All |
41
+
42
+ </TabItem>
43
+ <TabItem value="Application">
44
+
45
+ | Resource | Permissions |
46
+ |-----------------|----------------------|
47
+ | Microsoft Graph | Application.Read.All |
48
+
49
+ </TabItem>
50
+ </Tabs>
51
+
34
52
  ## Examples
35
53
 
36
54
  Retrieve a list of Entra app registrations.
@@ -202,4 +220,3 @@ m365 entra app list --properties "appId,displayName"
202
220
 
203
221
  </TabItem>
204
222
  </Tabs>
205
-
@@ -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
  # entra app remove
4
6
 
@@ -40,6 +42,24 @@ For best performance use the `objectId` option to reference the Entra applicatio
40
42
 
41
43
  If the command finds multiple Entra application registrations with the specified app name, it will prompt you to disambiguate which app it should use, listing the discovered object IDs.
42
44
 
45
+ ## Permissions
46
+ <Tabs>
47
+ <TabItem value="Delegated">
48
+
49
+ | Resource | Permissions |
50
+ |-----------------|---------------------------|
51
+ | Microsoft Graph | Application.ReadWrite.All |
52
+
53
+ </TabItem>
54
+ <TabItem value="Application">
55
+
56
+ | Resource | Permissions |
57
+ |-----------------|-------------------------------|
58
+ | Microsoft Graph | Application.ReadWrite.OwnedBy |
59
+
60
+ </TabItem>
61
+ </Tabs>
62
+
43
63
  ## Examples
44
64
 
45
65
  Remove the Entra application registration by its app (client) ID.
@@ -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
  # entra app set
4
6
 
@@ -63,6 +65,24 @@ If the command finds multiple Entra application registrations with the specified
63
65
 
64
66
  When a certificate is specified it will be added to the list of certificates of the app without changing existing certificates.
65
67
 
68
+ ## Permissions
69
+ <Tabs>
70
+ <TabItem value="Delegated">
71
+
72
+ | Resource | Permissions |
73
+ |-----------------|---------------------------|
74
+ | Microsoft Graph | Application.ReadWrite.All |
75
+
76
+ </TabItem>
77
+ <TabItem value="Application">
78
+
79
+ | Resource | Permissions |
80
+ |-----------------|-------------------------------|
81
+ | Microsoft Graph | Application.ReadWrite.OwnedBy |
82
+
83
+ </TabItem>
84
+ </Tabs>
85
+
66
86
  ## Examples
67
87
 
68
88
  Update the app URI of the Entra application registration specified by its object ID
@@ -43,6 +43,24 @@ Autocomplete values for the `resource` option do not mean allowed values. The au
43
43
 
44
44
  This command can also be used to assign permissions to system or user-assigned managed identity.
45
45
 
46
+ ## Permissions
47
+ <Tabs>
48
+ <TabItem value="Delegated">
49
+
50
+ | Resource | Permissions |
51
+ |-----------------|-------------------------------------------------------|
52
+ | Microsoft Graph | AppRoleAssignment.ReadWrite.All, Application.Read.All |
53
+
54
+ </TabItem>
55
+ <TabItem value="Application">
56
+
57
+ | Resource | Permissions |
58
+ |-----------------|-------------------------------------------------------|
59
+ | Microsoft Graph | AppRoleAssignment.ReadWrite.All, Application.Read.All |
60
+
61
+ </TabItem>
62
+ </Tabs>
63
+
46
64
  ## Examples
47
65
 
48
66
  Adds SharePoint _Sites.Read.All_ application permissions to Entra application with app id _57907bf8-73fa-43a6-89a5-1f603e29e451_
@@ -31,6 +31,24 @@ m365 entra approleassignment list [options]
31
31
 
32
32
  Specify either the `appId`, `appObjectId` or `appDisplayName`. If you specify more than one option value, the command will fail with an error.
33
33
 
34
+ ## Permissions
35
+ <Tabs>
36
+ <TabItem value="Delegated">
37
+
38
+ | Resource | Permissions |
39
+ |-----------------|----------------------|
40
+ | Microsoft Graph | Application.Read.All |
41
+
42
+ </TabItem>
43
+ <TabItem value="Application">
44
+
45
+ | Resource | Permissions |
46
+ |-----------------|----------------------|
47
+ | Microsoft Graph | Application.Read.All |
48
+
49
+ </TabItem>
50
+ </Tabs>
51
+
34
52
  ## Examples
35
53
 
36
54
  List app roles assigned to service principal with Application (client) ID _b2307a39-e878-458b-bc90-03bc578531d6_.
@@ -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
  # entra approleassignment remove
4
6
 
@@ -44,6 +46,24 @@ Autocomplete values for the `resource` option do not mean allowed values. The au
44
46
 
45
47
  This command can also be used to assign permissions to system- or user-assigned managed identity.
46
48
 
49
+ ## Permissions
50
+ <Tabs>
51
+ <TabItem value="Delegated">
52
+
53
+ | Resource | Permissions |
54
+ |-----------------|---------------------------------|
55
+ | Microsoft Graph | AppRoleAssignment.ReadWrite.All |
56
+
57
+ </TabItem>
58
+ <TabItem value="Application">
59
+
60
+ | Resource | Permissions |
61
+ |-----------------|---------------------------------|
62
+ | Microsoft Graph | AppRoleAssignment.ReadWrite.All |
63
+
64
+ </TabItem>
65
+ </Tabs>
66
+
47
67
  ## Examples
48
68
 
49
69
  Deletes SharePoint _Sites.Read.All_ application permissions from Entra application with app id _57907bf8-73fa-43a6-89a5-1f603e29e451_