@pnp/cli-microsoft365 11.6.0-beta.358a4f1 → 11.6.0-beta.bc374af

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 (31) hide show
  1. package/.devproxy/api-specs/sharepoint-admin.yaml +40 -0
  2. package/.devproxy/api-specs/sharepoint.yaml +48 -0
  3. package/allCommands.json +1 -1
  4. package/allCommandsFull.json +1 -1
  5. package/dist/m365/entra/commands/user/user-recyclebinitem-list.js +5 -0
  6. package/dist/m365/outlook/commands/calendargroup/calendargroup-list.js +87 -0
  7. package/dist/m365/outlook/commands.js +1 -0
  8. package/dist/m365/spo/commands/agent/agent-add.js +172 -0
  9. package/dist/m365/spo/commands/list/list-set.js +186 -378
  10. package/dist/m365/spo/commands/navigation/navigation-node-get.js +18 -28
  11. package/dist/m365/spo/commands/navigation/navigation-node-list.js +14 -39
  12. package/dist/m365/spo/commands/site/site-accessrequest-setting-set.js +102 -0
  13. package/dist/m365/spo/commands/site/site-add.js +38 -8
  14. package/dist/m365/spo/commands/tenant/tenant-site-get.js +112 -0
  15. package/dist/m365/spo/commands.js +3 -0
  16. package/dist/utils/accessToken.js +21 -0
  17. package/dist/utils/brandCenter.js +29 -0
  18. package/docs/docs/cmd/entra/app/app-role-add.mdx +21 -0
  19. package/docs/docs/cmd/entra/app/app-role-list.mdx +20 -1
  20. package/docs/docs/cmd/entra/app/app-role-remove.mdx +22 -1
  21. package/docs/docs/cmd/entra/policy/policy-list.mdx +19 -0
  22. package/docs/docs/cmd/entra/resourcenamespace/resourcenamespace-list.mdx +19 -0
  23. package/docs/docs/cmd/outlook/calendargroup/calendargroup-list.mdx +120 -0
  24. package/docs/docs/cmd/spo/agent/agent-add.mdx +190 -0
  25. package/docs/docs/cmd/spo/list/list-set.mdx +19 -1
  26. package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +43 -10
  27. package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +36 -3
  28. package/docs/docs/cmd/spo/site/site-accessrequest-setting-set.mdx +77 -0
  29. package/docs/docs/cmd/spo/site/site-add.mdx +14 -5
  30. package/docs/docs/cmd/spo/tenant/tenant-site-get.mdx +479 -0
  31. package/package.json +1 -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
  # entra app role remove
4
6
 
@@ -53,6 +55,25 @@ If the command finds multiple roles with the specified role name, it will prompt
53
55
 
54
56
  If the role to be removed is 'Enabled', this command will disable the role first and then remove.
55
57
 
58
+ ## Permissions
59
+
60
+ <Tabs>
61
+ <TabItem value="Delegated">
62
+
63
+ | Resource | Permissions |
64
+ | --------------- | ------------------------- |
65
+ | Microsoft Graph | Application.ReadWrite.All |
66
+
67
+ </TabItem>
68
+ <TabItem value="Application">
69
+
70
+ | Resource | Permissions |
71
+ | --------------- | ------------------------- |
72
+ | Microsoft Graph | Application.ReadWrite.All |
73
+
74
+ </TabItem>
75
+ </Tabs>
76
+
56
77
  ## Examples
57
78
 
58
79
  Remove role from a Entra application registration using object ID and role name options. Will prompt for confirmation before deleting the role.
@@ -81,4 +102,4 @@ m365 entra app role remove --appObjectId d75be2e1-0204-4f95-857d-51a37cf40be8 --
81
102
 
82
103
  ## Response
83
104
 
84
- The command won't return a response on success.
105
+ The command won't return a response on success.
@@ -21,6 +21,25 @@ m365 entra policy list [options]
21
21
 
22
22
  <Global />
23
23
 
24
+ ## Permissions
25
+
26
+ <Tabs>
27
+ <TabItem value="Delegated">
28
+
29
+ | Resource | Permissions |
30
+ |-----------------|---------------|
31
+ | Microsoft Graph | Policy.Read.All |
32
+
33
+ </TabItem>
34
+ <TabItem value="Application">
35
+
36
+ | Resource | Permissions |
37
+ |-----------------|---------------|
38
+ | Microsoft Graph | Policy.Read.All |
39
+
40
+ </TabItem>
41
+ </Tabs>
42
+
24
43
  ## Examples
25
44
 
26
45
  Returns all policies from Entra ID.
@@ -24,6 +24,25 @@ The command is based on an API that is currently in preview and is subject to ch
24
24
 
25
25
  :::
26
26
 
27
+ ## Permissions
28
+
29
+ <Tabs>
30
+ <TabItem value="Delegated">
31
+
32
+ | Resource | Permissions |
33
+ |-----------------|--------------------------------|
34
+ | Microsoft Graph | RoleManagement.Read.Directory |
35
+
36
+ </TabItem>
37
+ <TabItem value="Application">
38
+
39
+ | Resource | Permissions |
40
+ |-----------------|--------------------------------|
41
+ | Microsoft Graph | RoleManagement.Read.Directory |
42
+
43
+ </TabItem>
44
+ </Tabs>
45
+
27
46
  ## Examples
28
47
 
29
48
  Retrieve all resource namespaces.
@@ -0,0 +1,120 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # outlook calendargroup list
6
+
7
+ Retrieves calendar groups for a user.
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 outlook calendargroup list [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `--userId [userId]`
19
+ : ID of the user whose calendar groups to retrieve. Specify either `userId` or `userName`, but not both.
20
+
21
+ `--userName [userName]`
22
+ : UPN of the user whose calendar groups to retrieve. Specify either `userId` or `userName`, but not both.
23
+ ```
24
+
25
+ <Global />
26
+
27
+ ## Permissions
28
+
29
+ <Tabs>
30
+ <TabItem value="Delegated">
31
+
32
+ | Resource | Permissions |
33
+ |-----------------|--------------------------------------------------------------------------------------|
34
+ | Microsoft Graph | Calendars.ReadBasic, Calendars.Read, Calendars.Read.Shared, Calendars.ReadWrite.Shared |
35
+
36
+ </TabItem>
37
+ <TabItem value="Application">
38
+
39
+ | Resource | Permissions |
40
+ |-----------------|-------------------------------------|
41
+ | Microsoft Graph | Calendars.ReadBasic, Calendars.Read |
42
+
43
+ </TabItem>
44
+ </Tabs>
45
+
46
+ :::note
47
+
48
+ 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.
49
+
50
+ :::
51
+
52
+ ## Examples
53
+
54
+ Retrieve all calendar groups for the signed-in user.
55
+
56
+ ```sh
57
+ m365 outlook calendargroup list
58
+ ```
59
+
60
+ Retrieve all calendar groups for a specific user by email.
61
+
62
+ ```sh
63
+ m365 outlook calendargroup list --userName "john.doe@contoso.com"
64
+ ```
65
+
66
+ Retrieve all calendar groups for a specific user by ID.
67
+
68
+ ```sh
69
+ m365 outlook calendargroup list --userId b743445a-112c-4fda-9afd-05943f9c7b36
70
+ ```
71
+
72
+ ## Response
73
+
74
+ <Tabs>
75
+ <TabItem value="JSON">
76
+
77
+ ```json
78
+ [
79
+ {
80
+ "id": "AAMkAGE0MGM1Y2M5LWEzMmUtNGVlNy05MjRlLTk0YmYyY2I5NTM3ZAAuAAAAAAC_0WfqSjt_SqLtNkuO-bj1AQAbfYq5lmBxQ6a4t1fGbeYAAAAAAEOAAA=",
81
+ "name": "My Calendars",
82
+ "changeKey": "nfZyf7VcrEKLNoU37KWlkQAAA0x0+w==",
83
+ "classId": "0006f0b7-0000-0000-c000-000000000046"
84
+ }
85
+ ]
86
+ ```
87
+
88
+ </TabItem>
89
+ <TabItem value="Text">
90
+
91
+ ```text
92
+ id name
93
+ ---------------------------------------------------------------------------------------------------------------------- ------------
94
+ AAMkAGE0MGM1Y2M5LWEzMmUtNGVlNy05MjRlLTk0YmYyY2I5NTM3ZAAuAAAAAAC_0WfqSjt_SqLtNkuO-bj1AQAbfYq5lmBxQ6a4t1fGbeYAAAAAAEOAAA= My Calendars
95
+ ```
96
+
97
+ </TabItem>
98
+ <TabItem value="CSV">
99
+
100
+ ```csv
101
+ id,name
102
+ AAMkAGE0MGM1Y2M5LWEzMmUtNGVlNy05MjRlLTk0YmYyY2I5NTM3ZAAuAAAAAAC_0WfqSjt_SqLtNkuO-bj1AQAbfYq5lmBxQ6a4t1fGbeYAAAAAAEOAAA=,My Calendars
103
+ ```
104
+
105
+ </TabItem>
106
+ <TabItem value="Markdown">
107
+
108
+ ```md
109
+ # outlook calendargroup list
110
+
111
+ Date: 2/24/2026
112
+
113
+ Property | Value
114
+ ---------|-------
115
+ id | AAMkAGE0MGM1Y2M5LWEzMmUtNGVlNy05MjRlLTk0YmYyY2I5NTM3ZAAuAAAAAAC_0WfqSjt_SqLtNkuO-bj1AQAbfYq5lmBxQ6a4t1fGbeYAAAAAAEOAAA=
116
+ name | My Calendars
117
+ ```
118
+
119
+ </TabItem>
120
+ </Tabs>
@@ -0,0 +1,190 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo agent add
6
+
7
+ Adds a new SharePoint agent
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo agent add [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : URL of the site where the agent should be added.
20
+
21
+ `-n, --name <name>`
22
+ : The name of the agent.
23
+
24
+ `-a, --agentInstructions <agentInstructions>`
25
+ : The definition of the agent's role, tone, and limitations.
26
+
27
+ `-w, --welcomeMessage <welcomeMessage>`
28
+ : The welcome message.
29
+
30
+ `-s, --sourceUrls <sourceUrls>`
31
+ : Comma-separated list of URLs of the SharePoint sites, libraries, or files that are the sources of information.
32
+
33
+ `-d, --description <description>`
34
+ : The brief description of the agent's objective.
35
+
36
+ `-i, --icon [icon]`
37
+ : The URL of the icon.
38
+
39
+ `-c, --conversationStarters [conversationStarters]`
40
+ : Starter prompts. Please provide each prompt separated by a comma.
41
+ ```
42
+
43
+ <Global />
44
+
45
+ ## Permissions
46
+
47
+ <Tabs>
48
+ <TabItem value="Delegated">
49
+
50
+ | Resource | Permissions |
51
+ |------------|----------------------|
52
+ | SharePoint | AllSites.FullControl |
53
+
54
+ </TabItem>
55
+ <TabItem value="Application">
56
+
57
+ | Resource | Permissions |
58
+ |------------|-----------------------|
59
+ | SharePoint | Sites.FullControl.All |
60
+
61
+ </TabItem>
62
+ </Tabs>
63
+
64
+ ## Examples
65
+
66
+ Add a SharePoint agent with site and library sources.
67
+
68
+ ```sh
69
+ m365 spo agent add --webUrl https://contoso.sharepoint.com/sites/projectSite --name "Project Assistant" --agentInstructions "You are a helpful assistant for project management tasks. Be professional and concise." --welcomeMessage "Hello! I'm here to help you with project management tasks." --sourceUrls "https://contoso.sharepoint.com/sites/projectSite,https://contoso.sharepoint.com/sites/projectSite/Shared Documents/Forms/AllItems.aspx" --description "A helpful agent for project management assistance"
70
+ ```
71
+
72
+ Add a SharePoint agent with icon and conversation starters.
73
+
74
+ ```sh
75
+ m365 spo agent add --webUrl https://contoso.sharepoint.com/sites/projectSite --name "HR Assistant" --agentInstructions "You are an HR assistant. Help with HR policies and procedures." --welcomeMessage "Welcome! I can help you with HR-related questions." --sourceUrls "https://contoso.sharepoint.com/sites/hr" --icon "https://contoso.sharepoint.com/sites/projectSite/SiteAssets/hr-icon.png" --conversationStarters "What are the vacation policies?,How do I submit a timesheet?,Where can I find the employee handbook?" --description "A helpful agent for project management assistance"
76
+ ```
77
+
78
+ Add a basic SharePoint agent with minimal configuration.
79
+
80
+ ```sh
81
+ m365 spo agent add --webUrl https://contoso.sharepoint.com/sites/marketing --name "Marketing Bot" --agentInstructions "Assist with marketing campaign information and resources." --welcomeMessage "Hi! I can help you find marketing resources." --sourceUrls "https://contoso.sharepoint.com/sites/marketing/Campaigns" --description "A helpful agent for project management assistance"
82
+ ```
83
+
84
+ ## Response
85
+
86
+ <Tabs>
87
+ <TabItem value="JSON">
88
+
89
+ ```json
90
+ {
91
+ "CheckInComment": "",
92
+ "CheckOutType": 2,
93
+ "ContentTag": "{95784749-23D7-410D-BAEF-E694328F89AB},1,1",
94
+ "CustomizedPageStatus": 0,
95
+ "ETag": "\"{95784749-23D7-410D-BAEF-E694328F89AB},1\"",
96
+ "Exists": true,
97
+ "ExistsAllowThrowForPolicyFailures": true,
98
+ "ExistsWithException": true,
99
+ "IrmEnabled": false,
100
+ "Length": "4543",
101
+ "Level": 1,
102
+ "LinkingUri": null,
103
+ "LinkingUrl": "",
104
+ "MajorVersion": 1,
105
+ "MinorVersion": 0,
106
+ "Name": "Test Agent.agent",
107
+ "ServerRelativeUrl": "/sites/TestSite/SiteAssets/Copilots/Test Agent.agent",
108
+ "TimeCreated": "2025-08-19T06:49:03Z",
109
+ "TimeLastModified": "2025-08-19T06:49:03Z",
110
+ "Title": null,
111
+ "UIVersion": 512,
112
+ "UIVersionLabel": "1.0",
113
+ "UniqueId": "95784749-23d7-410d-baef-e694328f89ab"
114
+ }
115
+ ```
116
+
117
+ </TabItem>
118
+ <TabItem value="Text">
119
+
120
+ ```text
121
+ CheckOutType : 2
122
+ ContentTag : {802D355C-0917-44D9-A51C-6FD873572700},1,1
123
+ CustomizedPageStatus : 0
124
+ ETag : "{802D355C-0917-44D9-A51C-6FD873572700},1"
125
+ Exists : true
126
+ ExistsAllowThrowForPolicyFailures: true
127
+ ExistsWithException : true
128
+ IrmEnabled : false
129
+ Length : 4543
130
+ Level : 1
131
+ LinkingUri : null
132
+ LinkingUrl :
133
+ MajorVersion : 1
134
+ MinorVersion : 0
135
+ Name : Test Agent.agent
136
+ ServerRelativeUrl : /sites/TestSite/SiteAssets/Copilots/Test Agent.agent
137
+ TimeCreated : 2025-08-19T06:48:26Z
138
+ TimeLastModified : 2025-08-19T06:48:26Z
139
+ Title : null
140
+ UIVersion : 512
141
+ UIVersionLabel : 1.0
142
+ UniqueId : 802d355c-0917-44d9-a51c-6fd873572700
143
+ ```
144
+
145
+ </TabItem>
146
+ <TabItem value="CSV">
147
+
148
+ ```csv
149
+ CheckInComment,CheckOutType,ContentTag,CustomizedPageStatus,ETag,Exists,ExistsAllowThrowForPolicyFailures,ExistsWithException,IrmEnabled,Length,Level,Linkin
150
+ gUri,LinkingUrl,MajorVersion,MinorVersion,Name,ServerRelativeUrl,TimeCreated,TimeLastModified,Title,UIVersion,UIVersionLabel,UniqueId
151
+ ,2,"{A8541C6C-163E-48B9-AD8C-33D9669C148A},1,1",0,"""{A8541C6C-163E-48B9-AD8C-33D9669C148A},1""",1,1,1,0,4543,1,,,1,0,Test Agent.agent,/sites/TestSite/SiteAssets/Copilots/Test Agent.agent,2025-08-19T06:47:57Z,2025-08-19T06:47:57Z,,512,1.0,a8541c6c-163e-48b9-ad8c-33d9669c148a
152
+ ```
153
+
154
+ </TabItem>
155
+ <TabItem value="Markdown">
156
+
157
+ ```md
158
+ # spo agent add --debug "false" --verbose "false" --webUrl "https://contoso.sharepoint.com/sites/TestSite/" --name "Test Agent" --
159
+ agentInstructions "You are a comprehensive test agent" --welcomeMessage "Welcome to the comprehensive test agent" --sourceUrls "https://contoso.sharepoint.com/sites/TestSite/Shared%20Documents/Forms/AllItems" --description "A comprehensive test agent"
160
+ Date: 19/08/2025
161
+
162
+ ## Test Agent.agent (ad6f7a4e-4582-4cc4-bae6-65ade97e5e71)
163
+
164
+ Property | Value
165
+ ---------|-------
166
+ CheckInComment |
167
+ CheckOutType | 2
168
+ ContentTag | {AD6F7A4E-4582-4CC4-BAE6-65ADE97E5E71},1,1
169
+ CustomizedPageStatus | 0
170
+ ETag | "{AD6F7A4E-4582-4CC4-BAE6-65ADE97E5E71},1"
171
+ Exists | true
172
+ ExistsAllowThrowForPolicyFailures | true
173
+ ExistsWithException | true
174
+ IrmEnabled | false
175
+ Length | 4543
176
+ Level | 1
177
+ LinkingUrl |
178
+ MajorVersion | 1
179
+ MinorVersion | 0
180
+ Name | Test Agent.agent
181
+ ServerRelativeUrl | /sites/TestSite/SiteAssets/Copilots/Test Agent.agent
182
+ TimeCreated | 2025-08-19T06:46:30Z
183
+ TimeLastModified | 2025-08-19T06:46:30Z
184
+ UIVersion | 512
185
+ UIVersionLabel | 1.0
186
+ UniqueId | ad6f7a4e-4582-4cc4-bae6-65ade97e5e71
187
+ ```
188
+
189
+ </TabItem>
190
+ </Tabs>
@@ -146,7 +146,7 @@ m365 spo list set [options]
146
146
  : Gets or sets the list experience for the list. Allowed values `Auto`, `NewExperience`, `ClassicExperience`.
147
147
 
148
148
  `--majorVersionLimit [majorVersionLimit]`
149
- : Gets or sets the maximum number of major versions allowed for an item in a document library that uses version control with major versions only.
149
+ : Gets or sets the maximum number of major versions allowed for an item in a document library that uses version control with major versions only. When specified, versioning is automatically enabled.
150
150
 
151
151
  `--majorWithMinorVersionsLimit [majorWithMinorVersionsLimit]`
152
152
  : Gets or sets the maximum number of major versions that are allowed for an item in a document library that uses version control with both major and minor versions.
@@ -205,6 +205,12 @@ m365 spo list set [options]
205
205
  `--validationMessage [validationMessage]`
206
206
  : Gets or sets the message that is displayed when validation fails for a list item.
207
207
 
208
+ `--versionAutoExpireTrim [versionAutoExpireTrim]`
209
+ : Boolean that indicates whether the automatic version trim should be enabled. Cannot be used together with `versionExpireAfterDays` unless set to `false`. Valid values are `true`, `false`.
210
+
211
+ `--versionExpireAfterDays [versionExpireAfterDays]`
212
+ : Number that defines how many days a version should be removed after. When using this option, be sure to also set `majorVersionLimit`. Cannot be used together with `versionAutoExpireTrim` set to `true`.
213
+
208
214
  `--writeSecurity [writeSecurity]`
209
215
  : Gets or sets the Write security setting for the list. Valid values are 1 (All users can modify all items)|2 (Users can modify only items that they create)|4 (Users cannot modify any list item).
210
216
  ```
@@ -237,6 +243,18 @@ Update the title of a list retrieved by it's original title.
237
243
  m365 spo list set --webUrl https://contoso.sharepoint.com/sites/project-x --title Documents --newTitle 'Different Title'
238
244
  ```
239
245
 
246
+ Enable automatic version trimming on a list.
247
+
248
+ ```sh
249
+ m365 spo list set --webUrl https://contoso.sharepoint.com/sites/project-x --id 3EA5A977-315E-4E25-8B0F-E4F949BF6B8F --versionAutoExpireTrim true
250
+ ```
251
+
252
+ Set versions to expire after 30 days and keep a maximum of 500 major versions.
253
+
254
+ ```sh
255
+ m365 spo list set --webUrl https://contoso.sharepoint.com/sites/project-x --id 3EA5A977-315E-4E25-8B0F-E4F949BF6B8F --versionExpireAfterDays 30 --majorVersionLimit 500
256
+ ```
257
+
240
258
  ## Response
241
259
 
242
260
  The command won't return a response on success.
@@ -24,12 +24,31 @@ m365 spo navigation node get [options]
24
24
 
25
25
  <Global />
26
26
 
27
+ ## Permissions
28
+
29
+ <Tabs>
30
+ <TabItem value="Delegated">
31
+
32
+ | Resource | Permissions |
33
+ |------------|---------------|
34
+ | SharePoint | AllSites.Read |
35
+
36
+ </TabItem>
37
+ <TabItem value="Application">
38
+
39
+ | Resource | Permissions |
40
+ |------------|----------------|
41
+ | SharePoint | Sites.Read.All |
42
+
43
+ </TabItem>
44
+ </Tabs>
45
+
27
46
  ## Examples
28
47
 
29
48
  Retrieve information for a specific navigation node.
30
49
 
31
50
  ```sh
32
- m365 spo navigation node get --webUrl https://contoso.sharepoint.com/sites/team-a --id 2209
51
+ m365 spo navigation node get --webUrl https://contoso.sharepoint.com/sites/Marketing --id 2209
33
52
  ```
34
53
 
35
54
  ## Response
@@ -39,9 +58,22 @@ m365 spo navigation node get --webUrl https://contoso.sharepoint.com/sites/team-
39
58
 
40
59
  ```json
41
60
  {
61
+ "Children": [
62
+ {
63
+ "AudienceIds": null,
64
+ "CurrentLCID": 1033,
65
+ "Id": 2033,
66
+ "IsDocLib": true,
67
+ "IsExternal": true,
68
+ "IsVisible": true,
69
+ "ListTemplateType": 0,
70
+ "Title": "Microsoft 365",
71
+ "Url": "https://microsoft365.com",
72
+ "Children": []
73
+ }
74
+ ],
42
75
  "AudienceIds": [
43
- "0d718612-8407-4d6b-833c-6891a553354f",
44
- "f864446f-b4d7-475a-a2ba-1080c6474020"
76
+ "0d718612-8407-4d6b-833c-6891a553354f"
45
77
  ],
46
78
  "CurrentLCID": 1033,
47
79
  "Id": 2209,
@@ -50,7 +82,7 @@ m365 spo navigation node get --webUrl https://contoso.sharepoint.com/sites/team-
50
82
  "IsVisible": true,
51
83
  "ListTemplateType": 100,
52
84
  "Title": "Work Status",
53
- "Url": "/sites/team-a/Lists/Work Status/AllItems.aspx"
85
+ "Url": "/sites/Marketing/Lists/Work Status/AllItems.aspx"
54
86
  }
55
87
  ```
56
88
 
@@ -58,7 +90,8 @@ m365 spo navigation node get --webUrl https://contoso.sharepoint.com/sites/team-
58
90
  <TabItem value="Text">
59
91
 
60
92
  ```text
61
- AudienceIds : ["0d718612-8407-4d6b-833c-6891a553354f", "f864446f-b4d7-475a-a2ba-1080c6474020"]
93
+ Children : [{ AudienceIds: null, CurrentLCID: 1033, Id: 2033, IsDocLib: true, IsExternal: true, IsVisible: true, ListTemplateType: 0, Title: "Microsoft 365", Url: "https://microsoft365.com", Children: [] }]
94
+ AudienceIds : ["0d718612-8407-4d6b-833c-6891a553354f"]
62
95
  CurrentLCID : 1033
63
96
  Id : 2209
64
97
  IsDocLib : true
@@ -66,22 +99,22 @@ m365 spo navigation node get --webUrl https://contoso.sharepoint.com/sites/team-
66
99
  IsVisible : true
67
100
  ListTemplateType: 100
68
101
  Title : Work Status
69
- Url : /sites/team-a/Lists/Work Status/AllItems.aspx
102
+ Url : /sites/Marketing/Lists/Work Status/AllItems.aspx
70
103
  ```
71
104
 
72
105
  </TabItem>
73
106
  <TabItem value="CSV">
74
107
 
75
108
  ```csv
76
- AudienceIds,CurrentLCID,Id,IsDocLib,IsExternal,IsVisible,ListTemplateType,Title,Url
77
- [""0d718612-8407-4d6b-833c-6891a553354f"", ""f864446f-b4d7-475a-a2ba-1080c6474020""],1033,2209,1,,1,100,Work Status,/sites/team-a/Lists/Work Status/AllItems.aspx
109
+ CurrentLCID,Id,IsDocLib,IsExternal,IsVisible,ListTemplateType,Title,Url
110
+ 1033,2209,1,,1,100,Work Status,/sites/Marketing/Lists/Work Status/AllItems.aspx
78
111
  ```
79
112
 
80
113
  </TabItem>
81
114
  <TabItem value="Markdown">
82
115
 
83
116
  ```md
84
- # spo navigation node get --webUrl "https://contoso.sharepoint.com/sites/team-a" --id "2209"
117
+ # spo navigation node get --webUrl "https://contoso.sharepoint.com/sites/Marketing" --id "2209"
85
118
 
86
119
  Date: 1/29/2023
87
120
 
@@ -96,7 +129,7 @@ m365 spo navigation node get --webUrl https://contoso.sharepoint.com/sites/team-
96
129
  IsVisible | true
97
130
  ListTemplateType | 100
98
131
  Title | Work Status
99
- Url | /sites/team-a/Lists/Work Status/AllItems.aspx
132
+ Url | /sites/Marketing/Lists/Work Status/AllItems.aspx
100
133
  ```
101
134
 
102
135
  </TabItem>
@@ -24,18 +24,37 @@ m365 spo navigation node list [options]
24
24
 
25
25
  <Global />
26
26
 
27
+ ## Permissions
28
+
29
+ <Tabs>
30
+ <TabItem value="Delegated">
31
+
32
+ | Resource | Permissions |
33
+ |------------|---------------|
34
+ | SharePoint | AllSites.Read |
35
+
36
+ </TabItem>
37
+ <TabItem value="Application">
38
+
39
+ | Resource | Permissions |
40
+ |------------|----------------|
41
+ | SharePoint | Sites.Read.All |
42
+
43
+ </TabItem>
44
+ </Tabs>
45
+
27
46
  ## Examples
28
47
 
29
48
  Retrieve nodes from the top navigation.
30
49
 
31
50
  ```sh
32
- m365 spo navigation node list --webUrl https://contoso.sharepoint.com/sites/team-a --location TopNavigationBar
51
+ m365 spo navigation node list --webUrl https://contoso.sharepoint.com/sites/Marketing --location TopNavigationBar
33
52
  ```
34
53
 
35
54
  Retrieve nodes from the quick launch.
36
55
 
37
56
  ```sh
38
- m365 spo navigation node list --webUrl https://contoso.sharepoint.com/sites/team-a --location QuickLaunch
57
+ m365 spo navigation node list --webUrl https://contoso.sharepoint.com/sites/Marketing --location QuickLaunch
39
58
  ```
40
59
 
41
60
  ## Response
@@ -56,7 +75,21 @@ m365 spo navigation node list --webUrl https://contoso.sharepoint.com/sites/team
56
75
  "IsVisible": true,
57
76
  "ListTemplateType": 0,
58
77
  "Title": "Navigation Link",
59
- "Url": "https://contoso.sharepoint.com"
78
+ "Url": "https://contoso.sharepoint.com",
79
+ "Children": [
80
+ {
81
+ "AudienceIds": null,
82
+ "CurrentLCID": 1033,
83
+ "Id": 2033,
84
+ "IsDocLib": true,
85
+ "IsExternal": true,
86
+ "IsVisible": true,
87
+ "ListTemplateType": 0,
88
+ "Title": "Microsoft 365",
89
+ "Url": "https://microsoft365.com",
90
+ "Children": []
91
+ }
92
+ ]
60
93
  }
61
94
  ]
62
95
  ```
@@ -0,0 +1,77 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo site accessrequest setting set
6
+
7
+ Update access requests for a specific site
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo site accessrequest setting set [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --siteUrl <siteUrl>`
19
+ : URL of the site collection.
20
+
21
+ `--disabled`
22
+ : Disable site requests for the entire site. Specify either `disabled`, `ownerGroup`, or `email`.
23
+
24
+ `--ownerGroup`
25
+ : Send access requests to the owner group. Specify either `disabled`, `ownerGroup`, or `email`.
26
+
27
+ `--email [email]`
28
+ : Send access requests to a specific email. Specify either `disabled`, `ownerGroup`, or `email`.
29
+
30
+ `--message [message]`
31
+ : Add a custom message to the access request page. Cannot be used with the `--disabled` option.
32
+ ```
33
+
34
+ <Global />
35
+
36
+ ## Permissions
37
+
38
+ <Tabs>
39
+ <TabItem value="Delegated">
40
+
41
+ | Resource | Permissions |
42
+ |------------|----------------------|
43
+ | SharePoint | AllSites.FullControl |
44
+
45
+ </TabItem>
46
+ <TabItem value="Application">
47
+
48
+ | Resource | Permissions |
49
+ |------------|-----------------------|
50
+ | SharePoint | Sites.FullControl.All |
51
+
52
+ </TabItem>
53
+ </Tabs>
54
+
55
+ ## Examples
56
+
57
+ Disable access requests for a specific site.
58
+
59
+ ```sh
60
+ m365 spo site accessrequest setting set --siteUrl https://contoso.sharepoint.com/sites/Management --disabled
61
+ ```
62
+
63
+ Send all access requests to the owner group of a specific site.
64
+
65
+ ```sh
66
+ m365 spo site accessrequest setting set --siteUrl https://contoso.sharepoint.com/sites/Management --ownerGroup
67
+ ```
68
+
69
+ Send all access requests to a specific email address and set a custom message.
70
+
71
+ ```sh
72
+ m365 spo site accessrequest setting set --siteUrl https://contoso.sharepoint.com/sites/Management --email john.doe@contoso.com --message "Motivate why you need access."
73
+ ```
74
+
75
+ ## Response
76
+
77
+ The command won't return a response on success.