@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
@@ -0,0 +1,165 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # outlook calendar add
6
+
7
+ Creates a new calendar for a user
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 outlook calendar add [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `--userId [userId]`
19
+ : ID of the user. Specify either `userId` or `userName`, but not both.
20
+
21
+ `--userName [userName]`
22
+ : UPN of the user. Specify either `userId` or `userName`, but not both.
23
+
24
+ `--name <name>`
25
+ : Name of the calendar.
26
+
27
+ `--calendarGroupId [calendarGroupId]`
28
+ : Id of the group where the calendar will belong. Specify either `calendarGroupId` or `calendarGroupName`, but not both.
29
+
30
+ `--calendarGroupName [calendarGroupName]`
31
+ : Name of the group where the calendar will belong. Specify either `calendarGroupId` or `calendarGroupName`, but not both.
32
+
33
+ `--color [color]`
34
+ : The color of the calendar in UI. Allowed values are `auto`, `lightBlue`, `lightGreen`, `lightOrange`, `lightGray`, `lightYellow`, `lightTeal`, `lightPink`, `lightBrown`, `lightRed`, `maxColor`. Defaults to `auto`.
35
+
36
+ `--defaultOnlineMeetingProvider [defaultOnlineMeetingProvider]`
37
+ : The default online meeting provider for meetings sent from the calendar. Allowed values are `none`, `teamsForBusiness`. Defaults to `teamsForBusiness`.
38
+
39
+ `--default`
40
+ : Specify whether the calendar will be the default calendar for new events.
41
+ ```
42
+
43
+ <Global />
44
+
45
+ ## Permissions
46
+
47
+ <Tabs>
48
+ <TabItem value="Delegated">
49
+
50
+ | Resource | Permissions |
51
+ |-----------------|---------------------|
52
+ | Microsoft Graph | Calendars.ReadWrite |
53
+
54
+ </TabItem>
55
+ <TabItem value="Application">
56
+
57
+ | Resource | Permissions |
58
+ |-----------------|---------------------|
59
+ | Microsoft Graph | Calendars.ReadWrite |
60
+
61
+ </TabItem>
62
+ </Tabs>
63
+
64
+ ## Examples
65
+
66
+ Create a new calendar for a user in a default calendar's group
67
+
68
+ ```sh
69
+ m365 outlook calendar add --userId '@meId' --name 'Holidays'
70
+ ```
71
+
72
+ Create a new calendar for a user specified by email in a specific calendar group and defined color
73
+
74
+ ```sh
75
+ m365 outlook calendar add --userName 'john.doe@contoso.com' --name 'Interviews' --calendarGroupId 'AAMkADY1YmE3N2FhLWEwMz' --color 'lightBlue'
76
+ ```
77
+
78
+ ## Response
79
+
80
+ <Tabs>
81
+ <TabItem value="JSON">
82
+
83
+ ```json
84
+ {
85
+ "id": "AQMkAGRlMCQAAAA==",
86
+ "name": "My Calendars",
87
+ "color": "auto",
88
+ "hexColor": "",
89
+ "groupClassId": "0006f0b7-0000-0000-c000-000000000046",
90
+ "isDefaultCalendar": false,
91
+ "changeKey": "fJKVL07sbkmIfHqjbDnRgQACxSYYpw==",
92
+ "canShare": true,
93
+ "canViewPrivateItems": true,
94
+ "canEdit": true,
95
+ "allowedOnlineMeetingProviders": [
96
+ "teamsForBusiness"
97
+ ],
98
+ "defaultOnlineMeetingProvider": "teamsForBusiness",
99
+ "isTallyingResponses": false,
100
+ "isRemovable": true,
101
+ "owner": {
102
+ "name": "John Doe",
103
+ "address": "john.doe@contoso.com"
104
+ }
105
+ }
106
+ ```
107
+
108
+ </TabItem>
109
+ <TabItem value="Text">
110
+
111
+ ```text
112
+ allowedOnlineMeetingProviders: ["teamsForBusiness"]
113
+ canEdit : true
114
+ canShare : true
115
+ canViewPrivateItems : true
116
+ changeKey : fJKVL07sbkmIfHqjbDnRgQACxSYYug==
117
+ color : auto
118
+ defaultOnlineMeetingProvider : teamsForBusiness
119
+ groupClassId : 0006f0b7-0000-0000-c000-000000000046
120
+ hexColor :
121
+ id : AQMkAGRlMCQAAAA==
122
+ isDefaultCalendar : false
123
+ isRemovable : true
124
+ isTallyingResponses : false
125
+ name : My Calendars
126
+ owner : {"name":"John Doe","address":"john.doe@contoso.com"}
127
+ ```
128
+
129
+ </TabItem>
130
+ <TabItem value="CSV">
131
+
132
+ ```csv
133
+ id,name,color,hexColor,groupClassId,isDefaultCalendar,changeKey,canShare,canViewPrivateItems,canEdit,defaultOnlineMeetingProvider,isTallyingResponses,isRemovable
134
+ AQMkAGRlMCQAAAA==,My Calendars,auto,,0006f0b7-0000-0000-c000-000000000046,0,fJKVL07sbkmIfHqjbDnRgQACxSYYzQ==,1,1,1,teamsForBusiness,0,1
135
+ ```
136
+
137
+ </TabItem>
138
+ <TabItem value="Markdown">
139
+
140
+ ```md
141
+ # outlook calendar add --userId "893f9116-e024-4bc6-8e98-54c245129485" --name "My Calendars"
142
+
143
+ Date: 2/5/2026
144
+
145
+ ## My Calendars (AQMkAGRlMCQAAAA==)
146
+
147
+ Property | Value
148
+ ---------|-------
149
+ id | AQMkAGRlMCQAAAA==
150
+ name | My Calendars
151
+ color | auto
152
+ hexColor |
153
+ groupClassId | 0006f0b7-0000-0000-c000-000000000046
154
+ isDefaultCalendar | false
155
+ changeKey | fJKVL07sbkmIfHqjbDnRgQACxSYY4A==
156
+ canShare | true
157
+ canViewPrivateItems | true
158
+ canEdit | true
159
+ defaultOnlineMeetingProvider | teamsForBusiness
160
+ isTallyingResponses | false
161
+ isRemovable | true
162
+ ```
163
+
164
+ </TabItem>
165
+ </Tabs>
@@ -0,0 +1,165 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # outlook calendar get
6
+
7
+ Retrieves the calendar of a user or a group.
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 outlook calendar get [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-i, --id [id]`
19
+ : ID of the calendar. Specify either `id` or `name`, but not both.
20
+
21
+ `-n, --name [name]`
22
+ : Name of the calendar. 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
+ `--calendarGroupId [calendarGroupId]`
31
+ : ID of the calendar group. Specify either `calendarGroupId` or `calendarGroupName`, but not both.
32
+
33
+ `--calendarGroupName [calendarGroupName]`
34
+ : Name of the calendar group. Specify either `calendarGroupId` or `calendarGroupName`, but not both.
35
+ ```
36
+
37
+ <Global />
38
+
39
+ ## Permissions
40
+
41
+ <Tabs>
42
+ <TabItem value="Delegated">
43
+
44
+ | Resource | Permissions |
45
+ |-----------------|--------------------|
46
+ | Microsoft Graph | Calendar.ReadBasic |
47
+
48
+ </TabItem>
49
+ <TabItem value="Application">
50
+
51
+ | Resource | Permissions |
52
+ |-----------------|--------------------|
53
+ | Microsoft Graph | Calendar.ReadBasic |
54
+
55
+ </TabItem>
56
+ </Tabs>
57
+
58
+ ## Examples
59
+
60
+ Get the calendar for the current signed-in user by id.
61
+
62
+ ```sh
63
+ m365 outlook calendar get --userId "@meId" --id "AAMkAGI2TGuLAAA="
64
+ ```
65
+
66
+ Get the calendar from a specific calendar group for the current signed-in user by name.
67
+
68
+ ```sh
69
+ m365 outlook calendar get --userId "@meId" --calendarGroupName "Colleague calendars" --name "Calendar"
70
+ ```
71
+
72
+ Get the calendar from a specific calendar group for a specific user by name.
73
+
74
+ ```sh
75
+ m365 outlook calendar get --userId b743445a-112c-4fda-9afd-05943f9c7b36 --calendarGroupId "AAMkADIxYjJiYmIzLTFmNjYtNGNhMy0YOkcEEh3vhfAAAGgdFjAAA=" --name "Calendar"
76
+ ```
77
+
78
+ ## Response
79
+
80
+ <Tabs>
81
+ <TabItem value="JSON">
82
+
83
+ ```json
84
+ {
85
+ "id": "AQMkAGRAAAA==",
86
+ "name": "Calendar",
87
+ "color": "lightOrange",
88
+ "hexColor": "#f7630c",
89
+ "groupClassId": "0006f0b7-0000-0000-c000-000000000046",
90
+ "isDefaultCalendar": true,
91
+ "changeKey": "fJKVL07sbkmIfHqjbDnRgQAACWzbtQ==",
92
+ "canShare": true,
93
+ "canViewPrivateItems": true,
94
+ "canEdit": true,
95
+ "allowedOnlineMeetingProviders": [
96
+ "teamsForBusiness"
97
+ ],
98
+ "defaultOnlineMeetingProvider": "teamsForBusiness",
99
+ "isTallyingResponses": true,
100
+ "isRemovable": false,
101
+ "owner": {
102
+ "name": "John Doe",
103
+ "address": "john.doe@contoso.com"
104
+ }
105
+ }
106
+ ```
107
+
108
+ </TabItem>
109
+ <TabItem value="Text">
110
+
111
+ ```text
112
+ allowedOnlineMeetingProviders: ["teamsForBusiness"]
113
+ canEdit : true
114
+ canShare : true
115
+ canViewPrivateItems : true
116
+ changeKey : fJKVL07sbkmIfHqjbDnRgQAACWzbtQ==
117
+ color : lightOrange
118
+ defaultOnlineMeetingProvider : teamsForBusiness
119
+ groupClassId : 0006f0b7-0000-0000-c000-000000000046
120
+ hexColor : #f7630c
121
+ id : AQMkAGRAAAA==
122
+ isDefaultCalendar : true
123
+ isRemovable : false
124
+ isTallyingResponses : true
125
+ name : Calendar
126
+ owner : {"name":"John Doe","address":"john.doe@contoso.com"}
127
+ ```
128
+
129
+ </TabItem>
130
+ <TabItem value="CSV">
131
+
132
+ ```csv
133
+ id,name,color,hexColor,groupClassId,isDefaultCalendar,changeKey,canShare,canViewPrivateItems,canEdit,defaultOnlineMeetingProvider,isTallyingResponses,isRemovable
134
+ AQMkAGRAAAA==,Calendar,lightOrange,#f7630c,0006f0b7-0000-0000-c000-000000000046,1,fJKVL07sbkmIfHqjbDnRgQAACWzbtQ==,1,1,1,teamsForBusiness,1,0
135
+ ```
136
+
137
+ </TabItem>
138
+ <TabItem value="Markdown">
139
+
140
+ ```md
141
+ # outlook calendar get --name "Calendar" --userName "john.doe@contoso.com"
142
+
143
+ Date: 2/9/2026
144
+
145
+ ## Calendar (AQMkAGRAAAA==)
146
+
147
+ Property | Value
148
+ ---------|-------
149
+ id | AQMkAGRAAAA==
150
+ name | Calendar
151
+ color | lightOrange
152
+ hexColor | #f7630c
153
+ groupClassId | 0006f0b7-0000-0000-c000-000000000046
154
+ isDefaultCalendar | true
155
+ changeKey | fJKVL07sbkmIfHqjbDnRgQAACWzbtQ==
156
+ canShare | true
157
+ canViewPrivateItems | true
158
+ canEdit | true
159
+ defaultOnlineMeetingProvider | teamsForBusiness
160
+ isTallyingResponses | true
161
+ isRemovable | false
162
+ ```
163
+
164
+ </TabItem>
165
+ </Tabs>
@@ -0,0 +1,86 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # outlook calendar remove
6
+
7
+ Removes the calendar of a user.
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 outlook calendar remove [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-i, --id [id]`
19
+ : ID of the calendar. Specify either `id` or `name`, but not both.
20
+
21
+ `-n, --name [name]`
22
+ : Name of the calendar. 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
+ `--calendarGroupId [calendarGroupId]`
31
+ : ID of the calendar group. Specify either `calendarGroupId` or `calendarGroupName`, but not both.
32
+
33
+ `--calendarGroupName [calendarGroupName]`
34
+ : Name of the calendar group. Specify either `calendarGroupId` or `calendarGroupName`, but not both.
35
+
36
+ `--permanent`
37
+ : Permanently remove the calendar, don't send it to the recycle bin.
38
+
39
+ `-f, --force`
40
+ : Don't prompt for confirmation.
41
+ ```
42
+
43
+ <Global />
44
+
45
+ ## Permissions
46
+
47
+ <Tabs>
48
+ <TabItem value="Delegated">
49
+
50
+ | Resource | Permissions |
51
+ |-----------------|---------------------|
52
+ | Microsoft Graph | Calendars.ReadWrite |
53
+
54
+ </TabItem>
55
+ <TabItem value="Application">
56
+
57
+ | Resource | Permissions |
58
+ |-----------------|---------------------|
59
+ | Microsoft Graph | Calendars.ReadWrite |
60
+
61
+ </TabItem>
62
+ </Tabs>
63
+
64
+ ## Examples
65
+
66
+ Remove the calendar for the current signed-in user by id.
67
+
68
+ ```sh
69
+ m365 outlook calendar remove --userId "@meId" --id "AAMkAGI2TGuLAAA="
70
+ ```
71
+
72
+ Permanently remove the calendar from a specific calendar group for the current signed-in user by name.
73
+
74
+ ```sh
75
+ m365 outlook calendar remove --userId "@meId" --calendarGroupName "Colleague calendars" --name "Calendar" --permanent
76
+ ```
77
+
78
+ Remove the calendar from a specific calendar group for a specific user by name.
79
+
80
+ ```sh
81
+ m365 outlook calendar remove --userId b743445a-112c-4fda-9afd-05943f9c7b36 --calendarGroupId "AAMkADIxYjJiYmIzLTFmNjYtNGNhMy0YOkcEEh3vhfAAAGgdFjAAA=" --name "Calendar"
82
+ ```
83
+
84
+ ## Response
85
+
86
+ The command won't return a response on success.
@@ -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>