@pnp/cli-microsoft365 7.1.0-beta.8b56e1d → 7.1.0-beta.99de250
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/dist/Auth.js +1 -1
- package/dist/appInsights.js +5 -9
- package/dist/cli/Cli.js +6 -2
- package/dist/m365/spo/commands/feature/feature-disable.js +8 -6
- package/dist/m365/spo/commands/feature/feature-enable.js +6 -5
- package/dist/m365/spo/commands/user/user-get.js +7 -1
- package/dist/telemetry.js +30 -14
- package/dist/telemetryRunner.js +26 -0
- package/docs/docs/cmd/aad/license/license-list.mdx +21 -16
- package/docs/docs/cmd/aad/m365group/m365group-add.mdx +1 -1
- package/docs/docs/cmd/aad/user/user-add.mdx +2 -4
- package/docs/docs/cmd/aad/user/user-license-add.mdx +2 -4
- package/docs/docs/cmd/aad/user/user-license-list.mdx +3 -5
- package/docs/docs/cmd/aad/user/user-recyclebinitem-list.mdx +1 -3
- package/docs/docs/cmd/aad/user/user-recyclebinitem-restore.mdx +1 -3
- package/docs/docs/cmd/flow/environment/environment-get.mdx +3 -4
- package/docs/docs/cmd/flow/environment/environment-list.mdx +3 -4
- package/docs/docs/cmd/flow/owner/owner-list.mdx +2 -3
- package/docs/docs/cmd/flow/run/run-list.mdx +6 -8
- package/docs/docs/cmd/graph/schemaextension/schemaextension-list.mdx +2 -3
- package/docs/docs/cmd/onenote/page/page-list.mdx +6 -9
- package/docs/docs/cmd/outlook/message/message-get.mdx +5 -15
- package/docs/docs/cmd/outlook/message/message-list.mdx +5 -14
- package/docs/docs/cmd/outlook/room/room-list.mdx +3 -6
- package/docs/docs/cmd/outlook/roomlist/roomlist-list.mdx +1 -3
- package/docs/docs/cmd/pa/app/app-get.mdx +4 -7
- package/docs/docs/cmd/pa/app/app-list.mdx +4 -7
- package/docs/docs/cmd/pa/connector/connector-list.mdx +2 -4
- package/docs/docs/cmd/pa/environment/environment-get.mdx +2 -4
- package/docs/docs/cmd/pa/environment/environment-list.mdx +1 -3
- package/docs/docs/cmd/planner/plan/plan-add.mdx +4 -11
- package/docs/docs/cmd/planner/plan/plan-get.mdx +4 -9
- package/docs/docs/cmd/planner/plan/plan-list.mdx +3 -6
- package/docs/docs/cmd/planner/plan/plan-set.mdx +3 -9
- package/docs/docs/cmd/planner/roster/roster-member-add.mdx +2 -4
- package/docs/docs/cmd/planner/roster/roster-member-get.mdx +2 -4
- package/docs/docs/cmd/planner/roster/roster-member-list.mdx +1 -3
- package/docs/docs/cmd/planner/task/task-add.mdx +4 -14
- package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +2 -4
- package/docs/docs/cmd/planner/task/task-checklistitem-list.mdx +1 -3
- package/docs/docs/cmd/planner/task/task-get.mdx +0 -7
- package/docs/docs/cmd/planner/task/task-list.mdx +1 -5
- package/docs/docs/cmd/planner/task/task-reference-add.mdx +0 -2
- package/docs/docs/cmd/planner/task/task-reference-list.mdx +0 -2
- package/docs/docs/cmd/planner/task/task-set.mdx +4 -13
- package/docs/docs/cmd/planner/tenant/tenant-settings-list.mdx +1 -3
- package/docs/docs/cmd/planner/tenant/tenant-settings-set.mdx +3 -5
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx +6 -8
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.mdx +4 -7
- package/docs/docs/cmd/pp/card/card-get.mdx +4 -8
- package/docs/docs/cmd/pp/card/card-list.mdx +0 -4
- package/docs/docs/cmd/pp/chatbot/chatbot-get.mdx +4 -6
- package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +3 -14
- package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +3 -14
- package/docs/docs/cmd/pp/environment/environment-get.mdx +3 -5
- package/docs/docs/cmd/pp/environment/environment-list.mdx +2 -4
- package/docs/docs/cmd/pp/gateway/gateway-get.mdx +0 -3
- package/docs/docs/cmd/pp/gateway/gateway-list.mdx +1 -4
- package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +4 -0
- package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +3 -8
- package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +1 -3
- package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +1 -5
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +0 -2
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +1 -3
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +1 -3
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +3 -6
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +3 -5
- package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +4 -8
- package/docs/docs/cmd/spo/app/app-add.mdx +94 -7
- package/docs/docs/cmd/spo/app/app-deploy.mdx +11 -7
- package/docs/docs/cmd/spo/app/app-get.mdx +117 -8
- package/docs/docs/cmd/spo/app/app-install.mdx +9 -5
- package/docs/docs/cmd/spo/app/app-instance-list.mdx +85 -2
- package/docs/docs/cmd/spo/app/app-list.mdx +95 -3
- package/docs/docs/cmd/spo/app/app-remove.mdx +11 -7
- package/docs/docs/cmd/spo/app/app-retract.mdx +9 -5
- package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +12 -8
- package/docs/docs/cmd/spo/app/app-uninstall.mdx +11 -7
- package/docs/docs/cmd/spo/app/app-upgrade.mdx +9 -5
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +4 -2
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +9 -7
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +6 -6
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-remove.mdx +12 -6
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +4 -2
- package/docs/docs/cmd/spo/apppage/apppage-add.mdx +54 -5
- package/docs/docs/cmd/spo/apppage/apppage-set.mdx +8 -4
- package/docs/docs/cmd/spo/cdn/cdn-get.mdx +36 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-add.mdx +7 -3
- package/docs/docs/cmd/spo/cdn/cdn-origin-list.mdx +48 -3
- package/docs/docs/cmd/spo/cdn/cdn-origin-remove.mdx +8 -4
- package/docs/docs/cmd/spo/cdn/cdn-policy-list.mdx +53 -3
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.mdx +7 -3
- package/docs/docs/cmd/spo/cdn/cdn-set.mdx +7 -3
- package/docs/docs/cmd/spo/commandset/commandset-add.mdx +6 -6
- package/docs/docs/cmd/spo/commandset/commandset-get.mdx +3 -5
- package/docs/docs/cmd/spo/commandset/commandset-list.mdx +6 -5
- package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +7 -3
- package/docs/docs/cmd/spo/commandset/commandset-set.mdx +6 -4
- package/docs/docs/cmd/spo/contenttype/contenttype-add.mdx +148 -9
- package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +19 -15
- package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +12 -8
- package/docs/docs/cmd/spo/contenttype/contenttype-get.mdx +147 -8
- package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +115 -4
- package/docs/docs/cmd/spo/contenttype/contenttype-remove.mdx +8 -4
- package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +8 -4
- package/docs/docs/cmd/spo/contenttypehub/contenttypehub-get.mdx +44 -0
- package/docs/docs/cmd/spo/customaction/customaction-add.mdx +12 -8
- package/docs/docs/cmd/spo/customaction/customaction-clear.mdx +10 -7
- package/docs/docs/cmd/spo/customaction/customaction-get.mdx +11 -15
- package/docs/docs/cmd/spo/customaction/customaction-list.mdx +87 -5
- package/docs/docs/cmd/spo/customaction/customaction-remove.mdx +17 -13
- package/docs/docs/cmd/spo/customaction/customaction-set.mdx +27 -23
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.mdx +29 -14
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-list.mdx +66 -5
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +4 -0
- package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +78 -7
- package/docs/docs/cmd/spo/feature/feature-disable.mdx +10 -6
- package/docs/docs/cmd/spo/feature/feature-enable.mdx +9 -5
- package/docs/docs/cmd/spo/feature/feature-list.mdx +52 -0
- package/docs/docs/cmd/spo/field/field-add.mdx +177 -11
- package/docs/docs/cmd/spo/field/field-get.mdx +175 -9
- package/docs/docs/cmd/spo/field/field-list.mdx +135 -8
- package/docs/docs/cmd/spo/field/field-remove.mdx +16 -12
- package/docs/docs/cmd/spo/field/field-set.mdx +15 -11
- package/docs/docs/cmd/spo/file/file-add.mdx +31 -27
- package/docs/docs/cmd/spo/file/file-checkin.mdx +13 -9
- package/docs/docs/cmd/spo/file/file-checkout.mdx +9 -5
- package/docs/docs/cmd/spo/file/file-copy.mdx +5 -5
- package/docs/docs/cmd/spo/file/file-get.mdx +89 -18
- package/docs/docs/cmd/spo/file/file-list.mdx +5 -5
- package/docs/docs/cmd/spo/file/file-move.mdx +5 -5
- package/docs/docs/cmd/spo/file/file-remove.mdx +13 -9
- package/docs/docs/cmd/spo/file/file-rename.mdx +63 -5
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +4 -0
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +7 -3
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +9 -5
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +10 -6
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +133 -5
- package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +21 -3
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +18 -0
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +20 -3
- package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +2 -7
- package/docs/docs/cmd/spo/file/file-version-clear.mdx +7 -7
- package/docs/docs/cmd/spo/file/file-version-get.mdx +28 -6
- package/docs/docs/cmd/spo/file/file-version-list.mdx +28 -6
- package/docs/docs/cmd/spo/file/file-version-remove.mdx +8 -8
- package/docs/docs/cmd/spo/file/file-version-restore.mdx +8 -8
- package/docs/docs/cmd/spo/folder/folder-add.mdx +3 -3
- package/docs/docs/cmd/spo/folder/folder-copy.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-get.mdx +257 -3
- package/docs/docs/cmd/spo/folder/folder-list.mdx +3 -4
- package/docs/docs/cmd/spo/folder/folder-move.mdx +5 -5
- package/docs/docs/cmd/spo/folder/folder-remove.mdx +6 -2
- package/docs/docs/cmd/spo/folder/folder-rename.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +3 -3
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +13 -8
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +8 -4
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +4 -0
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +5 -1
- package/docs/docs/cmd/spo/group/group-add.mdx +78 -0
- package/docs/docs/cmd/spo/group/group-get.mdx +81 -3
- package/docs/docs/cmd/spo/group/group-list.mdx +74 -3
- package/docs/docs/cmd/spo/group/group-member-add.mdx +13 -21
- package/docs/docs/cmd/spo/group/group-member-list.mdx +80 -5
- package/docs/docs/cmd/spo/group/group-member-remove.mdx +4 -4
- package/docs/docs/cmd/spo/group/group-remove.mdx +10 -6
- package/docs/docs/cmd/spo/group/group-set.mdx +9 -5
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.mdx +36 -1
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.mdx +6 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-data-get.mdx +0 -2
- package/docs/docs/cmd/spo/list/list-add.mdx +0 -3
- package/docs/docs/cmd/spo/list/list-contenttype-add.mdx +0 -2
- package/docs/docs/cmd/spo/list/list-contenttype-list.mdx +0 -2
- package/docs/docs/cmd/spo/list/list-get.mdx +1 -4
- package/docs/docs/cmd/spo/list/list-list.mdx +0 -4
- package/docs/docs/cmd/spo/list/list-view-add.mdx +0 -3
- package/docs/docs/cmd/spo/list/list-view-get.mdx +9 -12
- package/docs/docs/cmd/spo/list/list-view-list.mdx +4 -7
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +8 -11
- package/docs/docs/cmd/spo/listitem/listitem-get.mdx +0 -2
- package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +4 -6
- package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +0 -2
- package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +4 -6
- package/docs/docs/cmd/spo/page/page-copy.mdx +4 -8
- package/docs/docs/cmd/spo/page/page-get.mdx +2 -5
- package/docs/docs/cmd/spo/page/page-list.mdx +1 -5
- package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +4 -4
- package/docs/docs/cmd/spo/sitescript/sitescript-set.mdx +6 -7
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +3 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +5 -3
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +4 -2
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +5 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +2 -0
- package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +2 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +5 -2
- package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +4 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +5 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +3 -1
- package/docs/docs/cmd/spo/user/user-get.mdx +6 -0
- package/docs/docs/cmd/teams/channel/channel-member-list.mdx +3 -5
- package/docs/docs/cmd/teams/channel/channel-member-set.mdx +0 -2
- package/docs/docs/cmd/teams/chat/chat-get.mdx +2 -4
- package/docs/docs/cmd/teams/chat/chat-list.mdx +1 -3
- package/docs/docs/cmd/teams/chat/chat-member-list.mdx +2 -4
- package/docs/docs/cmd/teams/message/message-get.mdx +0 -7
- package/docs/docs/cmd/teams/message/message-list.mdx +0 -6
- package/docs/docs/cmd/teams/message/message-reply-list.mdx +0 -6
- package/docs/docs/cmd/teams/tab/tab-add.mdx +10 -12
- package/docs/docs/cmd/teams/tab/tab-get.mdx +8 -10
- package/docs/docs/cmd/teams/tab/tab-list.mdx +4 -7
- package/docs/docs/cmd/teams/team/team-add.mdx +0 -7
- package/docs/docs/cmd/teams/team/team-get.mdx +0 -6
- package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +1 -1
- package/docs/docs/cmd/todo/task/task-add.mdx +9 -13
- package/docs/docs/cmd/todo/task/task-set.mdx +10 -14
- package/npm-shrinkwrap.json +86 -82
- package/package.json +20 -19
|
@@ -14,16 +14,16 @@ m365 spo file rename [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: The URL of the site where the file is located
|
|
17
|
+
: The URL of the site where the file is located.
|
|
18
18
|
|
|
19
19
|
`-s, --sourceUrl <sourceUrl>`
|
|
20
|
-
: The server- or site-relative decoded URL of the file to rename
|
|
20
|
+
: The server- or site-relative decoded URL of the file to rename.
|
|
21
21
|
|
|
22
22
|
`-t, --targetFileName <targetFileName>`
|
|
23
|
-
: New file name of the file
|
|
23
|
+
: New file name of the file.
|
|
24
24
|
|
|
25
25
|
`--force`
|
|
26
|
-
: If a file already exists with target file name, it will be moved to the recycle bin. If omitted, the rename operation will be canceled if a file already exists with the specified file name
|
|
26
|
+
: If a file already exists with target file name, it will be moved to the recycle bin. If omitted, the rename operation will be canceled if a file already exists with the specified file name.
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
<Global />
|
|
@@ -34,7 +34,7 @@ If you try to rename a file without the `--force` flag and a file with this name
|
|
|
34
34
|
|
|
35
35
|
## Examples
|
|
36
36
|
|
|
37
|
-
Renames a file
|
|
37
|
+
Renames a file.
|
|
38
38
|
|
|
39
39
|
```sh
|
|
40
40
|
m365 spo file rename --webUrl https://contoso.sharepoint.com/sites/project-x --sourceUrl '/Shared Documents/Test1.docx' --targetFileName 'Test2.docx'
|
|
@@ -45,3 +45,61 @@ Renames a file. If the file with the target file name already exists, this file
|
|
|
45
45
|
```sh
|
|
46
46
|
m365 spo file rename --webUrl https://contoso.sharepoint.com/sites/project-x --sourceUrl '/Shared Documents/Test1.docx' --targetFileName 'Test2.docx' --force
|
|
47
47
|
```
|
|
48
|
+
|
|
49
|
+
## Response
|
|
50
|
+
|
|
51
|
+
<Tabs>
|
|
52
|
+
<TabItem value="JSON">
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
[
|
|
56
|
+
{
|
|
57
|
+
"ErrorCode": 0,
|
|
58
|
+
"ErrorMessage": null,
|
|
59
|
+
"FieldName": "FileLeafRef",
|
|
60
|
+
"FieldValue": "Newlogo2.jpg",
|
|
61
|
+
"HasException": false,
|
|
62
|
+
"ItemId": 26
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
</TabItem>
|
|
68
|
+
<TabItem value="Text">
|
|
69
|
+
|
|
70
|
+
```text
|
|
71
|
+
ErrorCode : 0
|
|
72
|
+
ErrorMessage: null
|
|
73
|
+
FieldName : FileLeafRef
|
|
74
|
+
FieldValue : Newlogo2.jpg
|
|
75
|
+
HasException: false
|
|
76
|
+
ItemId : 26
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
</TabItem>
|
|
80
|
+
<TabItem value="CSV">
|
|
81
|
+
|
|
82
|
+
```csv
|
|
83
|
+
ErrorCode,FieldName,FieldValue,HasException,ItemId
|
|
84
|
+
0,FileLeafRef,Newlogo2.jpg,,26
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
</TabItem>
|
|
88
|
+
<TabItem value="Markdown">
|
|
89
|
+
|
|
90
|
+
```md
|
|
91
|
+
# spo file rename --webUrl "https://contoso.sharepoint.com/sites/project-x" --sourceUrl "/Shared Documents/Newlogo.jpg" --targetFileName "Newlogo2.jpg"
|
|
92
|
+
|
|
93
|
+
Date: 10/3/2023
|
|
94
|
+
|
|
95
|
+
Property | Value
|
|
96
|
+
---------|-------
|
|
97
|
+
ErrorCode | 0
|
|
98
|
+
FieldName | FileLeafRef
|
|
99
|
+
FieldValue | Newlogo2.jpg
|
|
100
|
+
HasException | false
|
|
101
|
+
ItemId | 26
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
</TabItem>
|
|
105
|
+
</Tabs>
|
|
@@ -39,19 +39,19 @@ The `--assetId` option has to do with event-based retention. Event-based retenti
|
|
|
39
39
|
|
|
40
40
|
## Examples
|
|
41
41
|
|
|
42
|
-
Applies a retention label to a file based on the label name and the fileUrl
|
|
42
|
+
Applies a retention label to a file based on the label name and the fileUrl.
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
45
|
m365 spo file retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --fileUrl '/Shared Documents/Document.docx' --name 'Some label'
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
Applies a retention label to a file based on the label name and the fileId
|
|
48
|
+
Applies a retention label to a file based on the label name and the fileId.
|
|
49
49
|
|
|
50
50
|
```sh
|
|
51
51
|
m365 spo file retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --fileId '26541f96-017c-4189-a604-599e083533b8' --name 'Some label'
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
Applies a event-based retention label to a file and updates the Asset Id field
|
|
54
|
+
Applies a event-based retention label to a file and updates the Asset Id field.
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
57
|
m365 spo file retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --fileId '26541f96-017c-4189-a604-599e083533b8' --name 'Some label' --assetId 'XYZ'
|
|
@@ -30,13 +30,13 @@ m365 spo file retentionlabel remove [options]
|
|
|
30
30
|
|
|
31
31
|
## Examples
|
|
32
32
|
|
|
33
|
-
Removes the retention label from a file in a given site based on the file id
|
|
33
|
+
Removes the retention label from a file in a given site based on the file id.
|
|
34
34
|
|
|
35
35
|
```sh
|
|
36
36
|
m365 spo file retentionlabel remove --webUrl https://contoso.sharepoint.com/sites/project-x --fileId 0cd891ef-afce-4e55-b836-fce03286cccf
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
Removes the retention label from a file in a given site based on the file url
|
|
39
|
+
Removes the retention label from a file in a given site based on the file url.
|
|
40
40
|
|
|
41
41
|
```sh
|
|
42
42
|
m365 spo file retentionlabel remove --webUrl https://contoso.sharepoint.com/sites/project-x --fileUrl /sites/project-x/Shared Documents/Document.docx --id 1
|
|
@@ -59,3 +59,7 @@ Adds a role assignment to a file with a specified server-relative URL the for a
|
|
|
59
59
|
```sh
|
|
60
60
|
m365 spo file roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileUrl "/sites/project-x/documents/Test1.docx" --upn "testuser@tenant.onmicrosoft.com" --roleDefinitionName "Read"
|
|
61
61
|
```
|
|
62
|
+
|
|
63
|
+
## Response
|
|
64
|
+
|
|
65
|
+
The command won't return a response on success.
|
|
@@ -39,20 +39,24 @@ m365 spo file roleassignment remove [options]
|
|
|
39
39
|
|
|
40
40
|
## Examples
|
|
41
41
|
|
|
42
|
-
Remove a role assignment by principal id from a file by id
|
|
42
|
+
Remove a role assignment by principal id from a file by id.
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
45
|
m365 spo file roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --fileId "b2307a39-e878-458b-bc90-03bc578531d6" --principalId 2
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
Remove a role assignment by upn from a file by url
|
|
48
|
+
Remove a role assignment by upn from a file by url.
|
|
49
49
|
|
|
50
50
|
```sh
|
|
51
51
|
m365 spo file roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --fileUrl "/sites/contoso-sales/documents/Test1.docx" --upn "user1@contoso.onmicrosoft.com"
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
Remove a role assignment by group name from a file by id
|
|
54
|
+
Remove a role assignment by group name from a file by id.
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
57
|
m365 spo file roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --fileId "b2307a39-e878-458b-bc90-03bc578531d6" --groupName "saleGroup"
|
|
58
58
|
```
|
|
59
|
+
|
|
60
|
+
## Response
|
|
61
|
+
|
|
62
|
+
The command won't return a response on success.
|
|
@@ -14,19 +14,19 @@ m365 spo file roleinheritance break [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: URL of the site where the file is located
|
|
17
|
+
: URL of the site where the file is located.
|
|
18
18
|
|
|
19
19
|
`--fileUrl [fileUrl]`
|
|
20
|
-
: The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both
|
|
20
|
+
: The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both.
|
|
21
21
|
|
|
22
22
|
`i, --fileId [fileId]`
|
|
23
|
-
: The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both
|
|
23
|
+
: The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
|
|
24
24
|
|
|
25
25
|
`-c, --clearExistingPermissions`
|
|
26
|
-
: Clear all existing permissions from the file
|
|
26
|
+
: Clear all existing permissions from the file.
|
|
27
27
|
|
|
28
28
|
`-f, --force`
|
|
29
|
-
: Don't prompt for confirmation
|
|
29
|
+
: Don't prompt for confirmation.
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
<Global />
|
|
@@ -56,3 +56,7 @@ Break the inheritance of a file with a specific server-relative URL and clear al
|
|
|
56
56
|
```sh
|
|
57
57
|
m365 spo file roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileUrl "/sites/project-x/documents/Test1.docx" --clearExistingPermissions
|
|
58
58
|
```
|
|
59
|
+
|
|
60
|
+
## Response
|
|
61
|
+
|
|
62
|
+
The command won't return a response on success.
|
|
@@ -14,30 +14,34 @@ m365 spo file roleinheritance reset [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: URL of the site where the file is located
|
|
17
|
+
: URL of the site where the file is located.
|
|
18
18
|
|
|
19
19
|
`--fileUrl [fileUrl]`
|
|
20
|
-
: The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
|
|
20
|
+
: The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
|
|
21
21
|
|
|
22
22
|
`i, --fileId [fileId]`
|
|
23
|
-
: The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
|
|
23
|
+
: The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
|
|
24
24
|
|
|
25
25
|
`-f, --force`
|
|
26
|
-
: Don't prompt for confirmation
|
|
26
|
+
: Don't prompt for confirmation.
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
<Global />
|
|
30
30
|
|
|
31
31
|
## Examples
|
|
32
32
|
|
|
33
|
-
Reset inheritance of file with id (UniqueId)
|
|
33
|
+
Reset inheritance of file with the specified id (UniqueId) located in the specified site.
|
|
34
34
|
|
|
35
35
|
```sh
|
|
36
36
|
m365 spo file roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileId "b2307a39-e878-458b-bc90-03bc578531d6"
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
Reset inheritance of file with server-relative url
|
|
39
|
+
Reset inheritance of file with the specified server-relative url located in the specified site. It will **not** prompt for confirmation before resetting.
|
|
40
40
|
|
|
41
41
|
```sh
|
|
42
42
|
m365 spo file roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileUrl "/sites/project-x/documents/Test1.docx" --force
|
|
43
43
|
```
|
|
44
|
+
|
|
45
|
+
## Response
|
|
46
|
+
|
|
47
|
+
The command won't return a response on success.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# spo file sharinginfo get
|
|
4
6
|
|
|
@@ -14,27 +16,153 @@ m365 spo file sharinginfo get [options]
|
|
|
14
16
|
|
|
15
17
|
```md definition-list
|
|
16
18
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: The URL of the site where the file is located
|
|
19
|
+
: The URL of the site where the file is located.
|
|
18
20
|
|
|
19
21
|
`--fileUrl [fileUrl]`
|
|
20
|
-
: The server- or site-relative decoded URL of the file for which to build the report. Specify either `fileUrl` or `fileId` but not both
|
|
22
|
+
: The server- or site-relative decoded URL of the file for which to build the report. Specify either `fileUrl` or `fileId` but not both.
|
|
21
23
|
|
|
22
24
|
`-i, --fileId [fileId]`
|
|
23
|
-
: The UniqueId (GUID) of the file for which to build the report. Specify either `fileUrl` or `fileId` but not both
|
|
25
|
+
: The UniqueId (GUID) of the file for which to build the report. Specify either `fileUrl` or `fileId` but not both.
|
|
24
26
|
```
|
|
25
27
|
|
|
26
28
|
<Global />
|
|
27
29
|
|
|
28
30
|
## Examples
|
|
29
31
|
|
|
30
|
-
Get file sharing information report for the file with server-relative url
|
|
32
|
+
Get file sharing information report for the file with the specified server-relative url located in the specified site.
|
|
31
33
|
|
|
32
34
|
```sh
|
|
33
35
|
m365 spo file sharinginfo get --webUrl https://contoso.sharepoint.com/sites/project-x --fileUrl "/sites/M365CLI/Shared Documents/SharedFile.docx"
|
|
34
36
|
```
|
|
35
37
|
|
|
36
|
-
Get file sharing information report for file with id (UniqueId)
|
|
38
|
+
Get file sharing information report for file with the specified id (UniqueId) located in the specified site.
|
|
37
39
|
|
|
38
40
|
```sh
|
|
39
41
|
m365 spo file sharinginfo get --webUrl https://contoso.sharepoint.com/sites/project-x --fileId "b2307a39-e878-458b-bc90-03bc578531d6"
|
|
40
42
|
```
|
|
43
|
+
|
|
44
|
+
## Response
|
|
45
|
+
|
|
46
|
+
<Tabs>
|
|
47
|
+
<TabItem value="JSON">
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
{
|
|
51
|
+
"permissionsInformation": {
|
|
52
|
+
"hasInheritedLinks": false,
|
|
53
|
+
"links": [
|
|
54
|
+
{
|
|
55
|
+
"isInherited": false,
|
|
56
|
+
"linkDetails": {
|
|
57
|
+
"AllowsAnonymousAccess": false,
|
|
58
|
+
"ApplicationId": null,
|
|
59
|
+
"BlocksDownload": false,
|
|
60
|
+
"Created": "",
|
|
61
|
+
"CreatedBy": null,
|
|
62
|
+
"Description": null,
|
|
63
|
+
"Embeddable": false,
|
|
64
|
+
"Expiration": "",
|
|
65
|
+
"HasExternalGuestInvitees": false,
|
|
66
|
+
"Invitations": [],
|
|
67
|
+
"IsActive": false,
|
|
68
|
+
"IsAddressBarLink": false,
|
|
69
|
+
"IsCreateOnlyLink": false,
|
|
70
|
+
"IsDefault": true,
|
|
71
|
+
"IsEditLink": false,
|
|
72
|
+
"IsEphemeral": false,
|
|
73
|
+
"IsFormsLink": false,
|
|
74
|
+
"IsManageListLink": false,
|
|
75
|
+
"IsReviewLink": false,
|
|
76
|
+
"IsUnhealthy": false,
|
|
77
|
+
"LastModified": "",
|
|
78
|
+
"LastModifiedBy": null,
|
|
79
|
+
"LimitUseToApplication": false,
|
|
80
|
+
"LinkKind": 3,
|
|
81
|
+
"MeetingId": null,
|
|
82
|
+
"PasswordLastModified": "",
|
|
83
|
+
"PasswordLastModifiedBy": null,
|
|
84
|
+
"RedeemedUsers": [],
|
|
85
|
+
"RequiresPassword": false,
|
|
86
|
+
"RestrictedShareMembership": false,
|
|
87
|
+
"RestrictToExistingRelationships": false,
|
|
88
|
+
"Scope": -1,
|
|
89
|
+
"ShareId": "00000000-0000-0000-0000-000000000000",
|
|
90
|
+
"ShareTokenString": null,
|
|
91
|
+
"SharingLinkStatus": 0,
|
|
92
|
+
"TrackLinkUsers": false,
|
|
93
|
+
"Url": null
|
|
94
|
+
},
|
|
95
|
+
"linkMembers": []
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"principals": [
|
|
99
|
+
{
|
|
100
|
+
"principal": {
|
|
101
|
+
"directoryObjectId": null,
|
|
102
|
+
"email": "",
|
|
103
|
+
"expiration": null,
|
|
104
|
+
"id": 4,
|
|
105
|
+
"isActive": true,
|
|
106
|
+
"isExternal": false,
|
|
107
|
+
"jobTitle": null,
|
|
108
|
+
"loginName": "project-x Owners",
|
|
109
|
+
"name": "project-x Owners",
|
|
110
|
+
"principalType": 8,
|
|
111
|
+
"userId": null,
|
|
112
|
+
"userPrincipalName": null
|
|
113
|
+
},
|
|
114
|
+
"role": 3
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"siteAdmins": [
|
|
118
|
+
{
|
|
119
|
+
"principal": {
|
|
120
|
+
"directoryObjectId": null,
|
|
121
|
+
"email": "admin@contoso.onmicrosoft.com",
|
|
122
|
+
"expiration": "",
|
|
123
|
+
"id": 7,
|
|
124
|
+
"isActive": true,
|
|
125
|
+
"isExternal": false,
|
|
126
|
+
"jobTitle": "Architect",
|
|
127
|
+
"loginName": "i:0#.f|membership|admin@contoso.onmicrosoft.com",
|
|
128
|
+
"name": "Nanddeep Nachan",
|
|
129
|
+
"principalType": 1,
|
|
130
|
+
"userId": null,
|
|
131
|
+
"userPrincipalName": "admin@contoso.onmicrosoft.com"
|
|
132
|
+
},
|
|
133
|
+
"role": 3
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
</TabItem>
|
|
141
|
+
<TabItem value="Text">
|
|
142
|
+
|
|
143
|
+
```text
|
|
144
|
+
SharedWith IsActive IsExternal PrincipalType
|
|
145
|
+
-------------------- -------- ---------- ---------------
|
|
146
|
+
project-x Owners true false SharePointGroup
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
</TabItem>
|
|
150
|
+
<TabItem value="CSV">
|
|
151
|
+
|
|
152
|
+
```csv
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
</TabItem>
|
|
156
|
+
<TabItem value="Markdown">
|
|
157
|
+
|
|
158
|
+
```md
|
|
159
|
+
# spo file sharinginfo get --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileUrl "/Shared Documents/logo.jpg"
|
|
160
|
+
|
|
161
|
+
Date: 10/3/2023
|
|
162
|
+
|
|
163
|
+
Property | Value
|
|
164
|
+
---------|-------
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
</TabItem>
|
|
168
|
+
</Tabs>
|
|
@@ -38,19 +38,19 @@ m365 spo file sharinglink add [options]
|
|
|
38
38
|
|
|
39
39
|
## Examples
|
|
40
40
|
|
|
41
|
-
Creates a sharing link of a specific type for a file by id
|
|
41
|
+
Creates a sharing link of a specific type for a file by id.
|
|
42
42
|
|
|
43
43
|
```sh
|
|
44
44
|
m365 spo file sharinglink add --webUrl https://contoso.sharepoint.com --fileId daebb04b-a773-4baa-b1d1-3625418e3234 --type view
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
Creates a sharing link of a specific type for a file by url
|
|
47
|
+
Creates a sharing link of a specific type for a file by url.
|
|
48
48
|
|
|
49
49
|
```sh
|
|
50
50
|
m365 spo file sharinglink add --webUrl https://contoso.sharepoint.com --fileUrl "/sites/demo/Shared Documents/Test1.docx" --type edit
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
Creates a sharing link of a file by url with type, scope and expirationDateTime parameter
|
|
53
|
+
Creates a sharing link of a file by url with type, scope and expirationDateTime parameter.
|
|
54
54
|
|
|
55
55
|
```sh
|
|
56
56
|
m365 spo file sharinglink add --webUrl https://contoso.sharepoint.com --fileUrl "/sites/demo/Shared Documents/Test1.docx" --type edit --scope anonymous --expirationDateTime "2023-01-09T16:20:00Z"
|
|
@@ -97,6 +97,24 @@ m365 spo file sharinglink add --webUrl https://contoso.sharepoint.com --fileUrl
|
|
|
97
97
|
1e581e93-609e-4077-8152-c43865db684c,2023-10-01T07:00:00Z,"[""read""]",,"{""scope"":""anonymous"",""type"":""view"",""webUrl"":""https://contoso.sharepoint.com/:b:/g/EbZx4QPyndlGp6HV-gvSPksBSyMcgRPtyAxqqNAeiEp1kg"",""preventsDownload"":false}"
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
+
</TabItem>
|
|
101
|
+
<TabItem value="Markdown">
|
|
102
|
+
|
|
103
|
+
```md
|
|
104
|
+
# spo file sharinglink add --webUrl "https://contoso.sharepoint.com/sites/demo" --fileUrl "/sites/demo/Shared Documents/logo.jpg" --type "edit" --scope "anonymous" --expirationDateTime "2023-12-12T16:20:00Z"
|
|
105
|
+
|
|
106
|
+
Date: 10/3/2023
|
|
107
|
+
|
|
108
|
+
## 9239171b-d85c-4206-a852-45e8d61f9052
|
|
109
|
+
|
|
110
|
+
Property | Value
|
|
111
|
+
---------|-------
|
|
112
|
+
id | 9239171b-d85c-4206-a852-45e8d61f9052
|
|
113
|
+
shareId | u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmk6L3MvU1BEZW1vL0VZQ09MTEoydWs1QWlQcHoyX1gwRjhBQkdGSXZXbG1aaDdjZ1BCNXc2WGQxQ2c
|
|
114
|
+
expirationDateTime | 2023-12-12T16:20:00Z
|
|
115
|
+
hasPassword | false
|
|
116
|
+
```
|
|
117
|
+
|
|
100
118
|
</TabItem>
|
|
101
119
|
</Tabs>
|
|
102
120
|
|
|
@@ -33,13 +33,13 @@ m365 spo file sharinglink clear [options]
|
|
|
33
33
|
|
|
34
34
|
## Examples
|
|
35
35
|
|
|
36
|
-
Removes all sharing links from a file specified by id without prompting for confirmation
|
|
36
|
+
Removes all sharing links from a file specified by id without prompting for confirmation.
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
39
|
m365 spo file sharinglink clear --webUrl https://contoso.sharepoint.com/sites/demo --fileId daebb04b-a773-4baa-b1d1-3625418e3234 --force
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
Removes sharing links of type anonymous from a file specified by url with prompting for confirmation
|
|
42
|
+
Removes sharing links of type anonymous from a file specified by url with prompting for confirmation.
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
45
|
m365 spo file sharinglink clear --webUrl https://contoso.sharepoint.com/sites/demo --fileUrl '/sites/demo/Shared Documents/document.docx' --scope anonymous
|
|
@@ -115,6 +115,24 @@ m365 spo file sharinglink get --webUrl 'https://contoso.sharepoint.com/sites/dem
|
|
|
115
115
|
1ba739c5-e693-4c16-9dfa-042e4ec62972,"[""write""]",,"[{""user"":{""displayName"":""John Doe"",""email"":""john@contoso.onmicrosoft.com"",""id"":""04355ecd-2124-4097-bc2b-c2295a71d7a3""},""siteUser"":{""displayName"":""John Doe"",""email"":""john@contoso.onmicrosoft.com"",""id"":""11"",""loginName"":""i:0#.f|membership|john@contoso.onmicrosoft.com""}}]","[{""user"":{""displayName"":""John Doe"",""email"":""john@contoso.onmicrosoft.com"",""id"":""04355ecd-2124-4097-bc2b-c2295a71d7a3""}}]","{""scope"":""organization"",""type"":""edit"",""webUrl"":""https://contoso.sharepoint.com/:w:/s/demo/EecoJa3lri9Hu9NWp-W0aBQB8ZqmGqA5tdIiaab4o-6BZw"",""preventsDownload"":false}"
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
+
</TabItem>
|
|
119
|
+
<TabItem value="Markdown">
|
|
120
|
+
|
|
121
|
+
```md
|
|
122
|
+
# spo file sharinglink get --webUrl "https://contoso.sharepoint.com/sites/demo" --fileUrl "/sites/demo/Shared Documents/logo.jpg" --id "9239171b-d85c-4206-a852-45e8d61f9052"
|
|
123
|
+
|
|
124
|
+
Date: 10/3/2023
|
|
125
|
+
|
|
126
|
+
## 9239171b-d85c-4206-a852-45e8d61f9052
|
|
127
|
+
|
|
128
|
+
Property | Value
|
|
129
|
+
---------|-------
|
|
130
|
+
id | 9239171b-d85c-4206-a852-45e8d61f9052
|
|
131
|
+
shareId | u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmk6L3MvU1BEZW1vL0VZQ09MTEoydWs1QWlQcHoyX1gwRjhBQkdGSXZXbG1aaDdjZ1BCNXc2WGQxQ2c
|
|
132
|
+
expirationDateTime | 2023-12-12T16:20:00Z
|
|
133
|
+
hasPassword | false
|
|
134
|
+
```
|
|
135
|
+
|
|
118
136
|
</TabItem>
|
|
119
137
|
</Tabs>
|
|
120
138
|
|
|
@@ -32,19 +32,19 @@ m365 spo file sharinglink list [options]
|
|
|
32
32
|
|
|
33
33
|
## Examples
|
|
34
34
|
|
|
35
|
-
List sharing links of a file by id
|
|
35
|
+
List sharing links of a file by id.
|
|
36
36
|
|
|
37
37
|
```sh
|
|
38
38
|
m365 spo file sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --fileId daebb04b-a773-4baa-b1d1-3625418e3234
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
List sharing links of a file by url
|
|
41
|
+
List sharing links of a file by url.
|
|
42
42
|
|
|
43
43
|
```sh
|
|
44
44
|
m365 spo file sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --fileUrl "/sites/demo/shared documents/document.docx"
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
List anonymous sharing links of a file by url
|
|
47
|
+
List anonymous sharing links of a file by url.
|
|
48
48
|
|
|
49
49
|
```sh
|
|
50
50
|
m365 spo file sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --fileUrl "/sites/demo/shared documents/document.docx" --scope anonymous
|
|
@@ -114,6 +114,23 @@ m365 spo file sharinglink list --webUrl https://contoso.sharepoint.com/sites/dem
|
|
|
114
114
|
2a021f54-90a2-4016-b3b3-5f34d2e7d932,organization,read,https://contoso.sharepoint.com/:w:/s/demo/EY50lub3559MtRKfj2hrZqoBWnHOpGIcgi4gzw9XiWYJ-A
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
+
</TabItem>
|
|
118
|
+
<TabItem value="Markdown">
|
|
119
|
+
|
|
120
|
+
```md
|
|
121
|
+
# spo file sharinglink list --webUrl "https://contoso.sharepoint.com/sites/demo" --fileUrl "/sites/demo/Shared Documents/logo.jpg"
|
|
122
|
+
|
|
123
|
+
Date: 10/3/2023
|
|
124
|
+
|
|
125
|
+
## 44934455-df4f-48a4-90c9-cd8aec82fa7b
|
|
126
|
+
|
|
127
|
+
Property | Value
|
|
128
|
+
---------|-------
|
|
129
|
+
id | 44934455-df4f-48a4-90c9-cd8aec82fa7b
|
|
130
|
+
shareId | u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmk6L3MvU1BEZW1vL0VZQ09MTEoydWs1QWlQcHoyX1gwRjhBQmdwNGFNOWUwaVJEUi0xazVGTm93bnc
|
|
131
|
+
hasPassword | false
|
|
132
|
+
```
|
|
133
|
+
|
|
117
134
|
</TabItem>
|
|
118
135
|
</Tabs>
|
|
119
136
|
|
|
@@ -35,13 +35,13 @@ m365 spo file sharinglink set [options]
|
|
|
35
35
|
|
|
36
36
|
## Examples
|
|
37
37
|
|
|
38
|
-
Updates an anonymous sharing link from a file by a specified site-relative URL with the expirationDateTime parameter
|
|
38
|
+
Updates an anonymous sharing link from a file by a specified site-relative URL with the expirationDateTime parameter.
|
|
39
39
|
|
|
40
40
|
```sh
|
|
41
41
|
m365 spo file sharinglink set --webUrl https://contoso.sharepoint.com --fileUrl "/sites/demo/Shared Documents/Document.docx" --id 7c9f97c9-1bda-433c-9364-bb83e81771ee --expirationDateTime "2023-01-09T16:57:00.000Z"
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
Updates an anonymous sharing link from a file by id with the expirationDateTime parameter
|
|
44
|
+
Updates an anonymous sharing link from a file by id with the expirationDateTime parameter.
|
|
45
45
|
|
|
46
46
|
```sh
|
|
47
47
|
m365 spo file sharinglink set --webUrl https://contoso.sharepoint.com --fileId daebb04b-a773-4baa-b1d1-3625418e3234 --id 7c9f97c9-1bda-433c-9364-bb83e81771ee --expirationDateTime "2023-01-09T16:57:00.000Z"
|
|
@@ -105,14 +105,9 @@ m365 spo file sharinglink set --webUrl https://contoso.sharepoint.com --fileId d
|
|
|
105
105
|
Property | Value
|
|
106
106
|
---------|-------
|
|
107
107
|
id | 7c9f97c9-1bda-433c-9364-bb83e81771ee
|
|
108
|
-
roles | ["read"]
|
|
109
108
|
expirationDateTime | 2023-02-09T16:57:00Z
|
|
110
109
|
hasPassword | false
|
|
111
|
-
grantedToIdentitiesV2 | []
|
|
112
|
-
grantedToIdentities | []
|
|
113
|
-
link | {"scope":"anonymous","type":"view","webUrl":"https://contoso.sharepoint.com/:b:/g/EbZx4QPyndlGp6HV-gvSPksBftmUNAiXjm0y-\_527\_fI9g","preventsDownload":false}
|
|
114
110
|
```
|
|
115
111
|
|
|
116
112
|
</TabItem>
|
|
117
113
|
</Tabs>
|
|
118
|
-
|
|
@@ -14,13 +14,13 @@ m365 spo file version clear [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: The URL of the site where the file is located
|
|
17
|
+
: The URL of the site where the file is located.
|
|
18
18
|
|
|
19
19
|
`--fileUrl [fileUrl]`
|
|
20
|
-
: The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both
|
|
20
|
+
: The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both.
|
|
21
21
|
|
|
22
22
|
`-i, --fileId [fileId]`
|
|
23
|
-
: The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both
|
|
23
|
+
: The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
|
|
24
24
|
|
|
25
25
|
`-f, --force`
|
|
26
26
|
: Don't prompt for confirmation.
|
|
@@ -30,25 +30,25 @@ m365 spo file version clear [options]
|
|
|
30
30
|
|
|
31
31
|
## Examples
|
|
32
32
|
|
|
33
|
-
Removes all file version history in a specific site based on fileId and prompts for confirmation
|
|
33
|
+
Removes all file version history in a specific site based on fileId and prompts for confirmation.
|
|
34
34
|
|
|
35
35
|
```sh
|
|
36
36
|
m365 spo file version clear --webUrl https://contoso.sharepoint.com --fileId 'b2307a39-e878-458b-bc90-03bc578531d6'
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
Removes all file version history in a specific site based on fileUrl and prompts for confirmation
|
|
39
|
+
Removes all file version history in a specific site based on fileUrl and prompts for confirmation.
|
|
40
40
|
|
|
41
41
|
```sh
|
|
42
42
|
m365 spo file version clear --webUrl https://contoso.sharepoint.com --fileUrl '/Shared Documents/Document.docx'
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
Removes all file version history in a specific site based on fileId without prompting for confirmation
|
|
45
|
+
Removes all file version history in a specific site based on fileId without prompting for confirmation.
|
|
46
46
|
|
|
47
47
|
```sh
|
|
48
48
|
m365 spo file version clear --webUrl https://contoso.sharepoint.com --fileId 'b2307a39-e878-458b-bc90-03bc578531d6' --force
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
Removes all file version history in a specific site based on fileUrl without prompting for confirmation
|
|
51
|
+
Removes all file version history in a specific site based on fileUrl without prompting for confirmation.
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
54
|
m365 spo file version clear --webUrl https://contoso.sharepoint.com --fileUrl '/Shared Documents/Document.docx' --force
|