@pnp/cli-microsoft365 9.0.0-beta.33615bd → 9.0.0-beta.59b026e
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/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/config.js +1 -1
- package/dist/m365/commands/status.js +2 -2
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +13 -13
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +18 -18
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +109 -32
- package/dist/m365/entra/commands/m365group/m365group-user-set.js +159 -84
- package/dist/m365/flow/commands/flow-get.js +1 -1
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +1 -1
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +1 -10
- package/dist/m365/spo/commands/file/file-copy.js +55 -34
- package/dist/m365/spo/commands/folder/folder-set.js +0 -4
- package/dist/m365/spo/commands/folder/folder-sharinglink-get.js +86 -0
- package/dist/m365/spo/commands/folder/folder-sharinglink-list.js +110 -0
- package/dist/m365/spo/commands/list/ListInstance.js +6 -1
- package/dist/m365/spo/commands/list/list-get.js +9 -3
- package/dist/m365/spo/commands/site/site-remove.js +1 -7
- package/dist/m365/spo/commands.js +2 -1
- package/dist/utils/drive.js +61 -0
- package/dist/utils/spo.js +106 -0
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +12 -12
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +14 -14
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +5 -5
- package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +28 -10
- package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +35 -11
- package/docs/docs/cmd/flow/flow-get.mdx +149 -283
- package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +11 -12
- package/docs/docs/cmd/spo/file/file-copy.mdx +119 -12
- package/docs/docs/cmd/spo/folder/folder-set.mdx +0 -6
- package/docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx +110 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +114 -0
- package/docs/docs/cmd/spo/list/list-get.mdx +6 -0
- package/docs/docs/cmd/spo/site/site-remove.mdx +0 -3
- package/package.json +1 -1
|
@@ -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 copy
|
|
4
6
|
|
|
@@ -31,11 +33,14 @@ m365 spo file copy [options]
|
|
|
31
33
|
`--nameConflictBehavior [nameConflictBehavior]`
|
|
32
34
|
: Behavior when a document with the same name is already present at the destination. Allowed values: `fail`, `replace`, `rename`. Defaults to `fail`.
|
|
33
35
|
|
|
34
|
-
`--resetAuthorAndCreated`
|
|
35
|
-
: Use this option to clear the author and created date. When not specified, the values from the source file are used.
|
|
36
|
-
|
|
37
36
|
`--bypassSharedLock`
|
|
38
37
|
: This indicates whether a file with a share lock can still be copied. Use this option to copy a file that is locked.
|
|
38
|
+
|
|
39
|
+
`--ignoreVersionHistory`
|
|
40
|
+
: Only copy the most recent version of the file and ignore the version history.
|
|
41
|
+
|
|
42
|
+
`--skipWait`
|
|
43
|
+
: Don't wait for the copy operation to complete.
|
|
39
44
|
```
|
|
40
45
|
|
|
41
46
|
<Global />
|
|
@@ -43,7 +48,6 @@ m365 spo file copy [options]
|
|
|
43
48
|
## Remarks
|
|
44
49
|
|
|
45
50
|
When you specify a value for `nameConflictBehavior`, consider the following:
|
|
46
|
-
|
|
47
51
|
- `fail` will throw an error when the destination file already exists.
|
|
48
52
|
- `replace` will replace the destination file if it already exists.
|
|
49
53
|
- `rename` will add a suffix (e.g. Document1.pdf) when the destination file already exists.
|
|
@@ -56,16 +60,16 @@ Copy a file by server-relative URL to a document library in another site collect
|
|
|
56
60
|
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/sites/project/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents"
|
|
57
61
|
```
|
|
58
62
|
|
|
59
|
-
Copy a file by site-relative URL to a document library in another site collection and
|
|
63
|
+
Copy a file by site-relative URL to a document library in another site collection and ignore the file history.
|
|
60
64
|
|
|
61
65
|
```sh
|
|
62
|
-
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --
|
|
66
|
+
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --ignoreVersionHistory
|
|
63
67
|
```
|
|
64
68
|
|
|
65
|
-
Copy file by sourceId (UniqueId) to a document library in another site collection and rename the file.
|
|
69
|
+
Copy file by sourceId (UniqueId) to a document library in another site collection and rename the file (without specifying the file extension).
|
|
66
70
|
|
|
67
71
|
```sh
|
|
68
|
-
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceId "b2307a39-e878-458b-bc90-03bc578531d6" --targetUrl "/sites/IT/Shared Documents" --newName "Report
|
|
72
|
+
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceId "b2307a39-e878-458b-bc90-03bc578531d6" --targetUrl "/sites/IT/Shared Documents" --newName "Report"
|
|
69
73
|
```
|
|
70
74
|
|
|
71
75
|
Copy file by sourceId (UniqueId) to a document library in another site collection with a new name, rename the file if it already exists.
|
|
@@ -76,8 +80,111 @@ m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourc
|
|
|
76
80
|
|
|
77
81
|
## Response
|
|
78
82
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
83
|
+
### Standard Response
|
|
84
|
+
|
|
85
|
+
<Tabs>
|
|
86
|
+
<TabItem value="JSON">
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{
|
|
90
|
+
"CheckInComment": "",
|
|
91
|
+
"CheckOutType": 2,
|
|
92
|
+
"ContentTag": "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1",
|
|
93
|
+
"CustomizedPageStatus": 0,
|
|
94
|
+
"ETag": "\"{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1\"",
|
|
95
|
+
"Exists": true,
|
|
96
|
+
"IrmEnabled": false,
|
|
97
|
+
"Length": "5987",
|
|
98
|
+
"Level": 1,
|
|
99
|
+
"LinkingUri": null,
|
|
100
|
+
"LinkingUrl": "",
|
|
101
|
+
"MajorVersion": 1,
|
|
102
|
+
"MinorVersion": 0,
|
|
103
|
+
"Name": "Test1.docx",
|
|
104
|
+
"ServerRelativeUrl": "/sites/project-x/documents/Test1.docx",
|
|
105
|
+
"TimeCreated": "2022-10-30T10:16:18Z",
|
|
106
|
+
"TimeLastModified": "2022-10-30T10:16:18Z",
|
|
107
|
+
"Title": null,
|
|
108
|
+
"UIVersion": 512,
|
|
109
|
+
"UIVersionLabel": "1.0",
|
|
110
|
+
"UniqueId": "b2307a39-e878-458b-bc90-03bc578531d6"
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
</TabItem>
|
|
115
|
+
<TabItem value="Text">
|
|
116
|
+
|
|
117
|
+
```text
|
|
118
|
+
CheckInComment :
|
|
119
|
+
CheckOutType : 2
|
|
120
|
+
ContentTag : {03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1
|
|
121
|
+
CustomizedPageStatus: 0
|
|
122
|
+
ETag : "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1"
|
|
123
|
+
Exists : true
|
|
124
|
+
IrmEnabled : false
|
|
125
|
+
Length : 5987
|
|
126
|
+
Level : 1
|
|
127
|
+
LinkingUri : null
|
|
128
|
+
LinkingUrl :
|
|
129
|
+
MajorVersion : 1
|
|
130
|
+
MinorVersion : 0
|
|
131
|
+
Name : Test1.docx
|
|
132
|
+
ServerRelativeUrl : /sites/project-x/documents/Test1.docx
|
|
133
|
+
TimeCreated : 2022-10-30T10:16:18Z
|
|
134
|
+
TimeLastModified : 2022-10-30T10:16:18Z
|
|
135
|
+
Title : null
|
|
136
|
+
UIVersion : 512
|
|
137
|
+
UIVersionLabel : 1.0
|
|
138
|
+
UniqueId : b2307a39-e878-458b-bc90-03bc578531d6
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
</TabItem>
|
|
142
|
+
<TabItem value="CSV">
|
|
143
|
+
|
|
144
|
+
```csv
|
|
145
|
+
CheckInComment,CheckOutType,ContentTag,CustomizedPageStatus,ETag,Exists,IrmEnabled,Length,Level,LinkingUri,LinkingUrl,MajorVersion,MinorVersion,Name,ServerRelativeUrl,TimeCreated,TimeLastModified,Title,UIVersion,UIVersionLabel,UniqueId
|
|
146
|
+
,2,"{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1",0,"""{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1""",1,,5987,1,,,1,0,Test1.docx,/sites/project-x/documents/Test1.docx,2022-10-30T10:16:18Z,2022-10-30T10:16:18Z,,512,1.0,b2307a39-e878-458b-bc90-03bc578531d6
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
</TabItem>
|
|
150
|
+
<TabItem value="Markdown">
|
|
151
|
+
|
|
152
|
+
```md
|
|
153
|
+
# spo file copy --webUrl "https://contoso.sharepoint.com/sites/IT" --sourceUrl "/Shared Documents/Document.docx" --targetUrl "/sites/project-x/Shared Documents"
|
|
154
|
+
|
|
155
|
+
Date: 10/3/2023
|
|
156
|
+
|
|
157
|
+
## b2307a39-e878-458b-bc90-03bc578531d6
|
|
158
|
+
|
|
159
|
+
Property | Value
|
|
160
|
+
---------|-------
|
|
161
|
+
CheckInComment |
|
|
162
|
+
CheckOutType | 2
|
|
163
|
+
ContentTag | {03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1
|
|
164
|
+
CustomizedPageStatus | 0
|
|
165
|
+
ETag | "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1"
|
|
166
|
+
Exists | true
|
|
167
|
+
ExistsAllowThrowForPolicyFailures | true
|
|
168
|
+
IrmEnabled | false
|
|
169
|
+
Length | 5987
|
|
170
|
+
Level | 1
|
|
171
|
+
LinkingUri | https://contoso.sharepoint.com/sites/project-x/shared%20documents/Document.docx?d=w59d4e6fcf6f94ce78bea0273cedb1a19
|
|
172
|
+
LinkingUrl | https://contoso.sharepoint.com/sites/project-x/shared documents/Document.docx?d=w59d4e6fcf6f94ce78bea0273cedb1a19
|
|
173
|
+
MajorVersion | 1
|
|
174
|
+
MinorVersion | 0
|
|
175
|
+
Name | Document.docx
|
|
176
|
+
ServerRelativeUrl | /sites/project-x/shared documents/Document.docx
|
|
177
|
+
TimeCreated | 2023-05-23T09:51:34Z
|
|
178
|
+
TimeLastModified | 2023-05-23T10:13:01Z
|
|
179
|
+
Title |
|
|
180
|
+
UIVersion | 1536
|
|
181
|
+
UIVersionLabel | 1.0
|
|
182
|
+
UniqueId | b2307a39-e878-458b-bc90-03bc578531d6
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
</TabItem>
|
|
186
|
+
</Tabs>
|
|
187
|
+
|
|
188
|
+
### `skipWait` response
|
|
82
189
|
|
|
83
|
-
|
|
190
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spo folder sharinglink get
|
|
6
|
+
|
|
7
|
+
Gets details about a specific sharing link on a folder
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spo folder sharinglink get [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
|
+
`--folderUrl [folderUrl]`
|
|
22
|
+
: The server- or site-relative decoded URL of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
23
|
+
|
|
24
|
+
`--folderId [folderId]`
|
|
25
|
+
: The Unique ID (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
26
|
+
|
|
27
|
+
`-i, --id <id>`
|
|
28
|
+
: The sharing link ID.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
<Global />
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
Gets a specific sharing link of a folder by id.
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo folder sharinglink get --webUrl https://contoso.sharepoint.com/sites/demo --id 45fa6aed-362f-48b1-b04e-6da85a526506 --folderId daebb04b-a773-4baa-b1d1-3625418e3234
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Gets a specific sharing link of a folder by url.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 spo folder sharinglink get --webUrl https://contoso.sharepoint.com/sites/demo --id 45fa6aed-362f-48b1-b04e-6da85a526506 --folderUrl "/sites/demo/shared documents/folder"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Response
|
|
48
|
+
|
|
49
|
+
<Tabs>
|
|
50
|
+
<TabItem value="JSON">
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
"id": "d6f6a428-9857-471f-9635-edd68d5aa6c1",
|
|
55
|
+
"roles": [
|
|
56
|
+
"write"
|
|
57
|
+
],
|
|
58
|
+
"shareId": "u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmY6L3MvU1BEZW1vL0VxXzlYcXRIdks1RW9wd3NfX1kteko0QlNybFFNUy1qUTBFOWJsazhVLVNTdVE",
|
|
59
|
+
"hasPassword": false,
|
|
60
|
+
"grantedToIdentitiesV2": [],
|
|
61
|
+
"grantedToIdentities": [],
|
|
62
|
+
"link": {
|
|
63
|
+
"scope": "anonymous",
|
|
64
|
+
"type": "edit",
|
|
65
|
+
"webUrl": "https://contoso.sharepoint.com/:f:/s/demo/Eq_9XqtHvK5Eopws__Y-zJ4BSrlQMS-jQ0E9blk8U-SSuQ",
|
|
66
|
+
"preventsDownload": false
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
</TabItem>
|
|
72
|
+
<TabItem value="Text">
|
|
73
|
+
|
|
74
|
+
```text
|
|
75
|
+
grantedToIdentities : []
|
|
76
|
+
grantedToIdentitiesV2 : []
|
|
77
|
+
hasPassword : false
|
|
78
|
+
id : d6f6a428-9857-471f-9635-edd68d5aa6c1
|
|
79
|
+
link : {"scope":"anonymous","type":"edit","webUrl":"https://contoso.sharepoint.com/:f:/s/demo/Eq_9XqtHvK5Eopws__Y-zJ4BSrlQMS-jQ0E9blk8U-SSuQ","preventsDownload":false}
|
|
80
|
+
roles : ["write"]
|
|
81
|
+
shareId : u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmY6L3MvU1BEZW1vL0VxXzlYcXRIdks1RW9wd3NfX1kteko0QlNybFFNUy1qUTBFOWJsazhVLVNTdVE
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
</TabItem>
|
|
85
|
+
<TabItem value="CSV">
|
|
86
|
+
|
|
87
|
+
```csv
|
|
88
|
+
id,shareId,hasPassword
|
|
89
|
+
d6f6a428-9857-471f-9635-edd68d5aa6c1,u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmY6L3MvU1BEZW1vL0VxXzlYcXRIdks1RW9wd3NfX1kteko0QlNybFFNUy1qUTBFOWJsazhVLVNTdVE,
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
</TabItem>
|
|
93
|
+
<TabItem value="Markdown">
|
|
94
|
+
|
|
95
|
+
```md
|
|
96
|
+
# spo folder sharinglink get --webUrl "https://contoso.sharepoint.com/sites/demo" --id "d6f6a428-9857-471f-9635-edd68d5aa6c1" --folderUrl "/sites/demo/shared documents/Test"
|
|
97
|
+
|
|
98
|
+
Date: 5/2/2024
|
|
99
|
+
|
|
100
|
+
## d6f6a428-9857-471f-9635-edd68d5aa6c1
|
|
101
|
+
|
|
102
|
+
Property | Value
|
|
103
|
+
---------|-------
|
|
104
|
+
id | d6f6a428-9857-471f-9635-edd68d5aa6c1
|
|
105
|
+
shareId | u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmY6L3MvU1BEZW1vL0VxXzlYcXRIdks1RW9wd3NfX1kteko0QlNybFFNUy1qUTBFOWJsazhVLVNTdVE
|
|
106
|
+
hasPassword | false
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
</TabItem>
|
|
110
|
+
</Tabs>
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spo folder sharinglink list
|
|
6
|
+
|
|
7
|
+
Lists all the sharing links of a specific folder
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spo folder sharinglink list [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
|
+
`--folderUrl [folderUrl]`
|
|
22
|
+
: The server- or site-relative decoded URL of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
23
|
+
|
|
24
|
+
`--folderId [folderId]`
|
|
25
|
+
: The UniqueId (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
26
|
+
|
|
27
|
+
`-s, --scope [scope]`
|
|
28
|
+
: Filter the results to only sharing links of a given scope: `anonymous`, `users` or `organization`. By default all sharing links are listed.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
<Global />
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
List sharing links of a folder by id.
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo folder sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --folderId daebb04b-a773-4baa-b1d1-3625418e3234
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
List sharing links of a folder by url.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 spo folder sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --folderUrl "/sites/demo/shared documents/folder"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
List anonymous sharing links of a folder by url.
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 spo folder sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --folderUrl "/sites/demo/shared documents/folder" --scope anonymous
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Response
|
|
54
|
+
|
|
55
|
+
<Tabs>
|
|
56
|
+
<TabItem value="JSON">
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
[
|
|
60
|
+
{
|
|
61
|
+
"id": "e6100f73-981c-4bde-986b-eed262f04659",
|
|
62
|
+
"roles": [
|
|
63
|
+
"write"
|
|
64
|
+
],
|
|
65
|
+
"shareId": "u!aHR0cHM6Ly83NTY2YXZhLnNoYXJlcG9pbnQuY29tLzpmOi9nL0V2QVFpdnpLV2ZoT3ZJOHJiNm1UVEhjQmQzUUxCOXVsUGIyQTQ1UG81ZmRuYWc",
|
|
66
|
+
"hasPassword": false,
|
|
67
|
+
"grantedToIdentitiesV2": [],
|
|
68
|
+
"grantedToIdentities": [],
|
|
69
|
+
"link": {
|
|
70
|
+
"scope": "anonymous",
|
|
71
|
+
"type": "edit",
|
|
72
|
+
"webUrl": "https://contoso.sharepoint.com/:f:/g/EvAQivzKWfhOvI8rb6mTTHcBd3QLB9ulPb2A45Po5fdnag",
|
|
73
|
+
"preventsDownload": false
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
</TabItem>
|
|
80
|
+
<TabItem value="Text">
|
|
81
|
+
|
|
82
|
+
```text
|
|
83
|
+
id scope roles link
|
|
84
|
+
------------------------------------ ------------ ----- -----------------------------------------------------------------------------------
|
|
85
|
+
e6100f73-981c-4bde-986b-eed262f04659 anonymous write https://contoso.sharepoint.com/:f:/g/EvAQivzKWfhOvI8rb6mTTHcBd3QLB9ulPb2A45Po5fdnag
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
</TabItem>
|
|
89
|
+
<TabItem value="CSV">
|
|
90
|
+
|
|
91
|
+
```csv
|
|
92
|
+
id,shareId,hasPassword
|
|
93
|
+
e6100f73-981c-4bde-986b-eed262f04659,u!aHR0cHM6Ly83NTY2YXZhLnNoYXJlcG9pbnQuY29tLzpmOi9nL0V2QVFpdnpLV2ZoT3ZJOHJiNm1UVEhjQmQzUUxCOXVsUGIyQTQ1UG81ZmRuYWc,
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
</TabItem>
|
|
97
|
+
<TabItem value="Markdown">
|
|
98
|
+
|
|
99
|
+
```md
|
|
100
|
+
# spo folder sharinglink list --webUrl "https://contoso.sharepoint.com/" --folderUrl "/shared documents/folder1"
|
|
101
|
+
|
|
102
|
+
Date: 24/04/2024
|
|
103
|
+
|
|
104
|
+
## e6100f73-981c-4bde-986b-eed262f04659
|
|
105
|
+
|
|
106
|
+
Property | Value
|
|
107
|
+
---------|-------
|
|
108
|
+
id | e6100f73-981c-4bde-986b-eed262f04659
|
|
109
|
+
shareId | u!aHR0cHM6Ly83NTY2YXZhLnNoYXJlcG9pbnQuY29tLzpmOi9nL0V2QVFpdnpLV2ZoT3ZJOHJiNm1UVEhjQmQzUUxCOXVsUGIyQTQ1UG81ZmRuYWc
|
|
110
|
+
hasPassword | false
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
</TabItem>
|
|
114
|
+
</Tabs>
|
|
@@ -91,6 +91,11 @@ m365 spo list get --title Documents --webUrl https://contoso.sharepoint.com/site
|
|
|
91
91
|
|
|
92
92
|
```json
|
|
93
93
|
{
|
|
94
|
+
"VersionPolicies": {
|
|
95
|
+
"DefaultExpireAfterDays": 0,
|
|
96
|
+
"DefaultTrimMode": 0,
|
|
97
|
+
"DefaultTrimModeValue": "NoExpiration"
|
|
98
|
+
},
|
|
94
99
|
"AllowContentTypes": true,
|
|
95
100
|
"BaseTemplate": 100,
|
|
96
101
|
"BaseType": 0,
|
|
@@ -210,6 +215,7 @@ m365 spo list get --title Documents --webUrl https://contoso.sharepoint.com/site
|
|
|
210
215
|
ServerTemplateCanCreateFolders : true
|
|
211
216
|
TemplateFeatureId : 00bfea71-de22-43b2-a848-c05709900100
|
|
212
217
|
Title : Test
|
|
218
|
+
VersionPolicies : {"DefaultExpireAfterDays": 0,"DefaultTrimMode": 0,"DefaultTrimModeValue": "NoExpiration"}
|
|
213
219
|
```
|
|
214
220
|
|
|
215
221
|
</TabItem>
|
|
@@ -22,9 +22,6 @@ m365 spo site remove [options]
|
|
|
22
22
|
`--fromRecycleBin`
|
|
23
23
|
: Set to remove the site from the recycle bin.
|
|
24
24
|
|
|
25
|
-
`--wait`
|
|
26
|
-
: (deprecated) Wait for the site to be removed before completing the command.
|
|
27
|
-
|
|
28
25
|
`-f, --force`
|
|
29
26
|
: Don't prompt for confirmation.
|
|
30
27
|
```
|
package/package.json
CHANGED