@pnp/cli-microsoft365 12.0.0-beta.c9bd7f3 → 12.0.0-beta.d58fb77
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.
- package/.devproxy/generate-openapi-spec.json +1 -1
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +15 -1
- package/dist/googleAnalytics.js +96 -0
- package/dist/m365/cli/commands/cli-consent.js +9 -2
- package/dist/m365/entra/commands/m365group/m365group-remove.js +2 -8
- package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +15 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.24.0.js +19 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012021_TSC_excludeDirectories.js +43 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027002_OVERRIDES_qs.js +33 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027003_OVERRIDES_uuid.js +33 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.24.0.js +77 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +2 -1
- package/dist/m365/spo/commands/app/app-add.js +35 -56
- package/dist/m365/spo/commands/app/app-deploy.js +41 -59
- package/dist/m365/spo/commands/app/app-get.js +40 -56
- package/dist/m365/spo/commands/app/app-install.js +20 -41
- package/dist/m365/spo/commands/app/app-instance-list.js +12 -24
- package/dist/m365/spo/commands/app/app-list.js +26 -44
- package/dist/m365/spo/commands/app/app-remove.js +32 -52
- package/dist/m365/spo/commands/app/app-retract.js +32 -51
- package/dist/m365/spo/commands/app/app-teamspackage-download.js +35 -54
- package/dist/m365/spo/commands/app/app-uninstall.js +21 -44
- package/dist/m365/spo/commands/app/app-upgrade.js +20 -41
- package/dist/m365/spo/commands/commandset/commandset-add.js +17 -59
- package/dist/m365/spo/commands/commandset/commandset-get.js +24 -62
- package/dist/m365/spo/commands/commandset/commandset-list.js +11 -34
- package/dist/m365/spo/commands/commandset/commandset-remove.js +21 -54
- package/dist/m365/spo/commands/commandset/commandset-set.js +30 -83
- package/dist/m365/spo/commands/feature/feature-disable.js +20 -50
- package/dist/m365/spo/commands/feature/feature-enable.js +22 -50
- package/dist/m365/spo/commands/feature/feature-list.js +11 -36
- package/dist/m365/spo/commands/field/field-add.js +33 -62
- package/dist/m365/spo/commands/field/field-get.js +30 -57
- package/dist/m365/spo/commands/field/field-list.js +21 -46
- package/dist/m365/spo/commands/field/field-remove.js +32 -63
- package/dist/m365/spo/commands/field/field-set.js +34 -66
- package/dist/m365/spo/commands/file/file-get.js +4 -3
- package/dist/m365/spo/commands/folder/folder-unarchive.js +90 -0
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +38 -63
- package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +11 -27
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +25 -47
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +25 -37
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +12 -24
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +10 -18
- package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +14 -32
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +12 -29
- package/dist/m365/spo/commands/hubsite/hubsite-set.js +19 -46
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +11 -27
- package/dist/m365/spo/commands/listitem/listitem-get.js +1 -12
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +74 -120
- package/dist/m365/spo/commands/navigation/navigation-node-get.js +4 -13
- package/dist/m365/spo/commands/navigation/navigation-node-list.js +6 -4
- package/dist/m365/spo/commands/navigation/navigation-node-set.js +53 -114
- package/dist/m365/spo/commands/page/page-unpublish.js +53 -0
- package/dist/m365/spo/commands/site/site-remove.js +3 -9
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +22 -37
- package/dist/m365/spo/commands/sitescript/sitescript-get.js +9 -26
- package/dist/m365/spo/commands/sitescript/sitescript-list.js +5 -0
- package/dist/m365/spo/commands/sitescript/sitescript-remove.js +9 -33
- package/dist/m365/spo/commands/sitescript/sitescript-set.js +29 -56
- package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +1 -1
- package/dist/m365/spo/commands/web/web-rule-get.js +47 -0
- package/dist/m365/spo/commands/web/web-rule-list.js +113 -0
- package/dist/m365/spo/commands/web/web-rule-remove.js +54 -0
- package/dist/m365/spo/commands.js +6 -1
- package/dist/m365/spp/commands/contentcenter/contentcenter-list.js +5 -0
- package/dist/m365/spp/commands/model/model-get.js +25 -45
- package/dist/m365/spp/commands/model/model-list.js +12 -23
- package/dist/m365/spp/commands/model/model-remove.js +25 -45
- package/dist/m365/teams/commands/channel/channel-add.js +46 -57
- package/dist/m365/teams/commands/channel/channel-get.js +41 -48
- package/dist/m365/teams/commands/channel/channel-list.js +28 -42
- package/dist/m365/teams/commands/channel/channel-member-add.js +53 -54
- package/dist/m365/teams/commands/channel/channel-member-list.js +47 -55
- package/dist/m365/teams/commands/channel/channel-member-remove.js +62 -62
- package/dist/m365/teams/commands/channel/channel-member-set.js +61 -65
- package/dist/m365/teams/commands/channel/channel-remove.js +47 -49
- package/dist/m365/teams/commands/channel/channel-set.js +47 -54
- package/dist/m365/teams/commands/chat/chat-get.js +30 -45
- package/dist/m365/teams/commands/chat/chat-list.js +22 -42
- package/dist/m365/teams/commands/chat/chat-member-add.js +43 -64
- package/dist/m365/teams/commands/chat/chat-member-list.js +10 -23
- package/dist/m365/teams/commands/chat/chat-member-remove.js +28 -50
- package/dist/m365/teams/commands/chat/chat-message-send.js +32 -55
- package/dist/m365/teams/commands/meeting/meeting-add.js +57 -68
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-get.js +33 -58
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +14 -38
- package/dist/m365/teams/commands/meeting/meeting-get.js +14 -38
- package/dist/m365/teams/commands/meeting/meeting-list.js +34 -59
- package/dist/m365/teams/commands/meeting/meeting-transcript-get.js +34 -58
- package/dist/m365/teams/commands/meeting/meeting-transcript-list.js +29 -50
- package/dist/m365/teams/commands/message/message-get.js +19 -30
- package/dist/m365/teams/commands/message/message-list.js +26 -43
- package/dist/m365/teams/commands/message/message-remove.js +43 -58
- package/dist/m365/teams/commands/message/message-reply-list.js +19 -30
- package/dist/m365/teams/commands/message/message-restore.js +40 -50
- package/dist/m365/teams/commands/message/message-send.js +19 -30
- package/dist/m365/util/commands/accesstoken/accesstoken-get.js +10 -28
- package/dist/telemetry.js +7 -11
- package/dist/utils/spo.js +40 -3
- package/dist/utils/urlUtil.js +2 -2
- package/docs/docs/cmd/entra/m365group/m365group-remove.mdx +0 -3
- package/docs/docs/cmd/login.mdx +15 -2
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-archive.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkin.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkout.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-copy.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-get.mdx +6 -6
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +22 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +24 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +22 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +22 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +24 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +22 -1
- package/docs/docs/cmd/spo/file/file-unarchive.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-keep.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-restore.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-archive.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-copy.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-get.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx +22 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-clear.mdx +23 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +22 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx +24 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-set.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-unarchive.mdx +76 -0
- package/docs/docs/cmd/spo/listitem/listitem-get.mdx +0 -6
- package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +45 -30
- package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +64 -42
- package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +37 -27
- package/docs/docs/cmd/spo/navigation/navigation-node-set.mdx +10 -8
- package/docs/docs/cmd/spo/page/page-unpublish.mdx +63 -0
- package/docs/docs/cmd/spo/site/site-remove.mdx +0 -3
- package/docs/docs/cmd/spo/web/web-rule-get.mdx +108 -0
- package/docs/docs/cmd/spo/web/web-rule-list.mdx +189 -0
- package/docs/docs/cmd/spo/web/web-rule-remove.mdx +65 -0
- package/docs/docs/cmd/spp/model/model-get.mdx +1 -1
- package/docs/docs/cmd/spp/model/model-remove.mdx +1 -1
- package/docs/docs/cmd/teams/tab/tab-add.mdx +19 -0
- package/docs/docs/cmd/teams/tab/tab-get.mdx +19 -0
- package/docs/docs/cmd/teams/tab/tab-list.mdx +19 -0
- package/docs/docs/cmd/teams/tab/tab-remove.mdx +21 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-add.mdx +19 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-get.mdx +19 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-list.mdx +19 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-remove.mdx +19 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-set.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.mdx +19 -0
- package/docs/docs/cmd/viva/engage/engage-message-add.mdx +17 -0
- package/docs/docs/cmd/viva/engage/engage-message-get.mdx +17 -0
- package/docs/docs/cmd/viva/engage/engage-message-list.mdx +17 -0
- package/docs/docs/cmd/viva/engage/engage-message-remove.mdx +19 -0
- package/npm-shrinkwrap.json +702 -3230
- package/package.json +21 -38
- package/dist/appInsights.js +0 -43
|
@@ -25,7 +25,7 @@ m365 spo file version restore [options]
|
|
|
25
25
|
: The server- or site-relative decoded URL of the file whose version will be restored. Specify either `fileUrl` or `fileId` but not both.
|
|
26
26
|
|
|
27
27
|
`-i, --fileId [fileId]`
|
|
28
|
-
: The
|
|
28
|
+
: The unique ID (GUID) of the file whose version will be restored. Specify either `fileUrl` or `fileId` but not both.
|
|
29
29
|
|
|
30
30
|
`-f, --force`
|
|
31
31
|
: Don't prompt for confirmation.
|
|
@@ -22,7 +22,7 @@ m365 spo folder archive [options]
|
|
|
22
22
|
: The server- or site-relative decoded URL of the folder to archive. Specify either `url` or `id`, but not both.
|
|
23
23
|
|
|
24
24
|
`-i, --id [id]`
|
|
25
|
-
: The
|
|
25
|
+
: The unique ID (GUID) of the folder to archive. Specify either `url` or `id`, but not both.
|
|
26
26
|
|
|
27
27
|
`-f, --force`
|
|
28
28
|
: Don't prompt for confirmation.
|
|
@@ -22,7 +22,7 @@ m365 spo folder copy [options]
|
|
|
22
22
|
: The server-, site-relative or absolute decoded URL of the folder to copy. Specify either `sourceUrl` or `sourceId` but not both.
|
|
23
23
|
|
|
24
24
|
`-i, --sourceId [sourceId]`
|
|
25
|
-
: The
|
|
25
|
+
: The unique ID (GUID) of the folder. Specify either `sourceUrl` or `sourceId` but not both.
|
|
26
26
|
|
|
27
27
|
`-t, --targetUrl <targetUrl>`
|
|
28
28
|
: Server-relative or absolute decoded URL where to copy the folder.
|
|
@@ -22,7 +22,7 @@ m365 spo folder get [options]
|
|
|
22
22
|
: The server- or site-relative decoded URL of the folder to retrieve. Specify either `folderUrl` or `id` but not both.
|
|
23
23
|
|
|
24
24
|
`-i, --id [id]`
|
|
25
|
-
: The
|
|
25
|
+
: The unique ID (GUID) of the folder to retrieve. Specify either `url` or `id` but not both.
|
|
26
26
|
|
|
27
27
|
`--withPermissions`
|
|
28
28
|
: Set if you want to return associated roles and permissions of the folder.
|
|
@@ -63,7 +63,7 @@ Get folder properties for a folder with a specific site-relative URL.
|
|
|
63
63
|
m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/project-x --url "/Shared Documents"
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
Get folder properties for a folder with a specific id (
|
|
66
|
+
Get folder properties for a folder with a specific id (unique ID).
|
|
67
67
|
|
|
68
68
|
```sh
|
|
69
69
|
m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/project-x --id "b2307a39-e878-458b-bc90-03bc578531d6"
|
|
@@ -22,7 +22,7 @@ m365 spo folder retentionlabel ensure [options]
|
|
|
22
22
|
: The server- or site-relative decoded URL of the folder that should be labelled. Specify either `folderUrl` or `folderId` but not both.
|
|
23
23
|
|
|
24
24
|
`-i, --folderId [folderId]`
|
|
25
|
-
: The
|
|
25
|
+
: The unique ID (GUID) of the folder that should be labelled. Specify either `folderUrl` or `folderId` but not both.
|
|
26
26
|
|
|
27
27
|
`--name <name>`
|
|
28
28
|
: Name of the retention label to apply to the folder.
|
|
@@ -22,7 +22,7 @@ m365 spo folder retentionlabel remove [options]
|
|
|
22
22
|
: The server- or site-relative decoded URL of the folder of which the label should be removed. Specify either `folderUrl` or `folderId` but not both.
|
|
23
23
|
|
|
24
24
|
`-i, --folderId [folderId]`
|
|
25
|
-
: The
|
|
25
|
+
: The unique ID (GUID) of the folder of which the label should be removed. Specify either `folderUrl` or `folderId` but not both.
|
|
26
26
|
|
|
27
27
|
`-f, --force`
|
|
28
28
|
: Don't prompt for confirming to remove the label.
|
|
@@ -22,7 +22,7 @@ m365 spo folder sharinglink add [options]
|
|
|
22
22
|
: The server- or site-relative decoded URL of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
23
23
|
|
|
24
24
|
`--folderId [folderId]`
|
|
25
|
-
: The
|
|
25
|
+
: The unique ID (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
26
26
|
|
|
27
27
|
`--type <type>`
|
|
28
28
|
: The type of sharing link to create. Either `view` or `edit`.
|
|
@@ -42,6 +42,27 @@ m365 spo folder sharinglink add [options]
|
|
|
42
42
|
|
|
43
43
|
<Global />
|
|
44
44
|
|
|
45
|
+
## Permissions
|
|
46
|
+
|
|
47
|
+
<Tabs>
|
|
48
|
+
<TabItem value="Delegated">
|
|
49
|
+
|
|
50
|
+
| Resource | Permissions |
|
|
51
|
+
|-----------------|---------------------------------|
|
|
52
|
+
| Microsoft Graph | Files.ReadWrite, Sites.Read.All |
|
|
53
|
+
| SharePoint | AllSites.Read |
|
|
54
|
+
|
|
55
|
+
</TabItem>
|
|
56
|
+
<TabItem value="Application">
|
|
57
|
+
|
|
58
|
+
| Resource | Permissions |
|
|
59
|
+
|-----------------|-------------------------------------|
|
|
60
|
+
| Microsoft Graph | Files.ReadWrite.All, Sites.Read.All |
|
|
61
|
+
| SharePoint | Sites.Read.All |
|
|
62
|
+
|
|
63
|
+
</TabItem>
|
|
64
|
+
</Tabs>
|
|
65
|
+
|
|
45
66
|
## Examples
|
|
46
67
|
|
|
47
68
|
Creates a view-only anonymous sharing link of a folder by id.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# spo folder sharinglink clear
|
|
4
6
|
|
|
@@ -31,6 +33,27 @@ m365 spo folder sharinglink clear [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 | Files.ReadWrite, Sites.Read.All |
|
|
44
|
+
| SharePoint | AllSites.Read |
|
|
45
|
+
|
|
46
|
+
</TabItem>
|
|
47
|
+
<TabItem value="Application">
|
|
48
|
+
|
|
49
|
+
| Resource | Permissions |
|
|
50
|
+
|-----------------|-------------------------------------|
|
|
51
|
+
| Microsoft Graph | Files.ReadWrite.All, Sites.Read.All |
|
|
52
|
+
| SharePoint | Sites.Read.All |
|
|
53
|
+
|
|
54
|
+
</TabItem>
|
|
55
|
+
</Tabs>
|
|
56
|
+
|
|
34
57
|
## Examples
|
|
35
58
|
|
|
36
59
|
Removes all sharing links from a folder specified by id without prompting for confirmation.
|
|
@@ -30,6 +30,27 @@ m365 spo folder sharinglink get [options]
|
|
|
30
30
|
|
|
31
31
|
<Global />
|
|
32
32
|
|
|
33
|
+
## Permissions
|
|
34
|
+
|
|
35
|
+
<Tabs>
|
|
36
|
+
<TabItem value="Delegated">
|
|
37
|
+
|
|
38
|
+
| Resource | Permissions |
|
|
39
|
+
|-----------------|----------------------------|
|
|
40
|
+
| Microsoft Graph | Files.Read, Sites.Read.All |
|
|
41
|
+
| SharePoint | AllSites.Read |
|
|
42
|
+
|
|
43
|
+
</TabItem>
|
|
44
|
+
<TabItem value="Application">
|
|
45
|
+
|
|
46
|
+
| Resource | Permissions |
|
|
47
|
+
|-----------------|--------------------------------|
|
|
48
|
+
| Microsoft Graph | Files.Read.All, Sites.Read.All |
|
|
49
|
+
| SharePoint | Sites.Read.All |
|
|
50
|
+
|
|
51
|
+
</TabItem>
|
|
52
|
+
</Tabs>
|
|
53
|
+
|
|
33
54
|
## Examples
|
|
34
55
|
|
|
35
56
|
Gets a specific sharing link of a folder by id.
|
|
@@ -22,7 +22,7 @@ m365 spo folder sharinglink list [options]
|
|
|
22
22
|
: The server- or site-relative decoded URL of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
23
23
|
|
|
24
24
|
`--folderId [folderId]`
|
|
25
|
-
: The
|
|
25
|
+
: The unique ID (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
26
26
|
|
|
27
27
|
`-s, --scope [scope]`
|
|
28
28
|
: Filter the results to only sharing links of a given scope: `anonymous`, `users` or `organization`. By default all sharing links are listed.
|
|
@@ -30,6 +30,27 @@ m365 spo folder sharinglink list [options]
|
|
|
30
30
|
|
|
31
31
|
<Global />
|
|
32
32
|
|
|
33
|
+
## Permissions
|
|
34
|
+
|
|
35
|
+
<Tabs>
|
|
36
|
+
<TabItem value="Delegated">
|
|
37
|
+
|
|
38
|
+
| Resource | Permissions |
|
|
39
|
+
|-----------------|----------------------------|
|
|
40
|
+
| Microsoft Graph | Files.Read, Sites.Read.All |
|
|
41
|
+
| SharePoint | AllSites.Read |
|
|
42
|
+
|
|
43
|
+
</TabItem>
|
|
44
|
+
<TabItem value="Application">
|
|
45
|
+
|
|
46
|
+
| Resource | Permissions |
|
|
47
|
+
|-----------------|--------------------------------|
|
|
48
|
+
| Microsoft Graph | Files.Read.All, Sites.Read.All |
|
|
49
|
+
| SharePoint | Sites.Read.All |
|
|
50
|
+
|
|
51
|
+
</TabItem>
|
|
52
|
+
</Tabs>
|
|
53
|
+
|
|
33
54
|
## Examples
|
|
34
55
|
|
|
35
56
|
List sharing links of a folder by id.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# spo folder sharinglink remove
|
|
4
6
|
|
|
@@ -20,7 +22,7 @@ m365 spo folder sharinglink remove [options]
|
|
|
20
22
|
: The server- or site-relative decoded URL of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
21
23
|
|
|
22
24
|
`--folderId [folderId]`
|
|
23
|
-
: The
|
|
25
|
+
: The unique ID (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
24
26
|
|
|
25
27
|
`-i, --id <id>`
|
|
26
28
|
: The ID of the sharing link.
|
|
@@ -31,6 +33,27 @@ m365 spo folder sharinglink remove [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 | Files.ReadWrite, Sites.Read.All |
|
|
44
|
+
| SharePoint | AllSites.Read |
|
|
45
|
+
|
|
46
|
+
</TabItem>
|
|
47
|
+
<TabItem value="Application">
|
|
48
|
+
|
|
49
|
+
| Resource | Permissions |
|
|
50
|
+
|-----------------|-------------------------------------|
|
|
51
|
+
| Microsoft Graph | Files.ReadWrite.All, Sites.Read.All |
|
|
52
|
+
| SharePoint | Sites.Read.All |
|
|
53
|
+
|
|
54
|
+
</TabItem>
|
|
55
|
+
</Tabs>
|
|
56
|
+
|
|
34
57
|
## Examples
|
|
35
58
|
|
|
36
59
|
Removes a specific sharing link from a folder by id without prompting for confirmation.
|
|
@@ -33,6 +33,27 @@ m365 spo folder sharinglink set [options]
|
|
|
33
33
|
|
|
34
34
|
<Global />
|
|
35
35
|
|
|
36
|
+
## Permissions
|
|
37
|
+
|
|
38
|
+
<Tabs>
|
|
39
|
+
<TabItem value="Delegated">
|
|
40
|
+
|
|
41
|
+
| Resource | Permissions |
|
|
42
|
+
|-----------------|---------------------------------|
|
|
43
|
+
| Microsoft Graph | Files.ReadWrite, Sites.Read.All |
|
|
44
|
+
| SharePoint | AllSites.Read |
|
|
45
|
+
|
|
46
|
+
</TabItem>
|
|
47
|
+
<TabItem value="Application">
|
|
48
|
+
|
|
49
|
+
| Resource | Permissions |
|
|
50
|
+
|-----------------|-------------------------------------|
|
|
51
|
+
| Microsoft Graph | Files.ReadWrite.All, Sites.Read.All |
|
|
52
|
+
| SharePoint | Sites.Read.All |
|
|
53
|
+
|
|
54
|
+
</TabItem>
|
|
55
|
+
</Tabs>
|
|
56
|
+
|
|
36
57
|
## Examples
|
|
37
58
|
|
|
38
59
|
Updates the expiration datetime of an anonymous sharing link for a folder specific by folder ID.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spo folder unarchive
|
|
6
|
+
|
|
7
|
+
Unarchives a folder
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spo folder unarchive [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-u, --webUrl <webUrl>`
|
|
19
|
+
: The URL of the site where the folder is located.
|
|
20
|
+
|
|
21
|
+
`--url [url]`
|
|
22
|
+
: The server- or site-relative decoded URL of the folder to unarchive. Specify either `url` or `id`, but not both.
|
|
23
|
+
|
|
24
|
+
`-i, --id [id]`
|
|
25
|
+
: The unique ID (GUID) of the folder to unarchive. Specify either `url` or `id`, but not both.
|
|
26
|
+
|
|
27
|
+
`-f, --force`
|
|
28
|
+
: Don't prompt for confirmation.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
<Global />
|
|
32
|
+
|
|
33
|
+
## Remarks
|
|
34
|
+
|
|
35
|
+
:::warning
|
|
36
|
+
|
|
37
|
+
Reactivation could take up to 24 hours. Folders that are reactivated cannot be archived again for **120 days**.
|
|
38
|
+
|
|
39
|
+
:::
|
|
40
|
+
|
|
41
|
+
## Permissions
|
|
42
|
+
|
|
43
|
+
<Tabs>
|
|
44
|
+
<TabItem value="Delegated">
|
|
45
|
+
|
|
46
|
+
| Resource | Permissions |
|
|
47
|
+
|------------|----------------|
|
|
48
|
+
| SharePoint | AllSites.Write |
|
|
49
|
+
|
|
50
|
+
</TabItem>
|
|
51
|
+
<TabItem value="Application">
|
|
52
|
+
|
|
53
|
+
| Resource | Permissions |
|
|
54
|
+
|------------|---------------------|
|
|
55
|
+
| SharePoint | Sites.ReadWrite.All |
|
|
56
|
+
|
|
57
|
+
</TabItem>
|
|
58
|
+
</Tabs>
|
|
59
|
+
|
|
60
|
+
## Examples
|
|
61
|
+
|
|
62
|
+
Unarchive a folder without prompting for confirmation
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
m365 spo folder unarchive --webUrl https://contoso.sharepoint.com/sites/Marketing --id 7a8c9207-7745-4cda-b0e2-be2618ee3030 --force
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Unarchive a folder by URL with prompting for confirmation
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
m365 spo folder unarchive --webUrl https://contoso.sharepoint.com/sites/Marketing --url '/sites/Marketing/documents/general'
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Response
|
|
75
|
+
|
|
76
|
+
The command won't return a response on success.
|
|
@@ -44,12 +44,6 @@ m365 spo listitem get [options]
|
|
|
44
44
|
|
|
45
45
|
## Remarks
|
|
46
46
|
|
|
47
|
-
:::note
|
|
48
|
-
|
|
49
|
-
The `--properties` option has been renamed to `--fields`. If you use `--properties`, the command still works but shows a deprecation warning.
|
|
50
|
-
|
|
51
|
-
:::
|
|
52
|
-
|
|
53
47
|
If you want to specify a lookup type in the `fields` option, define which columns from the related list should be returned.
|
|
54
48
|
|
|
55
49
|
## Examples
|
|
@@ -30,9 +30,6 @@ m365 spo navigation node add [options]
|
|
|
30
30
|
`--parentNodeId [parentNodeId]`
|
|
31
31
|
: ID of the node below which the node should be added. Specify either `location` or `parentNodeId` but not both.
|
|
32
32
|
|
|
33
|
-
`--isExternal`
|
|
34
|
-
: Set, if the navigation node points to an external URL.
|
|
35
|
-
|
|
36
33
|
`--audienceIds [audienceIds]`
|
|
37
34
|
: Comma-separated list of group IDs that will be used for audience targeting. The limit is 10 ids per navigation node.
|
|
38
35
|
|
|
@@ -57,7 +54,7 @@ m365 spo navigation node add --webUrl https://contoso.sharepoint.com/sites/team-
|
|
|
57
54
|
Add a navigation node pointing to an external page to the quick launch.
|
|
58
55
|
|
|
59
56
|
```sh
|
|
60
|
-
m365 spo navigation node add --webUrl https://contoso.sharepoint.com/sites/team-a --location QuickLaunch --title "About us" --url https://contoso.com/about-us
|
|
57
|
+
m365 spo navigation node add --webUrl https://contoso.sharepoint.com/sites/team-a --location QuickLaunch --title "About us" --url https://contoso.com/about-us
|
|
61
58
|
```
|
|
62
59
|
|
|
63
60
|
Add a navigation node below an existing node and opens it in a new window.
|
|
@@ -72,6 +69,12 @@ Add a navigation node to the top navigation which is audience targetted and open
|
|
|
72
69
|
m365 spo navigation node add --webUrl https://contoso.sharepoint.com/sites/team-a --location TopNavigationBar --title About --url /sites/team-s/sitepages/about.aspx --audienceIds "7aa4a1ca-4035-4f2f-bac7-7beada59b5ba,4bbf236f-a131-4019-b4a2-315902fcfa3a" --openInNewWindow
|
|
73
70
|
```
|
|
74
71
|
|
|
72
|
+
Add a linkless label to the quick launch.
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
m365 spo navigation node add --webUrl https://contoso.sharepoint.com/sites/team-a --location QuickLaunch --title Resources
|
|
76
|
+
```
|
|
77
|
+
|
|
75
78
|
## Response
|
|
76
79
|
|
|
77
80
|
<Tabs>
|
|
@@ -83,13 +86,18 @@ m365 spo navigation node add --webUrl https://contoso.sharepoint.com/sites/team-
|
|
|
83
86
|
"7aa4a1ca-4035-4f2f-bac7-7beada59b5ba"
|
|
84
87
|
],
|
|
85
88
|
"CurrentLCID": 1033,
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
89
|
+
"CustomProperties": [],
|
|
90
|
+
"FriendlyUrlSegment": "",
|
|
91
|
+
"IsDeleted": false,
|
|
92
|
+
"IsHidden": false,
|
|
93
|
+
"IsTitleForExistingLanguage": false,
|
|
94
|
+
"Key": "2030",
|
|
95
|
+
"Nodes": [],
|
|
96
|
+
"NodeType": 0,
|
|
97
|
+
"OpenInNewWindow": true,
|
|
98
|
+
"SimpleUrl": "https://contoso.sharepoint.com",
|
|
91
99
|
"Title": "Navigation Link",
|
|
92
|
-
"
|
|
100
|
+
"Translations": []
|
|
93
101
|
}
|
|
94
102
|
```
|
|
95
103
|
|
|
@@ -97,45 +105,52 @@ m365 spo navigation node add --webUrl https://contoso.sharepoint.com/sites/team-
|
|
|
97
105
|
<TabItem value="Text">
|
|
98
106
|
|
|
99
107
|
```text
|
|
100
|
-
AudienceIds
|
|
101
|
-
CurrentLCID
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
AudienceIds : ["7aa4a1ca-4035-4f2f-bac7-7beada59b5ba"]
|
|
109
|
+
CurrentLCID : 1033
|
|
110
|
+
CustomProperties : []
|
|
111
|
+
FriendlyUrlSegment :
|
|
112
|
+
IsDeleted : false
|
|
113
|
+
IsHidden : false
|
|
114
|
+
IsTitleForExistingLanguage: false
|
|
115
|
+
Key : 2030
|
|
116
|
+
NodeType : 0
|
|
117
|
+
Nodes : []
|
|
118
|
+
OpenInNewWindow : true
|
|
119
|
+
SimpleUrl : https://contoso.sharepoint.com
|
|
120
|
+
Title : Navigation Link
|
|
121
|
+
Translations : []
|
|
109
122
|
```
|
|
110
123
|
|
|
111
124
|
</TabItem>
|
|
112
125
|
<TabItem value="CSV">
|
|
113
126
|
|
|
114
127
|
```csv
|
|
115
|
-
|
|
116
|
-
|
|
128
|
+
CurrentLCID,FriendlyUrlSegment,IsDeleted,IsHidden,IsTitleForExistingLanguage,Key,NodeType,OpenInNewWindow,SimpleUrl,Title
|
|
129
|
+
1033,,0,0,0,2030,0,1,https://contoso.sharepoint.com,Navigation Link
|
|
117
130
|
```
|
|
118
131
|
|
|
119
132
|
</TabItem>
|
|
120
133
|
<TabItem value="Markdown">
|
|
121
134
|
|
|
122
135
|
```md
|
|
123
|
-
# spo navigation node
|
|
136
|
+
# spo navigation node add --webUrl "https://contoso.sharepoint.com/sites/team-a" --location "TopNavigationBar" --title "Navigation Link" --url "https://contoso.sharepoint.com" --openInNewWindow "true"
|
|
124
137
|
|
|
125
|
-
Date:
|
|
138
|
+
Date: 10/7/2026
|
|
126
139
|
|
|
127
|
-
## Navigation Link
|
|
140
|
+
## Navigation Link
|
|
128
141
|
|
|
129
142
|
Property | Value
|
|
130
143
|
---------|-------
|
|
131
144
|
CurrentLCID | 1033
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
145
|
+
FriendlyUrlSegment |
|
|
146
|
+
IsDeleted | false
|
|
147
|
+
IsHidden | false
|
|
148
|
+
IsTitleForExistingLanguage | false
|
|
149
|
+
Key | 2030
|
|
150
|
+
NodeType | 0
|
|
151
|
+
OpenInNewWindow | true
|
|
152
|
+
SimpleUrl | https://contoso.sharepoint.com
|
|
137
153
|
Title | Navigation Link
|
|
138
|
-
Url | https://contoso.sharepoint.com
|
|
139
154
|
```
|
|
140
155
|
|
|
141
156
|
</TabItem>
|
|
@@ -18,6 +18,9 @@ m365 spo navigation node get [options]
|
|
|
18
18
|
`-u, --webUrl <webUrl>`
|
|
19
19
|
: Absolute URL of the site.
|
|
20
20
|
|
|
21
|
+
`-l, --location <location>`
|
|
22
|
+
: Navigation type where the node is located. Available options: `QuickLaunch`, `TopNavigationBar`.
|
|
23
|
+
|
|
21
24
|
`--id <id>`
|
|
22
25
|
: Id of the navigation node.
|
|
23
26
|
```
|
|
@@ -45,10 +48,16 @@ m365 spo navigation node get [options]
|
|
|
45
48
|
|
|
46
49
|
## Examples
|
|
47
50
|
|
|
48
|
-
Retrieve information for a specific navigation node.
|
|
51
|
+
Retrieve information for a specific navigation node from the quick launch.
|
|
49
52
|
|
|
50
53
|
```sh
|
|
51
|
-
m365 spo navigation node get --webUrl https://contoso.sharepoint.com/sites/Marketing --id 2209
|
|
54
|
+
m365 spo navigation node get --webUrl https://contoso.sharepoint.com/sites/Marketing --location QuickLaunch --id 2209
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Retrieve information for a specific navigation node from the top navigation.
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
m365 spo navigation node get --webUrl https://contoso.sharepoint.com/sites/Marketing --location TopNavigationBar --id 2209
|
|
52
61
|
```
|
|
53
62
|
|
|
54
63
|
## Response
|
|
@@ -58,31 +67,39 @@ m365 spo navigation node get --webUrl https://contoso.sharepoint.com/sites/Marke
|
|
|
58
67
|
|
|
59
68
|
```json
|
|
60
69
|
{
|
|
61
|
-
"
|
|
70
|
+
"AudienceIds": [
|
|
71
|
+
"0d718612-8407-4d6b-833c-6891a553354f"
|
|
72
|
+
],
|
|
73
|
+
"CurrentLCID": 1033,
|
|
74
|
+
"CustomProperties": [],
|
|
75
|
+
"FriendlyUrlSegment": "",
|
|
76
|
+
"IsDeleted": false,
|
|
77
|
+
"IsHidden": false,
|
|
78
|
+
"IsTitleForExistingLanguage": false,
|
|
79
|
+
"Key": "2209",
|
|
80
|
+
"Nodes": [
|
|
62
81
|
{
|
|
63
|
-
"AudienceIds":
|
|
82
|
+
"AudienceIds": [],
|
|
64
83
|
"CurrentLCID": 1033,
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
84
|
+
"CustomProperties": [],
|
|
85
|
+
"FriendlyUrlSegment": "",
|
|
86
|
+
"IsDeleted": false,
|
|
87
|
+
"IsHidden": false,
|
|
88
|
+
"IsTitleForExistingLanguage": false,
|
|
89
|
+
"Key": "2210",
|
|
90
|
+
"Nodes": [],
|
|
91
|
+
"NodeType": 0,
|
|
92
|
+
"OpenInNewWindow": true,
|
|
93
|
+
"SimpleUrl": "https://microsoft365.com",
|
|
70
94
|
"Title": "Microsoft 365",
|
|
71
|
-
"
|
|
72
|
-
"Children": []
|
|
95
|
+
"Translations": []
|
|
73
96
|
}
|
|
74
97
|
],
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"CurrentLCID": 1033,
|
|
79
|
-
"Id": 2209,
|
|
80
|
-
"IsDocLib": true,
|
|
81
|
-
"IsExternal": false,
|
|
82
|
-
"IsVisible": true,
|
|
83
|
-
"ListTemplateType": 100,
|
|
98
|
+
"NodeType": 0,
|
|
99
|
+
"OpenInNewWindow": null,
|
|
100
|
+
"SimpleUrl": "/sites/Marketing/Lists/Work Status/AllItems.aspx",
|
|
84
101
|
"Title": "Work Status",
|
|
85
|
-
"
|
|
102
|
+
"Translations": []
|
|
86
103
|
}
|
|
87
104
|
```
|
|
88
105
|
|
|
@@ -90,46 +107,51 @@ m365 spo navigation node get --webUrl https://contoso.sharepoint.com/sites/Marke
|
|
|
90
107
|
<TabItem value="Text">
|
|
91
108
|
|
|
92
109
|
```text
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
110
|
+
AudienceIds : ["0d718612-8407-4d6b-833c-6891a553354f"]
|
|
111
|
+
CurrentLCID : 1033
|
|
112
|
+
CustomProperties : []
|
|
113
|
+
FriendlyUrlSegment :
|
|
114
|
+
IsDeleted : false
|
|
115
|
+
IsHidden : false
|
|
116
|
+
IsTitleForExistingLanguage: false
|
|
117
|
+
Key : 2209
|
|
118
|
+
NodeType : 0
|
|
119
|
+
Nodes : [{"AudienceIds":[],"CurrentLCID":1033,"CustomProperties":[],"FriendlyUrlSegment":"","IsDeleted":false,"IsHidden":false,"IsTitleForExistingLanguage":false,"Key":"2210","Nodes":[],"NodeType":0,"OpenInNewWindow":true,"SimpleUrl":"https://microsoft365.com","Title":"Microsoft 365","Translations":[]}]
|
|
120
|
+
OpenInNewWindow : null
|
|
121
|
+
SimpleUrl : /sites/Marketing/Lists/Work Status/AllItems.aspx
|
|
122
|
+
Title : Work Status
|
|
123
|
+
Translations : []
|
|
103
124
|
```
|
|
104
125
|
|
|
105
126
|
</TabItem>
|
|
106
127
|
<TabItem value="CSV">
|
|
107
128
|
|
|
108
129
|
```csv
|
|
109
|
-
CurrentLCID,
|
|
110
|
-
1033,
|
|
130
|
+
CurrentLCID,FriendlyUrlSegment,IsDeleted,IsHidden,IsTitleForExistingLanguage,Key,NodeType,OpenInNewWindow,SimpleUrl,Title
|
|
131
|
+
1033,,0,0,0,2209,0,,/sites/Marketing/Lists/Work Status/AllItems.aspx,Work Status
|
|
111
132
|
```
|
|
112
133
|
|
|
113
134
|
</TabItem>
|
|
114
135
|
<TabItem value="Markdown">
|
|
115
136
|
|
|
116
137
|
```md
|
|
117
|
-
# spo navigation node get --webUrl "https://contoso.sharepoint.com/sites/Marketing" --id "2209"
|
|
138
|
+
# spo navigation node get --webUrl "https://contoso.sharepoint.com/sites/Marketing" --location "QuickLaunch" --id "2209"
|
|
118
139
|
|
|
119
|
-
Date:
|
|
140
|
+
Date: 10/7/2026
|
|
120
141
|
|
|
121
|
-
## Work Status
|
|
142
|
+
## Work Status
|
|
122
143
|
|
|
123
144
|
Property | Value
|
|
124
145
|
---------|-------
|
|
125
146
|
CurrentLCID | 1033
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
147
|
+
FriendlyUrlSegment |
|
|
148
|
+
IsDeleted | false
|
|
149
|
+
IsHidden | false
|
|
150
|
+
IsTitleForExistingLanguage | false
|
|
151
|
+
Key | 2209
|
|
152
|
+
NodeType | 0
|
|
153
|
+
SimpleUrl | /sites/Marketing/Lists/Work Status/AllItems.aspx
|
|
131
154
|
Title | Work Status
|
|
132
|
-
Url | /sites/Marketing/Lists/Work Status/AllItems.aspx
|
|
133
155
|
```
|
|
134
156
|
|
|
135
157
|
</TabItem>
|