@pnp/cli-microsoft365 11.7.0-beta.b67a258 → 11.7.0-beta.ba78c1f

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 (112) hide show
  1. package/.devproxy/api-specs/sharepoint.yaml +53 -0
  2. package/allCommands.json +1 -1
  3. package/allCommandsFull.json +1 -1
  4. package/dist/config.js +1 -0
  5. package/dist/m365/context/commands/option/option-list.js +6 -1
  6. package/dist/m365/entra/commands/resourcenamespace/resourcenamespace-list.js +6 -0
  7. package/dist/m365/entra/commands/user/user-license-add.js +2 -1
  8. package/dist/m365/entra/commands/user/user-license-list.js +4 -9
  9. package/dist/m365/entra/commands/user/user-license-remove.js +2 -1
  10. package/dist/m365/external/commands/connection/connection-list.js +6 -0
  11. package/dist/m365/outlook/commands/calendar/calendar-add.js +85 -0
  12. package/dist/m365/outlook/commands/calendar/calendar-get.js +71 -0
  13. package/dist/m365/outlook/commands/calendar/calendar-remove.js +100 -0
  14. package/dist/m365/outlook/commands/calendar/calendar-set.js +132 -0
  15. package/dist/m365/outlook/commands/calendargroup/calendargroup-get.js +114 -0
  16. package/dist/m365/outlook/commands/calendargroup/calendargroup-set.js +115 -0
  17. package/dist/m365/outlook/commands/event/event-cancel.js +103 -0
  18. package/dist/m365/outlook/commands/event/event-list.js +115 -0
  19. package/dist/m365/outlook/commands/event/event-remove.js +104 -0
  20. package/dist/m365/outlook/commands.js +9 -0
  21. package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +643 -0
  22. package/dist/m365/spfx/commands/project/DeployWorkflow.js +2 -2
  23. package/dist/m365/spfx/commands/project/project-azuredevops-pipeline-add.js +13 -1
  24. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.23.0-rc.0.js +19 -0
  25. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  26. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +16 -1
  27. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002021_DEVDEP_rushstack_eslint_config.js +2 -2
  28. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002032_DEVDEP_typescript_eslint_parser.js +2 -2
  29. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +1 -1
  30. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015016_FILE_eslint_config_js.js +10 -0
  31. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.23.0-rc.0.js +84 -0
  32. package/dist/m365/spfx/commands/project/project-upgrade.js +12 -11
  33. package/dist/m365/spfx/commands/spfx-doctor.js +5 -631
  34. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.js +13 -1
  35. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +24 -3
  36. package/dist/m365/spo/commands/brandcenter/brandcenter-colors-list.js +59 -0
  37. package/dist/m365/spo/commands/file/file-archive.js +83 -0
  38. package/dist/m365/spo/commands/propertybag/propertybag-set.js +3 -9
  39. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-add.js +20 -0
  40. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +27 -2
  41. package/dist/m365/spo/commands/tenant/tenant-settings-set.js +5 -1
  42. package/dist/m365/spo/commands.js +2 -0
  43. package/dist/m365/teams/commands/chat/chat-message-list.js +43 -4
  44. package/dist/request.js +0 -16
  45. package/dist/utils/calendar.js +37 -0
  46. package/dist/utils/calendarGroup.js +22 -0
  47. package/dist/utils/entraApp.js +9 -2
  48. package/dist/utils/spfx.js +59 -0
  49. package/docs/docs/cmd/entra/license/license-list.mdx +19 -0
  50. package/docs/docs/cmd/entra/m365group/m365group-conversation-list.mdx +19 -0
  51. package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +19 -0
  52. package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +21 -0
  53. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +19 -0
  54. package/docs/docs/cmd/entra/m365group/m365group-user-remove.mdx +21 -0
  55. package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +21 -0
  56. package/docs/docs/cmd/entra/roledefinition/roledefinition-add.mdx +19 -0
  57. package/docs/docs/cmd/entra/roledefinition/roledefinition-get.mdx +19 -0
  58. package/docs/docs/cmd/entra/roledefinition/roledefinition-list.mdx +19 -0
  59. package/docs/docs/cmd/entra/roledefinition/roledefinition-remove.mdx +21 -0
  60. package/docs/docs/cmd/entra/roledefinition/roledefinition-set.mdx +21 -0
  61. package/docs/docs/cmd/entra/siteclassification/siteclassification-disable.mdx +21 -0
  62. package/docs/docs/cmd/entra/siteclassification/siteclassification-enable.mdx +21 -0
  63. package/docs/docs/cmd/entra/siteclassification/siteclassification-get.mdx +19 -0
  64. package/docs/docs/cmd/entra/siteclassification/siteclassification-set.mdx +20 -0
  65. package/docs/docs/cmd/entra/user/user-groupmembership-list.mdx +19 -0
  66. package/docs/docs/cmd/entra/user/user-guest-add.mdx +19 -0
  67. package/docs/docs/cmd/entra/user/user-license-add.mdx +19 -0
  68. package/docs/docs/cmd/entra/user/user-license-list.mdx +18 -1
  69. package/docs/docs/cmd/entra/user/user-license-remove.mdx +21 -0
  70. package/docs/docs/cmd/entra/user/user-password-validate.mdx +12 -0
  71. package/docs/docs/cmd/entra/user/user-recyclebinitem-clear.mdx +21 -0
  72. package/docs/docs/cmd/entra/user/user-recyclebinitem-list.mdx +19 -0
  73. package/docs/docs/cmd/entra/user/user-recyclebinitem-remove.mdx +21 -0
  74. package/docs/docs/cmd/entra/user/user-recyclebinitem-restore.mdx +19 -0
  75. package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +19 -0
  76. package/docs/docs/cmd/entra/user/user-session-revoke.mdx +21 -0
  77. package/docs/docs/cmd/entra/user/user-signin-list.mdx +19 -0
  78. package/docs/docs/cmd/exo/approleassignment/approleassignment-add.mdx +19 -0
  79. package/docs/docs/cmd/external/connection/connection-add.mdx +21 -0
  80. package/docs/docs/cmd/external/connection/connection-doctor.mdx +19 -0
  81. package/docs/docs/cmd/external/connection/connection-get.mdx +19 -0
  82. package/docs/docs/cmd/external/connection/connection-list.mdx +19 -0
  83. package/docs/docs/cmd/external/connection/connection-remove.mdx +21 -0
  84. package/docs/docs/cmd/external/connection/connection-schema-add.mdx +21 -0
  85. package/docs/docs/cmd/external/connection/connection-urltoitemresolver-add.mdx +21 -0
  86. package/docs/docs/cmd/external/item/item-add.mdx +19 -0
  87. package/docs/docs/cmd/file/convert/convert-pdf.mdx +21 -0
  88. package/docs/docs/cmd/file/file-add.mdx +21 -0
  89. package/docs/docs/cmd/file/file-copy.mdx +21 -0
  90. package/docs/docs/cmd/file/file-list.mdx +19 -0
  91. package/docs/docs/cmd/file/file-move.mdx +21 -0
  92. package/docs/docs/cmd/outlook/calendar/calendar-add.mdx +165 -0
  93. package/docs/docs/cmd/outlook/calendar/calendar-get.mdx +165 -0
  94. package/docs/docs/cmd/outlook/calendar/calendar-remove.mdx +86 -0
  95. package/docs/docs/cmd/outlook/calendar/calendar-set.mdx +178 -0
  96. package/docs/docs/cmd/outlook/calendargroup/calendargroup-get.mdx +125 -0
  97. package/docs/docs/cmd/outlook/calendargroup/calendargroup-set.mdx +83 -0
  98. package/docs/docs/cmd/outlook/event/event-cancel.mdx +85 -0
  99. package/docs/docs/cmd/outlook/event/event-list.mdx +245 -0
  100. package/docs/docs/cmd/outlook/event/event-remove.mdx +85 -0
  101. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  102. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +14 -11
  103. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +9 -6
  104. package/docs/docs/cmd/spo/brandcenter/brandcenter-colors-list.mdx +115 -0
  105. package/docs/docs/cmd/spo/file/file-archive.mdx +68 -0
  106. package/docs/docs/cmd/spo/propertybag/propertybag-set.mdx +1 -1
  107. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +13 -10
  108. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +7 -4
  109. package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +3 -0
  110. package/docs/docs/cmd/teams/chat/chat-message-list.mdx +23 -2
  111. package/npm-shrinkwrap.json +0 -7
  112. package/package.json +2 -1
@@ -29,6 +29,18 @@ This command is based on an API that is currently in preview and is subject to c
29
29
 
30
30
  :::
31
31
 
32
+ ## Permissions
33
+
34
+ <Tabs>
35
+ <TabItem value="Delegated">
36
+
37
+ | Resource | Permissions |
38
+ |-----------------|----------------|
39
+ | Microsoft Graph | User.ReadWrite |
40
+
41
+ </TabItem>
42
+ </Tabs>
43
+
32
44
  ## Examples
33
45
 
34
46
  Validate password _cli365P@ssW0rd_ against the organization's password validation policy.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # entra user recyclebinitem clear
4
6
 
@@ -33,6 +35,25 @@ After running this command, it may take a minute before all deleted users are ef
33
35
 
34
36
  :::
35
37
 
38
+ ## Permissions
39
+
40
+ <Tabs>
41
+ <TabItem value="Delegated">
42
+
43
+ | Resource | Permissions |
44
+ |-----------------|------------------------|
45
+ | Microsoft Graph | User.DeleteRestore.All |
46
+
47
+ </TabItem>
48
+ <TabItem value="Application">
49
+
50
+ | Resource | Permissions |
51
+ |-----------------|------------------------|
52
+ | Microsoft Graph | User.DeleteRestore.All |
53
+
54
+ </TabItem>
55
+ </Tabs>
56
+
36
57
  ## Examples
37
58
 
38
59
  Removes all users from the tenant recycle bin.
@@ -16,6 +16,25 @@ m365 entra user recyclebinitem list [options]
16
16
 
17
17
  <Global />
18
18
 
19
+ ## Permissions
20
+
21
+ <Tabs>
22
+ <TabItem value="Delegated">
23
+
24
+ | Resource | Permissions |
25
+ |-----------------|---------------|
26
+ | Microsoft Graph | User.Read.All |
27
+
28
+ </TabItem>
29
+ <TabItem value="Application">
30
+
31
+ | Resource | Permissions |
32
+ |-----------------|---------------|
33
+ | Microsoft Graph | User.Read.All |
34
+
35
+ </TabItem>
36
+ </Tabs>
37
+
19
38
  ## Examples
20
39
 
21
40
  List all removed users.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # entra user recyclebinitem remove
4
6
 
@@ -36,6 +38,25 @@ After running this command, it may take a minute before the deleted user is effe
36
38
 
37
39
  :::
38
40
 
41
+ ## Permissions
42
+
43
+ <Tabs>
44
+ <TabItem value="Delegated">
45
+
46
+ | Resource | Permissions |
47
+ |-----------------|------------------------|
48
+ | Microsoft Graph | User.DeleteRestore.All |
49
+
50
+ </TabItem>
51
+ <TabItem value="Application">
52
+
53
+ | Resource | Permissions |
54
+ |-----------------|------------------------|
55
+ | Microsoft Graph | User.DeleteRestore.All |
56
+
57
+ </TabItem>
58
+ </Tabs>
59
+
39
60
  ## Examples
40
61
 
41
62
  Removes a specific user from the recycle bin.
@@ -35,6 +35,25 @@ After running this command, it may take a minute before the user will reappear i
35
35
 
36
36
  :::
37
37
 
38
+ ## Permissions
39
+
40
+ <Tabs>
41
+ <TabItem value="Delegated">
42
+
43
+ | Resource | Permissions |
44
+ |-----------------|------------------------|
45
+ | Microsoft Graph | User.DeleteRestore.All |
46
+
47
+ </TabItem>
48
+ <TabItem value="Application">
49
+
50
+ | Resource | Permissions |
51
+ |-----------------|------------------------|
52
+ | Microsoft Graph | User.DeleteRestore.All |
53
+
54
+ </TabItem>
55
+ </Tabs>
56
+
38
57
  ## Examples
39
58
 
40
59
  Restore user from the recycle bin.
@@ -77,6 +77,25 @@ When multiple values are specified for `--registeredMethods` option, the command
77
77
 
78
78
  :::
79
79
 
80
+ ## Permissions
81
+
82
+ <Tabs>
83
+ <TabItem value="Delegated">
84
+
85
+ | Resource | Permissions |
86
+ |-----------------|-------------------|
87
+ | Microsoft Graph | AuditLog.Read.All |
88
+
89
+ </TabItem>
90
+ <TabItem value="Application">
91
+
92
+ | Resource | Permissions |
93
+ |-----------------|-------------------|
94
+ | Microsoft Graph | AuditLog.Read.All |
95
+
96
+ </TabItem>
97
+ </Tabs>
98
+
80
99
  ## Examples
81
100
 
82
101
  Retrieve registration details for all users.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # entra user session revoke
4
6
 
@@ -40,6 +42,25 @@ This API doesn't revoke sign-in sessions for external users, because external us
40
42
 
41
43
  :::
42
44
 
45
+ ## Permissions
46
+
47
+ <Tabs>
48
+ <TabItem value="Delegated">
49
+
50
+ | Resource | Permissions |
51
+ |-----------------|-------------------------|
52
+ | Microsoft Graph | User.RevokeSessions.All |
53
+
54
+ </TabItem>
55
+ <TabItem value="Application">
56
+
57
+ | Resource | Permissions |
58
+ |-----------------|-------------------------|
59
+ | Microsoft Graph | User.RevokeSessions.All |
60
+
61
+ </TabItem>
62
+ </Tabs>
63
+
43
64
  ## Examples
44
65
 
45
66
  Revoke sign-in sessions of a user specified by id
@@ -30,6 +30,25 @@ m365 entra user signin list [options]
30
30
 
31
31
  <Global />
32
32
 
33
+ ## Permissions
34
+
35
+ <Tabs>
36
+ <TabItem value="Delegated">
37
+
38
+ | Resource | Permissions |
39
+ |-----------------|-------------------|
40
+ | Microsoft Graph | AuditLog.Read.All |
41
+
42
+ </TabItem>
43
+ <TabItem value="Application">
44
+
45
+ | Resource | Permissions |
46
+ |-----------------|-------------------|
47
+ | Microsoft Graph | AuditLog.Read.All |
48
+
49
+ </TabItem>
50
+ </Tabs>
51
+
33
52
  ## Examples
34
53
 
35
54
  Get all user's sign-ins in your tenant.
@@ -65,6 +65,25 @@ To use this command you must be at least **Privileged Role Administrator**.
65
65
 
66
66
  :::
67
67
 
68
+ ## Permissions
69
+
70
+ <Tabs>
71
+ <TabItem value="Delegated">
72
+
73
+ | Resource | Permissions |
74
+ |-----------------|------------------------------|
75
+ | Microsoft Graph | RoleManagement.ReadWrite.Exchange |
76
+
77
+ </TabItem>
78
+ <TabItem value="Application">
79
+
80
+ | Resource | Permissions |
81
+ |-----------------|------------------------------|
82
+ | Microsoft Graph | RoleManagement.ReadWrite.Exchange |
83
+
84
+ </TabItem>
85
+ </Tabs>
86
+
68
87
  ## Examples
69
88
 
70
89
  Assign a role specified by id to a service principal specified by id and scope the assignment to the whole tenant
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # external connection add
4
6
 
@@ -38,6 +40,25 @@ m365 search externalconnection add
38
40
 
39
41
  The `id` must be at least 3 and no more than 32 characters long. It can contain only alphanumeric characters, can't begin with _Microsoft_ and can be any of the following values: *None, Directory, Exchange, ExchangeArchive, LinkedIn, Mailbox, OneDriveBusiness, SharePoint, Teams, Yammer, Connectors, TaskFabric, PowerBI, Assistant, TopicEngine, MSFT_All_Connectors*.
40
42
 
43
+ ## Permissions
44
+
45
+ <Tabs>
46
+ <TabItem value="Delegated">
47
+
48
+ | Resource | Permissions |
49
+ |-----------------|--------------------------------------|
50
+ | Microsoft Graph | ExternalConnection.ReadWrite.OwnedBy |
51
+
52
+ </TabItem>
53
+ <TabItem value="Application">
54
+
55
+ | Resource | Permissions |
56
+ |-----------------|--------------------------------------|
57
+ | Microsoft Graph | ExternalConnection.ReadWrite.OwnedBy |
58
+
59
+ </TabItem>
60
+ </Tabs>
61
+
41
62
  ## Examples
42
63
 
43
64
  Adds a new external connection with name and description of test app.
@@ -49,6 +49,25 @@ Some checks must be done manually, because there are no APIs available to verify
49
49
 
50
50
  When you check the compatibility with all UXs, and there are multiple checks with the same ID, the command will use the first matching check, following the order listed above.
51
51
 
52
+ ## Permissions
53
+
54
+ <Tabs>
55
+ <TabItem value="Delegated">
56
+
57
+ | Resource | Permissions |
58
+ |-----------------|----------------------------------------------------------------------|
59
+ | Microsoft Graph | ExternalConnection.ReadWrite.OwnedBy, ExternalItem.ReadWrite.OwnedBy |
60
+
61
+ </TabItem>
62
+ <TabItem value="Application">
63
+
64
+ | Resource | Permissions |
65
+ |-----------------|----------------------------------------------------------------------|
66
+ | Microsoft Graph | ExternalConnection.ReadWrite.OwnedBy, ExternalItem.ReadWrite.OwnedBy |
67
+
68
+ </TabItem>
69
+ </Tabs>
70
+
52
71
  ## Examples
53
72
 
54
73
  Checks if the external connection with the specified ID is correctly configured for use with Copilot for Microsoft 365.
@@ -30,6 +30,25 @@ m365 search externalconnection get
30
30
 
31
31
  <Global />
32
32
 
33
+ ## Permissions
34
+
35
+ <Tabs>
36
+ <TabItem value="Delegated">
37
+
38
+ | Resource | Permissions |
39
+ |-----------------|--------------------------------------|
40
+ | Microsoft Graph | ExternalConnection.ReadWrite.OwnedBy |
41
+
42
+ </TabItem>
43
+ <TabItem value="Application">
44
+
45
+ | Resource | Permissions |
46
+ |-----------------|--------------------------------------|
47
+ | Microsoft Graph | ExternalConnection.ReadWrite.OwnedBy |
48
+
49
+ </TabItem>
50
+ </Tabs>
51
+
33
52
  ## Examples
34
53
 
35
54
  Get the External Connection by its id.
@@ -22,6 +22,25 @@ m365 search externalconnection list
22
22
 
23
23
  <Global />
24
24
 
25
+ ## Permissions
26
+
27
+ <Tabs>
28
+ <TabItem value="Delegated">
29
+
30
+ | Resource | Permissions |
31
+ |-----------------|--------------------------------------|
32
+ | Microsoft Graph | ExternalConnection.ReadWrite.OwnedBy |
33
+
34
+ </TabItem>
35
+ <TabItem value="Application">
36
+
37
+ | Resource | Permissions |
38
+ |-----------------|--------------------------------------|
39
+ | Microsoft Graph | ExternalConnection.ReadWrite.OwnedBy |
40
+
41
+ </TabItem>
42
+ </Tabs>
43
+
25
44
  ## Examples
26
45
 
27
46
  List external connections.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # external connection remove
4
6
 
@@ -35,6 +37,25 @@ m365 search externalconnection remove
35
37
 
36
38
  If the command finds multiple external connections with the specified name, it will prompt you to disambiguate which external connection it should remove, listing the discovered IDs.
37
39
 
40
+ ## Permissions
41
+
42
+ <Tabs>
43
+ <TabItem value="Delegated">
44
+
45
+ | Resource | Permissions |
46
+ |-----------------|--------------------------------------|
47
+ | Microsoft Graph | ExternalConnection.ReadWrite.OwnedBy |
48
+
49
+ </TabItem>
50
+ <TabItem value="Application">
51
+
52
+ | Resource | Permissions |
53
+ |-----------------|--------------------------------------|
54
+ | Microsoft Graph | ExternalConnection.ReadWrite.OwnedBy |
55
+
56
+ </TabItem>
57
+ </Tabs>
58
+
38
59
  ## Examples
39
60
 
40
61
  Removes external connection by its id.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # external connection schema add
4
6
 
@@ -31,6 +33,25 @@ m365 search externalconnection schema add
31
33
 
32
34
  <Global />
33
35
 
36
+ ## Permissions
37
+
38
+ <Tabs>
39
+ <TabItem value="Delegated">
40
+
41
+ | Resource | Permissions |
42
+ |-----------------|--------------------------------------|
43
+ | Microsoft Graph | ExternalConnection.ReadWrite.OwnedBy |
44
+
45
+ </TabItem>
46
+ <TabItem value="Application">
47
+
48
+ | Resource | Permissions |
49
+ |-----------------|--------------------------------------|
50
+ | Microsoft Graph | ExternalConnection.ReadWrite.OwnedBy |
51
+
52
+ </TabItem>
53
+ </Tabs>
54
+
34
55
  ## Examples
35
56
 
36
57
  Adds a new schema to a specific external connection.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # external connection urltoitemresolver add
4
6
 
@@ -30,6 +32,25 @@ m365 external connection urltoitemresolver add [options]
30
32
  ```
31
33
  <Global />
32
34
 
35
+ ## Permissions
36
+
37
+ <Tabs>
38
+ <TabItem value="Delegated">
39
+
40
+ | Resource | Permissions |
41
+ |-----------------|--------------------------------------|
42
+ | Microsoft Graph | ExternalConnection.ReadWrite.OwnedBy |
43
+
44
+ </TabItem>
45
+ <TabItem value="Application">
46
+
47
+ | Resource | Permissions |
48
+ |-----------------|--------------------------------------|
49
+ | Microsoft Graph | ExternalConnection.ReadWrite.OwnedBy |
50
+
51
+ </TabItem>
52
+ </Tabs>
53
+
33
54
  ## Examples
34
55
 
35
56
  Adds a URL to item resolver to an existing connection
@@ -58,6 +58,25 @@ You can use the following types:
58
58
 
59
59
  For more information about using these options, see the Microsoft Graph API documentation and documentation about Microsoft Graph connectors.
60
60
 
61
+ ## Permissions
62
+
63
+ <Tabs>
64
+ <TabItem value="Delegated">
65
+
66
+ | Resource | Permissions |
67
+ |-----------------|--------------------------------|
68
+ | Microsoft Graph | ExternalItem.ReadWrite.OwnedBy |
69
+
70
+ </TabItem>
71
+ <TabItem value="Application">
72
+
73
+ | Resource | Permissions |
74
+ |-----------------|--------------------------------|
75
+ | Microsoft Graph | ExternalItem.ReadWrite.OwnedBy |
76
+
77
+ </TabItem>
78
+ </Tabs>
79
+
61
80
  ## Examples
62
81
 
63
82
  Creates an external item with simple properties that everyone is allowed to access
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # file convert pdf
4
6
 
@@ -30,6 +32,25 @@ If you choose to store the converted file in a document library, CLI will store
30
32
 
31
33
  If the conversion process fails, CLI will attempt to clean up the temporary files (the source file uploaded to your tenant, if you're converting a local file to PDF, and the converted PDF file on your disk if you chose to upload the converted file to your tenant). If removing the temporary files fails, you will need to clean them up yourself. CLI will list the URL and/or path of the files to remove.
32
34
 
35
+ ## Permissions
36
+
37
+ <Tabs>
38
+ <TabItem value="Delegated">
39
+
40
+ | Resource | Permissions |
41
+ |-----------------|---------------------------------|
42
+ | Microsoft Graph | Files.ReadWrite, Sites.Read.All |
43
+
44
+ </TabItem>
45
+ <TabItem value="Application">
46
+
47
+ | Resource | Permissions |
48
+ |-----------------|-------------------------------------|
49
+ | Microsoft Graph | Files.ReadWrite.All, Sites.Read.All |
50
+
51
+ </TabItem>
52
+ </Tabs>
53
+
33
54
  ## Examples
34
55
 
35
56
  Converts local file to PDF and stores the converted file on the disk
@@ -1,4 +1,6 @@
1
1
  import Global from '../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # file add
4
6
 
@@ -31,6 +33,25 @@ The `folderUrl` must be an absolute URL to the document library where the file s
31
33
 
32
34
  By default, the `file add` command will automatically lookup the ID of the site where you want to upload the file based on the specified `folderUrl`. It will do this, by breaking the URL into chunks and incrementally calling Microsoft Graph to retrieve site information. This is necessary, because there is no other way looking at the URL to distinguish where the site URL ends and the document library URL starts. If you want to speed up uploading files, or you use resource-specific consent and your Microsoft Entra app only has access to the specific site, you can use the `siteUrl` option to specify the URL of the site yourself.
33
35
 
36
+ ## Permissions
37
+
38
+ <Tabs>
39
+ <TabItem value="Delegated">
40
+
41
+ | Resource | Permissions |
42
+ |-----------------|----------------------------------|
43
+ | Microsoft Graph | Files.ReadWrite, Sites.ReadWrite.All |
44
+
45
+ </TabItem>
46
+ <TabItem value="Application">
47
+
48
+ | Resource | Permissions |
49
+ |-----------------|---------------------|
50
+ | Microsoft Graph | Sites.ReadWrite.All |
51
+
52
+ </TabItem>
53
+ </Tabs>
54
+
34
55
  ## Examples
35
56
 
36
57
  Uploads file from the current folder to the root folder of a document library in the root site collection
@@ -1,4 +1,6 @@
1
1
  import Global from '../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # file copy
4
6
 
@@ -31,6 +33,25 @@ m365 file copy [options]
31
33
 
32
34
  <Global />
33
35
 
36
+ ## Permissions
37
+
38
+ <Tabs>
39
+ <TabItem value="Delegated">
40
+
41
+ | Resource | Permissions |
42
+ |-----------------|---------------------|
43
+ | Microsoft Graph | Sites.ReadWrite.All |
44
+
45
+ </TabItem>
46
+ <TabItem value="Application">
47
+
48
+ | Resource | Permissions |
49
+ |-----------------|---------------------|
50
+ | Microsoft Graph | Sites.ReadWrite.All |
51
+
52
+ </TabItem>
53
+ </Tabs>
54
+
34
55
  ## Examples
35
56
 
36
57
  Copy a file by server-relative URL to a document library in another site collection with server relative URL
@@ -31,6 +31,25 @@ m365 file list [options]
31
31
 
32
32
  This command is an improved version of the `spo file list` command. The main difference between the two commands is, that `file list` uses Microsoft Graph and properly supports retrieving files from large folders. Because `file list` uses Microsoft Graph and `spo file list` uses SharePoint REST APIs, the data returned by both commands is different.
33
33
 
34
+ ## Permissions
35
+
36
+ <Tabs>
37
+ <TabItem value="Delegated">
38
+
39
+ | Resource | Permissions |
40
+ |-----------------|----------------------------|
41
+ | Microsoft Graph | Files.Read, Sites.Read.All |
42
+
43
+ </TabItem>
44
+ <TabItem value="Application">
45
+
46
+ | Resource | Permissions |
47
+ |-----------------|--------------------------------|
48
+ | Microsoft Graph | Files.Read.All, Sites.Read.All |
49
+
50
+ </TabItem>
51
+ </Tabs>
52
+
34
53
  ## Examples
35
54
 
36
55
  Return all files from the folder _Shared Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
@@ -1,4 +1,6 @@
1
1
  import Global from '../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # file move
4
6
 
@@ -36,6 +38,25 @@ m365 file move [options]
36
38
  - If the source and target locations are within the same document library or drive, the command will utilize the Move DriveItem API, preserving the version history of the file.
37
39
  - If the source and target locations are in different document libraries or drives, the command will use a copy-and-delete combination to move the file. Please note that in this case, version history will not be retained.
38
40
 
41
+ ## Permissions
42
+
43
+ <Tabs>
44
+ <TabItem value="Delegated">
45
+
46
+ | Resource | Permissions |
47
+ |-----------------|---------------------|
48
+ | Microsoft Graph | Sites.ReadWrite.All |
49
+
50
+ </TabItem>
51
+ <TabItem value="Application">
52
+
53
+ | Resource | Permissions |
54
+ |-----------------|---------------------|
55
+ | Microsoft Graph | Sites.ReadWrite.All |
56
+
57
+ </TabItem>
58
+ </Tabs>
59
+
39
60
  ## Examples
40
61
 
41
62
  Move a file by server-relative URL to a folder in the same document library