@pnp/cli-microsoft365 11.1.0-beta.43467d2 → 11.1.0-beta.599b6fe

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 (29) hide show
  1. package/.devproxy/api-specs/sharepoint.yaml +18 -0
  2. package/allCommands.json +1 -1
  3. package/allCommandsFull.json +1 -1
  4. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.0.js +2 -0
  5. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.0.js +2 -0
  6. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.0.js +2 -0
  7. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.19.0.js +2 -0
  8. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.20.0.js +2 -0
  9. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.21.0.js +2 -0
  10. package/dist/m365/spo/commands/site/site-alert-remove.js +59 -0
  11. package/dist/m365/spo/commands.js +1 -0
  12. package/docs/docs/cmd/booking/business/business-get.mdx +18 -1
  13. package/docs/docs/cmd/booking/business/business-list.mdx +18 -1
  14. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-add.mdx +19 -0
  15. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-get.mdx +19 -0
  16. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-list.mdx +19 -0
  17. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-add.mdx +21 -0
  18. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-get.mdx +19 -0
  19. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-list.mdx +19 -0
  20. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-remove.mdx +21 -0
  21. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-remove.mdx +21 -0
  22. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-roleassignment-add.mdx +19 -0
  23. package/docs/docs/cmd/entra/organization/organization-list.mdx +19 -2
  24. package/docs/docs/cmd/purview/threatassessment/threatassessment-add.mdx +12 -0
  25. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +19 -0
  26. package/docs/docs/cmd/purview/threatassessment/threatassessment-list.mdx +19 -0
  27. package/docs/docs/cmd/spo/site/site-alert-remove.mdx +65 -0
  28. package/npm-shrinkwrap.json +136 -1
  29. package/package.json +4 -3
@@ -25,6 +25,7 @@ import { FN002001_DEVDEP_microsoft_sp_build_web } from "./rules/FN002001_DEVDEP_
25
25
  import { FN002002_DEVDEP_microsoft_sp_module_interfaces } from "./rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js";
26
26
  import { FN002015_DEVDEP_types_react } from "./rules/FN002015_DEVDEP_types_react.js";
27
27
  import { FN002016_DEVDEP_types_react_dom } from "./rules/FN002016_DEVDEP_types_react_dom.js";
28
+ import { FN002019_DEVDEP_spfx_fast_serve_helpers } from "./rules/FN002019_DEVDEP_spfx_fast_serve_helpers.js";
28
29
  import { FN002022_DEVDEP_microsoft_eslint_plugin_spfx } from "./rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js";
29
30
  import { FN002023_DEVDEP_microsoft_eslint_config_spfx } from "./rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js";
30
31
  import { FN010001_YORC_version } from "./rules/FN010001_YORC_version.js";
@@ -64,6 +65,7 @@ export default [
64
65
  new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.16.0'),
65
66
  new FN002015_DEVDEP_types_react('17.0.45'),
66
67
  new FN002016_DEVDEP_types_react_dom('17.0.17'),
68
+ new FN002019_DEVDEP_spfx_fast_serve_helpers('1.16.6'),
67
69
  new FN010001_YORC_version('1.16.0'),
68
70
  new FN010008_YORC_nodeVersion(),
69
71
  new FN010009_YORC_sdkVersions_microsoft_graph_client('3.0.2'),
@@ -20,6 +20,7 @@ import { FN001032_DEP_microsoft_sp_page_context } from './rules/FN001032_DEP_mic
20
20
  import { FN001034_DEP_microsoft_sp_adaptive_card_extension_base } from './rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js';
21
21
  import { FN002001_DEVDEP_microsoft_sp_build_web } from './rules/FN002001_DEVDEP_microsoft_sp_build_web.js';
22
22
  import { FN002002_DEVDEP_microsoft_sp_module_interfaces } from './rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js';
23
+ import { FN002019_DEVDEP_spfx_fast_serve_helpers } from './rules/FN002019_DEVDEP_spfx_fast_serve_helpers.js';
23
24
  import { FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5 } from './rules/FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5.js';
24
25
  import { FN002022_DEVDEP_microsoft_eslint_plugin_spfx } from './rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js';
25
26
  import { FN002023_DEVDEP_microsoft_eslint_config_spfx } from './rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js';
@@ -54,6 +55,7 @@ export default [
54
55
  new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.17.0'),
55
56
  new FN002001_DEVDEP_microsoft_sp_build_web('1.17.0'),
56
57
  new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.17.0'),
58
+ new FN002019_DEVDEP_spfx_fast_serve_helpers('1.17.10'),
57
59
  new FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5('0.4.0'),
58
60
  new FN002024_DEVDEP_eslint('8.7.0'),
59
61
  new FN007002_CFG_S_initialPage('https://{tenantDomain}/_layouts/workbench.aspx'),
@@ -22,6 +22,7 @@ import { FN001034_DEP_microsoft_sp_adaptive_card_extension_base } from './rules/
22
22
  import { FN001035_DEP_fluentui_react } from './rules/FN001035_DEP_fluentui_react.js';
23
23
  import { FN002001_DEVDEP_microsoft_sp_build_web } from './rules/FN002001_DEVDEP_microsoft_sp_build_web.js';
24
24
  import { FN002002_DEVDEP_microsoft_sp_module_interfaces } from './rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js';
25
+ import { FN002019_DEVDEP_spfx_fast_serve_helpers } from './rules/FN002019_DEVDEP_spfx_fast_serve_helpers.js';
25
26
  import { FN002022_DEVDEP_microsoft_eslint_plugin_spfx } from './rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js';
26
27
  import { FN002023_DEVDEP_microsoft_eslint_config_spfx } from './rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js';
27
28
  import { FN002026_DEVDEP_typescript } from './rules/FN002026_DEVDEP_typescript.js';
@@ -55,6 +56,7 @@ export default [
55
56
  new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.18.0'),
56
57
  new FN002001_DEVDEP_microsoft_sp_build_web('1.18.0'),
57
58
  new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.18.0'),
59
+ new FN002019_DEVDEP_spfx_fast_serve_helpers('1.18.14'),
58
60
  new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.18.0'),
59
61
  new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.18.0'),
60
62
  new FN002026_DEVDEP_typescript('4.7.4'),
@@ -20,6 +20,7 @@ import { FN001032_DEP_microsoft_sp_page_context } from './rules/FN001032_DEP_mic
20
20
  import { FN001034_DEP_microsoft_sp_adaptive_card_extension_base } from './rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js';
21
21
  import { FN002001_DEVDEP_microsoft_sp_build_web } from './rules/FN002001_DEVDEP_microsoft_sp_build_web.js';
22
22
  import { FN002002_DEVDEP_microsoft_sp_module_interfaces } from './rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js';
23
+ import { FN002019_DEVDEP_spfx_fast_serve_helpers } from './rules/FN002019_DEVDEP_spfx_fast_serve_helpers.js';
23
24
  import { FN002022_DEVDEP_microsoft_eslint_plugin_spfx } from './rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js';
24
25
  import { FN002023_DEVDEP_microsoft_eslint_config_spfx } from './rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js';
25
26
  import { FN010001_YORC_version } from './rules/FN010001_YORC_version.js';
@@ -46,6 +47,7 @@ export default [
46
47
  new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.19.0'),
47
48
  new FN002001_DEVDEP_microsoft_sp_build_web('1.20.1'),
48
49
  new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.20.1'),
50
+ new FN002019_DEVDEP_spfx_fast_serve_helpers('1.19.6'),
49
51
  new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.20.1'),
50
52
  new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.20.1'),
51
53
  new FN010001_YORC_version('1.19.0')
@@ -20,6 +20,7 @@ import { FN001032_DEP_microsoft_sp_page_context } from './rules/FN001032_DEP_mic
20
20
  import { FN001034_DEP_microsoft_sp_adaptive_card_extension_base } from './rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js';
21
21
  import { FN002001_DEVDEP_microsoft_sp_build_web } from './rules/FN002001_DEVDEP_microsoft_sp_build_web.js';
22
22
  import { FN002002_DEVDEP_microsoft_sp_module_interfaces } from './rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js';
23
+ import { FN002019_DEVDEP_spfx_fast_serve_helpers } from './rules/FN002019_DEVDEP_spfx_fast_serve_helpers.js';
23
24
  import { FN002021_DEVDEP_rushstack_eslint_config } from './rules/FN002021_DEVDEP_rushstack_eslint_config.js';
24
25
  import { FN002022_DEVDEP_microsoft_eslint_plugin_spfx } from './rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js';
25
26
  import { FN002023_DEVDEP_microsoft_eslint_config_spfx } from './rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js';
@@ -49,6 +50,7 @@ export default [
49
50
  new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.20.0'),
50
51
  new FN002001_DEVDEP_microsoft_sp_build_web('1.20.2'),
51
52
  new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.20.2'),
53
+ new FN002019_DEVDEP_spfx_fast_serve_helpers('1.20.4'),
52
54
  new FN002024_DEVDEP_eslint('8.57.0'),
53
55
  new FN002021_DEVDEP_rushstack_eslint_config('4.0.1'),
54
56
  new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.20.2'),
@@ -20,6 +20,7 @@ import { FN001032_DEP_microsoft_sp_page_context } from './rules/FN001032_DEP_mic
20
20
  import { FN001034_DEP_microsoft_sp_adaptive_card_extension_base } from './rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js';
21
21
  import { FN002001_DEVDEP_microsoft_sp_build_web } from './rules/FN002001_DEVDEP_microsoft_sp_build_web.js';
22
22
  import { FN002002_DEVDEP_microsoft_sp_module_interfaces } from './rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js';
23
+ import { FN002019_DEVDEP_spfx_fast_serve_helpers } from './rules/FN002019_DEVDEP_spfx_fast_serve_helpers.js';
23
24
  import { FN002022_DEVDEP_microsoft_eslint_plugin_spfx } from './rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js';
24
25
  import { FN002023_DEVDEP_microsoft_eslint_config_spfx } from './rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js';
25
26
  import { FN002024_DEVDEP_eslint } from './rules/FN002024_DEVDEP_eslint.js';
@@ -51,6 +52,7 @@ export default [
51
52
  new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.21.0'),
52
53
  new FN002001_DEVDEP_microsoft_sp_build_web('1.21.0'),
53
54
  new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.21.0'),
55
+ new FN002019_DEVDEP_spfx_fast_serve_helpers('1.21.1'),
54
56
  new FN002024_DEVDEP_eslint('8.57.1'),
55
57
  new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.21.0'),
56
58
  new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.21.0'),
@@ -0,0 +1,59 @@
1
+ import commands from '../../commands.js';
2
+ import SpoCommand from '../../../base/SpoCommand.js';
3
+ import { globalOptionsZod } from '../../../../Command.js';
4
+ import { z } from 'zod';
5
+ import { zod } from '../../../../utils/zod.js';
6
+ import { validation } from '../../../../utils/validation.js';
7
+ import { formatting } from '../../../../utils/formatting.js';
8
+ import request from '../../../../request.js';
9
+ import { cli } from '../../../../cli/cli.js';
10
+ const options = globalOptionsZod
11
+ .extend({
12
+ webUrl: zod.alias('u', z.string()
13
+ .refine(url => validation.isValidSharePointUrl(url) === true, url => ({
14
+ message: `'${url}' is not a valid SharePoint URL.`
15
+ }))),
16
+ id: z.string()
17
+ .refine(id => validation.isValidGuid(id), id => ({
18
+ message: `'${id}' is not a valid GUID.`
19
+ })),
20
+ force: zod.alias('f', z.boolean().optional())
21
+ })
22
+ .strict();
23
+ class SpoSiteAlertRemoveCommand extends SpoCommand {
24
+ get name() {
25
+ return commands.SITE_ALERT_REMOVE;
26
+ }
27
+ get description() {
28
+ return 'Removes an alert from a SharePoint list';
29
+ }
30
+ get schema() {
31
+ return options;
32
+ }
33
+ async commandAction(logger, args) {
34
+ if (!args.options.force) {
35
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the alert with id '${args.options.id}' from site '${args.options.webUrl}'?` });
36
+ if (!result) {
37
+ return;
38
+ }
39
+ }
40
+ try {
41
+ if (this.verbose) {
42
+ await logger.logToStderr(`Removing alert with ID '${args.options.id}' from site '${args.options.webUrl}'...`);
43
+ }
44
+ const requestOptions = {
45
+ url: `${args.options.webUrl}/_api/web/Alerts/DeleteAlert('${formatting.encodeQueryParameter(args.options.id)}')`,
46
+ headers: {
47
+ accept: 'application/json;odata=nometadata'
48
+ },
49
+ responseType: 'json'
50
+ };
51
+ await request.delete(requestOptions);
52
+ }
53
+ catch (err) {
54
+ this.handleRejectedODataJsonPromise(err);
55
+ }
56
+ }
57
+ }
58
+ export default new SpoSiteAlertRemoveCommand();
59
+ //# sourceMappingURL=site-alert-remove.js.map
@@ -258,6 +258,7 @@ export default {
258
258
  SITE_ADMIN_LIST: `${prefix} site admin list`,
259
259
  SITE_ADMIN_REMOVE: `${prefix} site admin remove`,
260
260
  SITE_ALERT_LIST: `${prefix} site alert list`,
261
+ SITE_ALERT_REMOVE: `${prefix} site alert remove`,
261
262
  SITE_APPCATALOG_ADD: `${prefix} site appcatalog add`,
262
263
  SITE_APPCATALOG_LIST: `${prefix} site appcatalog list`,
263
264
  SITE_APPCATALOG_REMOVE: `${prefix} site appcatalog remove`,
@@ -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
@@ -21,7 +21,24 @@ m365 entra organization list [options]
21
21
 
22
22
  <Global />
23
23
 
24
- ## Remarks
24
+ ## Permissions
25
+
26
+ <Tabs>
27
+ <TabItem value="Delegated">
28
+
29
+ | Resource | Permissions |
30
+ |-----------------|----------------------------------|
31
+ | Microsoft Graph | User.Read, Organization.Read.All |
32
+
33
+ </TabItem>
34
+ <TabItem value="Application">
35
+
36
+ | Resource | Permissions |
37
+ |-----------------|----------------------------|
38
+ | Microsoft Graph | Organization.Read.All |
39
+
40
+ </TabItem>
41
+ </Tabs>
25
42
 
26
43
  :::info
27
44
 
@@ -151,4 +168,4 @@ m365 entra organization list --properties 'id,displayName,tenantType'
151
168
 
152
169
  ## More information
153
170
 
154
- - Organization: https://learn.microsoft.com/graph/api/organization-list
171
+ - Organization: https://learn.microsoft.com/graph/api/organization-list
@@ -33,6 +33,18 @@ m365 purview threatassessment add [options]
33
33
 
34
34
  <Global />
35
35
 
36
+ ## Permissions
37
+
38
+ <Tabs>
39
+ <TabItem value="Delegated">
40
+
41
+ | Resource | Permissions |
42
+ |-----------------|--------------------------------|
43
+ | Microsoft Graph | ThreatAssessment.ReadWrite.All |
44
+
45
+ </TabItem>
46
+ </Tabs>
47
+
36
48
  ## Remarks
37
49
 
38
50
  :::info
@@ -24,6 +24,25 @@ m365 purview threatassessment get [options]
24
24
 
25
25
  <Global />
26
26
 
27
+ ## Permissions
28
+
29
+ <Tabs>
30
+ <TabItem value="Delegated">
31
+
32
+ | Resource | Permissions |
33
+ |-----------------|--------------------------------|
34
+ | Microsoft Graph | ThreatAssessment.ReadWrite.All |
35
+
36
+ </TabItem>
37
+ <TabItem value="Application">
38
+
39
+ | Resource | Permissions |
40
+ |-----------------|--------------------------------|
41
+ | Microsoft Graph | ThreatAssessment.Read.All |
42
+
43
+ </TabItem>
44
+ </Tabs>
45
+
27
46
  ## Examples
28
47
 
29
48
  Get a threat assessment.
@@ -21,6 +21,25 @@ m365 purview threatassessment list [options]
21
21
 
22
22
  <Global />
23
23
 
24
+ ## Permissions
25
+
26
+ <Tabs>
27
+ <TabItem value="Delegated">
28
+
29
+ | Resource | Permissions |
30
+ |-----------------|--------------------------------|
31
+ | Microsoft Graph | ThreatAssessment.ReadWrite.All |
32
+
33
+ </TabItem>
34
+ <TabItem value="Application">
35
+
36
+ | Resource | Permissions |
37
+ |-----------------|--------------------------------|
38
+ | Microsoft Graph | ThreatAssessment.Read.All |
39
+
40
+ </TabItem>
41
+ </Tabs>
42
+
24
43
  ## Examples
25
44
 
26
45
  Get a list of threat assessments
@@ -0,0 +1,65 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo site alert remove
6
+
7
+ Removes an alert from a SharePoint list
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo site alert remove [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : The URL of the SharePoint site.
20
+
21
+ `--id <id>`
22
+ : The ID of the alert.
23
+
24
+ `-f, --force`
25
+ : Don't prompt for confirmation.
26
+ ```
27
+
28
+ <Global />
29
+
30
+ ## Permissions
31
+
32
+ <Tabs>
33
+ <TabItem value="Delegated">
34
+
35
+ | Resource | Permissions |
36
+ |------------|----------------------|
37
+ | SharePoint | AllSites.FullControl |
38
+
39
+ </TabItem>
40
+ <TabItem value="Application">
41
+
42
+ | Resource | Permissions |
43
+ |------------|-----------------------|
44
+ | SharePoint | Sites.FullControl.All |
45
+
46
+ </TabItem>
47
+ </Tabs>
48
+
49
+ ## Examples
50
+
51
+ Remove an alert by ID
52
+
53
+ ```sh
54
+ m365 spo site alert remove --webUrl https://contoso.sharepoint.com/sites/Marketing --id 7cbb4c8d-8e4d-4d2e-9c6f-3f1d8b2e6a0e
55
+ ```
56
+
57
+ Remove another alert without confirmation
58
+
59
+ ```sh
60
+ m365 spo site alert remove --webUrl https://contoso.sharepoint.com/sites/Marketing --id 2b6f1c8a-3e6a-4c7e-b8c0-7bf4c8e6d7f1 --force
61
+ ```
62
+
63
+ ## Response
64
+
65
+ The command won't return a response on success.