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

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 (65) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/config.js +1 -0
  4. package/dist/m365/entra/commands/user/user-license-add.js +2 -1
  5. package/dist/m365/entra/commands/user/user-license-list.js +4 -9
  6. package/dist/m365/entra/commands/user/user-license-remove.js +2 -1
  7. package/dist/m365/outlook/commands/calendar/calendar-add.js +85 -0
  8. package/dist/m365/outlook/commands/calendar/calendar-get.js +71 -0
  9. package/dist/m365/outlook/commands/calendar/calendar-remove.js +100 -0
  10. package/dist/m365/outlook/commands/calendargroup/calendargroup-set.js +115 -0
  11. package/dist/m365/outlook/commands/event/event-cancel.js +103 -0
  12. package/dist/m365/outlook/commands/event/event-list.js +115 -0
  13. package/dist/m365/outlook/commands/event/event-remove.js +104 -0
  14. package/dist/m365/outlook/commands.js +7 -0
  15. package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +643 -0
  16. package/dist/m365/spfx/commands/project/DeployWorkflow.js +2 -2
  17. package/dist/m365/spfx/commands/project/project-azuredevops-pipeline-add.js +13 -1
  18. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.23.0-rc.0.js +19 -0
  19. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  20. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +16 -1
  21. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002021_DEVDEP_rushstack_eslint_config.js +2 -2
  22. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002032_DEVDEP_typescript_eslint_parser.js +2 -2
  23. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +1 -1
  24. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015016_FILE_eslint_config_js.js +10 -0
  25. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.23.0-rc.0.js +84 -0
  26. package/dist/m365/spfx/commands/project/project-upgrade.js +12 -11
  27. package/dist/m365/spfx/commands/spfx-doctor.js +5 -631
  28. package/dist/m365/teams/commands/chat/chat-message-list.js +43 -4
  29. package/dist/utils/calendar.js +37 -0
  30. package/dist/utils/calendarGroup.js +22 -0
  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/user/user-groupmembership-list.mdx +19 -0
  37. package/docs/docs/cmd/entra/user/user-guest-add.mdx +19 -0
  38. package/docs/docs/cmd/entra/user/user-license-add.mdx +19 -0
  39. package/docs/docs/cmd/entra/user/user-license-list.mdx +18 -1
  40. package/docs/docs/cmd/entra/user/user-license-remove.mdx +21 -0
  41. package/docs/docs/cmd/entra/user/user-password-validate.mdx +12 -0
  42. package/docs/docs/cmd/entra/user/user-recyclebinitem-clear.mdx +21 -0
  43. package/docs/docs/cmd/entra/user/user-recyclebinitem-list.mdx +19 -0
  44. package/docs/docs/cmd/entra/user/user-recyclebinitem-remove.mdx +21 -0
  45. package/docs/docs/cmd/entra/user/user-recyclebinitem-restore.mdx +19 -0
  46. package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +19 -0
  47. package/docs/docs/cmd/entra/user/user-session-revoke.mdx +21 -0
  48. package/docs/docs/cmd/entra/user/user-signin-list.mdx +19 -0
  49. package/docs/docs/cmd/exo/approleassignment/approleassignment-add.mdx +19 -0
  50. package/docs/docs/cmd/file/convert/convert-pdf.mdx +21 -0
  51. package/docs/docs/cmd/file/file-add.mdx +21 -0
  52. package/docs/docs/cmd/file/file-copy.mdx +21 -0
  53. package/docs/docs/cmd/file/file-list.mdx +19 -0
  54. package/docs/docs/cmd/file/file-move.mdx +21 -0
  55. package/docs/docs/cmd/outlook/calendar/calendar-add.mdx +165 -0
  56. package/docs/docs/cmd/outlook/calendar/calendar-get.mdx +165 -0
  57. package/docs/docs/cmd/outlook/calendar/calendar-remove.mdx +86 -0
  58. package/docs/docs/cmd/outlook/calendargroup/calendargroup-set.mdx +83 -0
  59. package/docs/docs/cmd/outlook/event/event-cancel.mdx +85 -0
  60. package/docs/docs/cmd/outlook/event/event-list.mdx +245 -0
  61. package/docs/docs/cmd/outlook/event/event-remove.mdx +85 -0
  62. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  63. package/docs/docs/cmd/teams/chat/chat-message-list.mdx +23 -2
  64. package/npm-shrinkwrap.json +0 -7
  65. package/package.json +2 -1
@@ -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
  # 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,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,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.