@pnp/cli-microsoft365 11.7.0-beta.71e4ac5 → 11.7.0-beta.837cfea

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 (86) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/m365/entra/commands/user/user-license-add.js +2 -1
  4. package/dist/m365/entra/commands/user/user-license-list.js +4 -9
  5. package/dist/m365/entra/commands/user/user-license-remove.js +2 -1
  6. package/dist/m365/outlook/commands/calendar/calendar-set.js +132 -0
  7. package/dist/m365/outlook/commands/calendargroup/calendargroup-get.js +114 -0
  8. package/dist/m365/outlook/commands/calendargroup/calendargroup-set.js +115 -0
  9. package/dist/m365/outlook/commands/event/event-cancel.js +103 -0
  10. package/dist/m365/outlook/commands/event/event-remove.js +104 -0
  11. package/dist/m365/outlook/commands.js +5 -0
  12. package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +643 -0
  13. package/dist/m365/spfx/commands/project/DeployWorkflow.js +2 -2
  14. package/dist/m365/spfx/commands/project/project-azuredevops-pipeline-add.js +13 -1
  15. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.23.0-rc.0.js +19 -0
  16. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  17. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +16 -1
  18. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002021_DEVDEP_rushstack_eslint_config.js +2 -2
  19. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002032_DEVDEP_typescript_eslint_parser.js +2 -2
  20. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +1 -1
  21. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015016_FILE_eslint_config_js.js +10 -0
  22. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.23.0-rc.0.js +84 -0
  23. package/dist/m365/spfx/commands/project/project-upgrade.js +12 -11
  24. package/dist/m365/spfx/commands/spfx-doctor.js +5 -631
  25. package/dist/m365/spo/commands/brandcenter/brandcenter-colors-list.js +59 -0
  26. package/dist/m365/spo/commands/propertybag/propertybag-set.js +3 -9
  27. package/dist/m365/spo/commands/tenant/tenant-settings-set.js +5 -1
  28. package/dist/m365/spo/commands.js +1 -0
  29. package/dist/m365/teams/commands/chat/chat-message-list.js +43 -4
  30. package/dist/request.js +0 -16
  31. package/dist/utils/entraApp.js +9 -2
  32. package/dist/utils/spfx.js +59 -0
  33. package/docs/docs/cmd/entra/license/license-list.mdx +19 -0
  34. package/docs/docs/cmd/entra/m365group/m365group-conversation-list.mdx +19 -0
  35. package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +19 -0
  36. package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +21 -0
  37. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +19 -0
  38. package/docs/docs/cmd/entra/m365group/m365group-user-remove.mdx +21 -0
  39. package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +21 -0
  40. package/docs/docs/cmd/entra/roledefinition/roledefinition-add.mdx +19 -0
  41. package/docs/docs/cmd/entra/roledefinition/roledefinition-get.mdx +19 -0
  42. package/docs/docs/cmd/entra/roledefinition/roledefinition-list.mdx +19 -0
  43. package/docs/docs/cmd/entra/roledefinition/roledefinition-remove.mdx +21 -0
  44. package/docs/docs/cmd/entra/roledefinition/roledefinition-set.mdx +21 -0
  45. package/docs/docs/cmd/entra/siteclassification/siteclassification-disable.mdx +21 -0
  46. package/docs/docs/cmd/entra/siteclassification/siteclassification-enable.mdx +21 -0
  47. package/docs/docs/cmd/entra/siteclassification/siteclassification-get.mdx +19 -0
  48. package/docs/docs/cmd/entra/siteclassification/siteclassification-set.mdx +20 -0
  49. package/docs/docs/cmd/entra/user/user-groupmembership-list.mdx +19 -0
  50. package/docs/docs/cmd/entra/user/user-guest-add.mdx +19 -0
  51. package/docs/docs/cmd/entra/user/user-license-add.mdx +19 -0
  52. package/docs/docs/cmd/entra/user/user-license-list.mdx +18 -1
  53. package/docs/docs/cmd/entra/user/user-license-remove.mdx +21 -0
  54. package/docs/docs/cmd/entra/user/user-password-validate.mdx +12 -0
  55. package/docs/docs/cmd/entra/user/user-recyclebinitem-clear.mdx +21 -0
  56. package/docs/docs/cmd/entra/user/user-recyclebinitem-list.mdx +19 -0
  57. package/docs/docs/cmd/entra/user/user-recyclebinitem-remove.mdx +21 -0
  58. package/docs/docs/cmd/entra/user/user-recyclebinitem-restore.mdx +19 -0
  59. package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +19 -0
  60. package/docs/docs/cmd/entra/user/user-session-revoke.mdx +21 -0
  61. package/docs/docs/cmd/entra/user/user-signin-list.mdx +19 -0
  62. package/docs/docs/cmd/exo/approleassignment/approleassignment-add.mdx +19 -0
  63. package/docs/docs/cmd/external/connection/connection-add.mdx +21 -0
  64. package/docs/docs/cmd/external/connection/connection-doctor.mdx +19 -0
  65. package/docs/docs/cmd/external/connection/connection-get.mdx +19 -0
  66. package/docs/docs/cmd/external/connection/connection-list.mdx +19 -0
  67. package/docs/docs/cmd/external/connection/connection-remove.mdx +21 -0
  68. package/docs/docs/cmd/external/connection/connection-schema-add.mdx +21 -0
  69. package/docs/docs/cmd/external/connection/connection-urltoitemresolver-add.mdx +21 -0
  70. package/docs/docs/cmd/external/item/item-add.mdx +19 -0
  71. package/docs/docs/cmd/file/convert/convert-pdf.mdx +21 -0
  72. package/docs/docs/cmd/file/file-add.mdx +21 -0
  73. package/docs/docs/cmd/file/file-copy.mdx +21 -0
  74. package/docs/docs/cmd/file/file-list.mdx +19 -0
  75. package/docs/docs/cmd/file/file-move.mdx +21 -0
  76. package/docs/docs/cmd/outlook/calendar/calendar-set.mdx +178 -0
  77. package/docs/docs/cmd/outlook/calendargroup/calendargroup-get.mdx +125 -0
  78. package/docs/docs/cmd/outlook/calendargroup/calendargroup-set.mdx +83 -0
  79. package/docs/docs/cmd/outlook/event/event-cancel.mdx +85 -0
  80. package/docs/docs/cmd/outlook/event/event-remove.mdx +85 -0
  81. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  82. package/docs/docs/cmd/spo/brandcenter/brandcenter-colors-list.mdx +115 -0
  83. package/docs/docs/cmd/spo/propertybag/propertybag-set.mdx +1 -1
  84. package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +3 -0
  85. package/docs/docs/cmd/teams/chat/chat-message-list.mdx +23 -2
  86. package/package.json +2 -1
@@ -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
@@ -0,0 +1,178 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # outlook calendar set
6
+
7
+ Updates a calendar for a user.
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 outlook calendar set [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-i, --id <id>`
19
+ : ID of the calendar.
20
+
21
+ `-n, --name [name]`
22
+ : New name of the calendar.
23
+
24
+ `--userId [userId]`
25
+ : ID of the user. Specify either `userId` or `userName`, but not both.
26
+
27
+ `--userName [userName]`
28
+ : UPN of the user. Specify either `userId` or `userName`, but not both.
29
+
30
+ `--calendarGroupId [calendarGroupId]`
31
+ : ID of the calendar group where the calendar belongs. Specify either `calendarGroupId` or `calendarGroupName`, but not both.
32
+
33
+ `--calendarGroupName [calendarGroupName]`
34
+ : Name of the calendar group where the calendar belongs. Specify either `calendarGroupId` or `calendarGroupName`, but not both.
35
+
36
+ `--color [color]`
37
+ : The color of the calendar in the UI. Allowed values: `auto`, `lightBlue`, `lightGreen`, `lightOrange`, `lightGray`, `lightYellow`, `lightTeal`, `lightPink`, `lightBrown`, `lightRed`, `maxColor`.
38
+
39
+ `--isDefault [isDefault]`
40
+ : Mark whether the calendar is the user's default calendar. Allowed values: `true`, `false`.
41
+ ```
42
+
43
+ <Global />
44
+
45
+ ## Permissions
46
+
47
+ <Tabs>
48
+ <TabItem value="Delegated">
49
+
50
+ | Resource | Permissions |
51
+ |-----------------|-------------------------------------------------|
52
+ | Microsoft Graph | Calendars.ReadWrite, Calendars.ReadWrite.Shared |
53
+
54
+ </TabItem>
55
+ <TabItem value="Application">
56
+
57
+ | Resource | Permissions |
58
+ |-----------------|---------------------|
59
+ | Microsoft Graph | Calendars.ReadWrite |
60
+
61
+ </TabItem>
62
+ </Tabs>
63
+
64
+ :::note
65
+
66
+ When using delegated permissions, specifying `userId` or `userName` for a different user requires the `Calendars.ReadWrite.Shared` scope. When the specified user matches the signed-in user, no shared scope is needed.
67
+
68
+ :::
69
+
70
+ ## Examples
71
+
72
+ Update the name of a calendar for the signed-in user.
73
+
74
+ ```sh
75
+ m365 outlook calendar set --id 'AAMkAGI2TQpZAAA=' --name 'Team planning'
76
+ ```
77
+
78
+ Change the color of a specific calendar for a user by UPN.
79
+
80
+ ```sh
81
+ m365 outlook calendar set --id 'AAMkAGI2TQpZAAA=' --userName 'john.doe@contoso.com' --color 'lightGreen'
82
+ ```
83
+
84
+ Mark a calendar as the default calendar for a user.
85
+
86
+ ```sh
87
+ m365 outlook calendar set --id 'AAMkAGI2TQpZAAA=' --userId 'b743445a-112c-4fda-9afd-05943f9c7b36' --isDefault true
88
+ ```
89
+
90
+ Update a calendar within a specific calendar group by name.
91
+
92
+ ```sh
93
+ m365 outlook calendar set --id 'AAMkAGI2TQpZAAA=' --name 'Team planning' --calendarGroupName 'My Calendars'
94
+ ```
95
+
96
+ ## Response
97
+
98
+ <Tabs>
99
+ <TabItem value="JSON">
100
+
101
+ ```json
102
+ {
103
+ "id": "AAMkAGI2TQpZAAA=",
104
+ "name": "Team planning",
105
+ "color": "auto",
106
+ "hexColor": "",
107
+ "isDefaultCalendar": false,
108
+ "changeKey": "DxYSthXJXEWwAQSYQnXvIgAAIxGttg==",
109
+ "canShare": true,
110
+ "canViewPrivateItems": true,
111
+ "canEdit": true,
112
+ "allowedOnlineMeetingProviders": [
113
+ "teamsForBusiness"
114
+ ],
115
+ "defaultOnlineMeetingProvider": "teamsForBusiness",
116
+ "isTallyingResponses": true,
117
+ "isRemovable": false,
118
+ "owner": {
119
+ "name": "John Doe",
120
+ "address": "john.doe@contoso.com"
121
+ }
122
+ }
123
+ ```
124
+
125
+ </TabItem>
126
+ <TabItem value="Text">
127
+
128
+ ```text
129
+ allowedOnlineMeetingProviders: ["teamsForBusiness"]
130
+ canEdit : true
131
+ canShare : true
132
+ canViewPrivateItems : true
133
+ changeKey : DxYSthXJXEWwAQSYQnXvIgAAIxGttg==
134
+ color : auto
135
+ defaultOnlineMeetingProvider : teamsForBusiness
136
+ hexColor :
137
+ id : AAMkAGI2TQpZAAA=
138
+ isDefaultCalendar : false
139
+ isRemovable : false
140
+ isTallyingResponses : true
141
+ name : Team planning
142
+ owner : {"name":"John Doe","address":"john.doe@contoso.com"}
143
+ ```
144
+
145
+ </TabItem>
146
+ <TabItem value="CSV">
147
+
148
+ ```csv
149
+ id,name,color,hexColor,isDefaultCalendar,changeKey,canShare,canViewPrivateItems,canEdit,defaultOnlineMeetingProvider,isTallyingResponses,isRemovable
150
+ AAMkAGI2TQpZAAA=,Team planning,auto,,false,DxYSthXJXEWwAQSYQnXvIgAAIxGttg==,true,true,true,teamsForBusiness,true,false
151
+ ```
152
+
153
+ </TabItem>
154
+ <TabItem value="Markdown">
155
+
156
+ ```md
157
+ # outlook calendar set
158
+
159
+ Date: 4/2/2026
160
+
161
+ Property | Value
162
+ ---------|-------
163
+ id | AAMkAGI2TQpZAAA=
164
+ name | Team planning
165
+ color | auto
166
+ hexColor |
167
+ isDefaultCalendar | false
168
+ changeKey | DxYSthXJXEWwAQSYQnXvIgAAIxGttg==
169
+ canShare | true
170
+ canViewPrivateItems | true
171
+ canEdit | true
172
+ defaultOnlineMeetingProvider | teamsForBusiness
173
+ isTallyingResponses | true
174
+ isRemovable | false
175
+ ```
176
+
177
+ </TabItem>
178
+ </Tabs>
@@ -0,0 +1,125 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # outlook calendargroup get
6
+
7
+ Retrieves a calendar group for a user.
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 outlook calendargroup get [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `--id [id]`
19
+ : ID of the calendar group. Specify either `id` or `name`, but not both.
20
+
21
+ `--name [name]`
22
+ : Name of the calendar group. Specify either `id` or `name`, but not both.
23
+
24
+ `--userId [userId]`
25
+ : ID of the user. Specify either `userId` or `userName`, but not both. This option is required when using application permissions.
26
+
27
+ `--userName [userName]`
28
+ : UPN of the user. Specify either `userId` or `userName`, but not both. This option is required when using application permissions.
29
+ ```
30
+
31
+ <Global />
32
+
33
+ ## Permissions
34
+
35
+ <Tabs>
36
+ <TabItem value="Delegated">
37
+
38
+ | Resource | Permissions |
39
+ |-----------------|------------------------------------------------------------|
40
+ | Microsoft Graph | Calendars.ReadBasic, Calendars.Read, Calendars.Read.Shared |
41
+
42
+ </TabItem>
43
+ <TabItem value="Application">
44
+
45
+ | Resource | Permissions |
46
+ |-----------------|-------------------------------------|
47
+ | Microsoft Graph | Calendars.ReadBasic, Calendars.Read |
48
+
49
+ </TabItem>
50
+ </Tabs>
51
+
52
+ :::note
53
+
54
+ When using delegated permissions, specifying `userId` or `userName` for a different user requires the `Calendars.Read.Shared` or `Calendars.ReadWrite.Shared` scope. When the specified user matches the signed-in user, no shared scope is needed.
55
+
56
+ :::
57
+
58
+ ## Examples
59
+
60
+ Get the calendar group specified by name for the signed-in user.
61
+
62
+ ```sh
63
+ m365 outlook calendargroup get --name "Personal Events"
64
+ ```
65
+
66
+ Get the calendar group specified by name for a user using application permissions.
67
+
68
+ ```sh
69
+ m365 outlook calendargroup get --name "Personal Events" --userId "44288f7d-7710-4293-8c8e-36f310ed2e6a"
70
+ ```
71
+
72
+ Get the calendar group specified by id for a user using application permissions.
73
+
74
+ ```sh
75
+ m365 outlook calendargroup get --id "AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAAABuC34AAA=" --userId "44288f7d-7710-4293-8c8e-36f310ed2e6a"
76
+ ```
77
+
78
+ ## Response
79
+
80
+ <Tabs>
81
+ <TabItem value="JSON">
82
+
83
+ ```json
84
+ {
85
+ "id": "AAMkAGE0MGM1Y2M5LWEzMmUtNGVlNy05MjRlLTk0YmYyY2I5NTM3ZAAuAAAAAAC_0WfqSjt_SqLtNkuO-bj1AQAbfYq5lmBxQ6a4t1fGbeYAAAAAAEOAAA=",
86
+ "name": "My Calendars",
87
+ "changeKey": "nfZyf7VcrEKLNoU37KWlkQAAA0x0+w==",
88
+ "classId": "0006f0b7-0000-0000-c000-000000000046"
89
+ }
90
+ ```
91
+
92
+ </TabItem>
93
+ <TabItem value="Text">
94
+
95
+ ```text
96
+ id name
97
+ ----------------------------------------------------------------------------------------------------------------------- ----------------
98
+ AAMkAGE0MGM1Y2M5LWEzMmUtNGVlNy05MjRlLTk0YmYyY2I5NTM3ZAAuAAAAAAC_0WfqSjt_SqLtNkuO-bj1AQAbfYq5lmBxQ6a4t1fGbeYAAAAAAEOAAA= My Calendars
99
+ ```
100
+
101
+ </TabItem>
102
+ <TabItem value="CSV">
103
+
104
+ ```csv
105
+ id,name
106
+ AAMkAGE0MGM1Y2M5LWEzMmUtNGVlNy05MjRlLTk0YmYyY2I5NTM3ZAAuAAAAAAC_0WfqSjt_SqLtNkuO-bj1AQAbfYq5lmBxQ6a4t1fGbeYAAAAAAEOAAA=,My Calendars
107
+ ```
108
+
109
+ </TabItem>
110
+ <TabItem value="Markdown">
111
+
112
+ ```md
113
+ # outlook calendargroup get
114
+
115
+ Date: 3/20/2026
116
+
117
+ Property | Value
118
+ ---------|-------
119
+ id | AAMkAGE0MGM1Y2M5LWEzMmUtNGVlNy05MjRlLTk0YmYyY2I5NTM3ZAAuAAAAAAC_0WfqSjt_SqLtNkuO-bj1AQAbfYq5lmBxQ6a4t1fGbeYAAAAAAEOAAA=
120
+ name | My Calendars
121
+ ```
122
+
123
+ </TabItem>
124
+ </Tabs>
125
+
@@ -0,0 +1,83 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # outlook calendargroup set
6
+
7
+ Updates a calendar group for a user.
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 outlook calendargroup set [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `--id [id]`
19
+ : ID of the calendar group. Specify either `id` or `name`, but not both.
20
+
21
+ `--name [name]`
22
+ : Name of the calendar group. Specify either `id` or `name`, but not both.
23
+
24
+ `--userId [userId]`
25
+ : ID of the user. Specify either `userId` or `userName`, but not both.
26
+
27
+ `--userName [userName]`
28
+ : UPN of the user. Specify either `userId` or `userName`, but not both.
29
+
30
+ `--newName <newName>`
31
+ : New name of the calendar group.
32
+ ```
33
+
34
+ <Global />
35
+
36
+ ## Permissions
37
+
38
+ <Tabs>
39
+ <TabItem value="Delegated">
40
+
41
+ | Resource | Permissions |
42
+ |-----------------|----------------------------------------|
43
+ | Microsoft Graph | Calendars.ReadWrite, Calendars.ReadWrite.Shared |
44
+
45
+ </TabItem>
46
+ <TabItem value="Application">
47
+
48
+ | Resource | Permissions |
49
+ |-----------------|----------------------|
50
+ | Microsoft Graph | Calendars.ReadWrite |
51
+
52
+ </TabItem>
53
+ </Tabs>
54
+
55
+ :::note
56
+
57
+ When using delegated permissions, specifying `userId` or `userName` for a different user requires the `Calendars.ReadWrite.Shared` scope. When the specified user matches the signed-in user, no shared scope is needed.
58
+
59
+ :::
60
+
61
+ ## Examples
62
+
63
+ Update the calendar group specified by name for the current user.
64
+
65
+ ```sh
66
+ m365 outlook calendargroup set --name "Personal Evts" --newName "Personal Events"
67
+ ```
68
+
69
+ Update the calendar group specified by id for a user.
70
+
71
+ ```sh
72
+ m365 outlook calendargroup set --id "AAMkADIxYjJiYm" --newName "Personal Events" --userId "44288f7d-7710-4293-8c8e-36f310ed2e6a"
73
+ ```
74
+
75
+ Update the calendar group specified by name for a user specified by email.
76
+
77
+ ```sh
78
+ m365 outlook calendargroup set --name "Personal Evts" --newName "Personal Events" --userName "john.doe@contoso.com"
79
+ ```
80
+
81
+ ## Response
82
+
83
+ The command won't return a response on success.